@font-face {
    font-family: 'light';
    src: url('./fonts/light.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'book';
    src: url('./fonts/book.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'medium';
    src: url('./fonts/medium.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'heavy';
    src: url('./fonts/heavy.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

#top-border, #bottom-border, #left-border, #right-border {
    background-color: #ed1a39;
    position: fixed;
    z-index: 1;
}

#top-border {
    width: 100%;
    height: 10px;
    top: 0;
}

#left-border, #right-border {
    width: 10px;
    height: 100%;
    top: 0;
}

#left-border {
    left: 0;
}

#right-border {
    right: 0;
}

#bottom-border {
    width: 100%;
    height: 10px;
    bottom: 0;
}

nav {
    width: calc(100% - 20px);
    position: fixed;
    height: 10vh;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: flex;
}

nav.scrolled {
    background-color: white;
    transition: 0.3s ease;
    border: 2px solid #ed1a39;
}

#nav-logo-link {
    height: 100%;
    width: fit-content;
    max-width: 20%;
    margin-left: 10%;
    width: 20%;
    display: flex;
    justify-content: start;
}

#nav-logo-link a {
    height: 100%;
    display: flex;
    align-items: center;
}

#nav-logo-link img {
    height: 80%;
    object-fit: contain;
}

#nav-items {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin-right: 0;
    flex-grow: 1;
    max-width: 40%;
    margin-left: auto;
}

#nav-items a {
    font-size: 130%;
    font-family: 'medium', sans-serif;
    height: 100%;
    display: flex;
    align-items: center;
    color: #ed1a39;
    transition: 0.3s ease;
}

#nav-items a:hover {
    text-underline-offset: 10px;
    color: #7a0d1d;
}

#nav-button {
    max-width: 20%;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: end;
    margin-right: 10%;
}

#nav-button button {
    background-color: #ed1a39;
    border: none;
    color: white;
    font-family: 'medium', sans-serif;
    font-size: 120%;
    line-height: 110%;
    padding: 20px;
    max-height: 80%;
    width: 100%;
    max-width: 250px;
}

#nav-button button:hover {
    background-color: #7a0d1d;
    transition: 0.3s ease;
}

main {
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-top: calc(10px + 10vh);
}

#intro {
    width: 100%;
    background-color: #ed1a39;
    display: flex;
    height: 400px;
    justify-content: center;
}

#intro-img {
    height: 100%;
    display: flex;
    align-items: end;
    margin-top: 10px;
}

#intro-img img {
    height: 95%;
    border-radius: 100px 100px 10px 10px;
}

#intro-text {
    color: white;
    padding: 20px;
    padding-bottom: 10px;
    height: fit-content;
    margin-top: auto;
    margin-left: 10px;
}

#intro-text h1 {
    font-family: 'heavy', sans-serif;
    font-size: 350%;
}

#intro-text hr {
    background-color: white;
    width: 60%;
    height: 5px;
}

#intro-text h2 {
    font-family: 'medium', sans-serif;
    font-size: 200%;
}

#intro-text p {
    color: #ed1a39;
    background-color: white;
    width: fit-content;
    padding: 10px;
    font-family: 'medium', sans-serif;
    font-size: 130%;
}

#about {
    width: 100%;
    margin-top: 40px;
}

#about-header hr {
    width: 25%;
    height: 5px;
    background-color: #ed1a39;
    margin: auto;
}

#about-head-text {
    font-family: 'heavy', sans-serif;
    text-align: center;
    width: 25%;
    margin: auto;
}

#about-head-text:hover {
    background-color: #ed1a39;
    color: white;
    transition: 0.3s ease;
}

#about-body {
    width: 50%;
    max-width: 70%;
    margin-top: 10px;
    display: flex;
    margin: auto;
    align-items: center;
    height: 100%;
}

@media screen and (min-width: 993px) and (max-width: 1250px) {
    #about-body {
        width: 70%;
    }
}

#about-img {
    border-radius: 50%;
    margin: auto;
    display: flex;
    border: 2px solid #ed1a39;
    padding: 5px;
    width: 30%;
    object-fit: cover;
}

#about-img:hover {
    opacity: 0.9;
    transition: 0.3s ease;
}

#about-text {
    width: 80%;
    margin: auto;
    font-family: 'book', sans-serif;
    margin-left: 20px;
    height: 100%;
}

#portfolio {
    width: 100%;
    margin-top: 40px;
}

#portfolio-header hr {
    width: 25%;
    height: 5px;
    background-color: #ed1a39;
    margin: auto;
}

#portfolio-head-text {
    font-family: 'heavy', sans-serif;
    width: 25%;
    text-align: center;
    margin: auto;
}

#portfolio-head-text:hover {
    background-color: #ed1a39;
    color: white;
    transition: 0.3s ease;
}

#portfolio-body {
    width: calc(100dvw - 20px);
    height: fit-content;
    
}

#row-1, #row-2, #row-3 {
    padding: 10px;
}

#portfolio-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 4px solid #ed1a39;
    padding: 2px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 5%;
    display: flex;
    justify-content: center;
    height: 100%;
    width: 90%;
    opacity: 0;
    transition: .5s ease;
    background-color: #ed1a39;
  }
  
.portfolio-img-section:hover .overlay {
    opacity: 1;
  }
  
.portfolio-text {
    color: white;
    font-family: 'medium', sans-serif;
    font-size: 200%;
    line-height: 110%;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

#contact {
    width: 100%;
    margin-top: 20px;
}

#contact-header hr{
    width: 25%;
    margin: auto;
    background-color: #ed1a39;
    height: 5px;
}

#contact-head-text {
    font-family: 'heavy', sans-serif;
    width: 25%;
    text-align: center;
    margin: auto;
}

#contact-head-text:hover {
    background-color: #ed1a39;
    color: white;
    transition: 0.3s ease;
}

form {
    margin: auto;
    width: 40%;
}

label {
    color: #ed1a39;
    font-family: 'light', sans-serif;
    font-size: 130%;
    width: 100%;
    text-align: center;
}

input {
    border: 2px solid #ed1a39;
    padding: 10px;
    width: 70%;
    font-family: 'book', sans-serif;
    margin: auto;
    margin-left: 15%;
}


textarea {
    width: 100%;
    border: 2px solid #ed1a39;
    font-family: 'book', sans-serif;
}

form button {
    background-color: #ed1a39;
    border: none;
    width: 50%;
    color: white;
    padding: 10px;
    font-family: 'medium', sans-serif;
    font-size: 150%;
    margin-top: 20px;
    margin-left: 25%;
}

form button:hover {
    background-color: #7a0d1d;
    transition: 0.3s ease;
}

#social-media {
    width: 100%;
    padding: 5px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'medium', sans-serif;
    color: white;
    font-size: 120%;
    margin: 10px;
}

.social img {
    margin-right: 10px;
    width: 30px;
}

.social p{
    margin: 0;
}

footer {
    background-color: #ed1a39;
    margin-top: 20px;
}

footer p {
    color: white;
    text-align: center;
    font-family: 'light', sans-serif;
    padding-bottom: 5px;
}

.portfolio-page-nav {
    width: calc(100% - 20px);
    position: fixed;
    z-index: 1;
}

.portfolio-page-nav.scrolled {
    background-color: white;
    transition: 0.3s ease;
    border: 2px solid #ed1a39;
}

#portfolio-nav-logo-link {
    height: 100%;
    width: fit-content;
    max-width: 20%;
    margin-left: 10%;
    width: 20%;
    display: flex;
    justify-content: start;
}

#portfolio-nav-logo-link a {
    height: 100%;
    display: flex;
    align-items: center;
}

#portfolio-nav-logo-link img {
    height: 80%;
    object-fit: contain;
}

.description {
    width:40%;
    margin-left: 30%;
    font-family: 'book', sans-serif;
    margin-top: 10px;
}

.images-row{
    width: calc(100% - 20px);
    margin-left: 10px;
    display: flex;
    justify-content: center;
}

.images img{
    width: 40%;
    margin: auto;
    border: 2px solid #ed1a39;
    padding: 5px;
    margin: 5px;
    object-fit: cover;
    object-position: center;
    transition: 0.3s ease;
}

.images img:hover {
    background-color: #ed1a39;
    scale: 1.05;
}

.external button{
    background-color: #ed1a39;
    border: none;
    color: white;
    padding: 20px;
    font-family: 'medium', sans-serif;
    font-size: 120%;
}

.external button:hover {
    background-color: #7a0d1d;
    transition: 0.3s ease;
}

.external {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
