:root{
    --primary-color: #F3D7C3;
    --secondary-color: #F3D7C3;
    --background-dark-color: #10121A;
    --background-dark-grey: #191D2B;
    --border-color: #2e344e;
    --background-light-color: #F1F1F1;
    --white-color: #FFF;
    --font-light-color: #F3D7C3;
    --font-dark-color: #313131;
    --font-dark-color-2: #151515;
    --sidebar-dark-color: #191D2B;
}

.noUlFormatting {
    list-style-type: none;
    padding: 0;
    margin: 0;
    padding: 0;
}


body{
    margin: 0;
    padding: 0;
    font-family: "Raleway", sans-serif;
    box-sizing: border-box;
    min-height: 100vh;
}

#background{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -999;
    background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.671), rgba(5, 5, 5, 0.226)), url("images/clouds.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
}

h1{
    font-family: "Bona nova", serif;
    font-size: 2.7rem;
    color: var(--font-light-color);
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

h2{
    font-family: "Julius Sans One", sans-serif;
    font-size: 2rem;
    color: var(--font-light-color);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

h3{
    font-family: "Raleway", sans-serif;
    font-size: 1.5rem;
    color: var(--font-light-color);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

p{
    color: var(--font-light-color);
    font-size: 1.15rem;
}



/* Navbar */

.navbar{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    height: 2.5rem;
    padding: 1rem 15vw;
    transition: all 0.5s ease;
    z-index: 1000;
}

.navbar ul{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    list-style-type: none;
}

.navbar ul a{
    color: var(--font-light-color);
    text-decoration: none;
    cursor: pointer;
    padding: 0 1rem;
    height: 100%;
    font-size: 1rem;
}

#navbar__logo{
    color: var(--font-light-color);
    text-decoration: none;
    font-size: 1.75rem;
    font-family: "Bona nova", serif;
    cursor: pointer;
    transition: all 0.5s ease;
}

@media screen and (max-width: 960px){
   .navbar{
    padding-inline: 0;
   }
   
    .navbar ul{
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all 0.5s ease;
        height: 30vh;
        z-index: -1;
        padding: 0;
   }

   .navbar ul.active{
        background-color: var(--background-dark-color);
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        justify-content: center;
        z-index: 10000;
        height: 50vh;
        font-size: 1.6rem;
   }

    #navbar__logo{
       padding-left: 25px;
    }

   .navbar ul a{
    text-align: center;
    padding: 2rem;
    width:  100%;
    display: table;
   }

   #mobile-menu{
    color: var(--font-light-color);
    position: absolute;
    top: 35%;
    right: 5%;
    transform: translate(-5%, -20%);
    cursor: pointer;
    z-index: 1000;
   }

   #mobile-menu span{
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--font-light-color);
    display: block;
}

   #mobile-menu.is-active span:nth-child(2){
       opacity: 0;
   }

   #mobile-menu.is-active span:nth-child(1){
    transform: rotate(45deg) translateY(11px);
    }

    #mobile-menu.is-active span:nth-child(3){
        transform: rotate(-45deg) translateY(-11px);

    }
}

#container{
    overflow: scroll;
    position: fixed;
    height: calc(100vh - 2.5rem);
    width: 100%;
    z-index: 1;
}

.content img{
    max-width: 100%;
    border-radius: 5px;
    margin-top: .5rem;
    margin-bottom: .5rem;
}

/* Homepage */
#title{
    margin: 30vh 5%;
}

#title h1{
    font-size: 4rem;
}

.block{
    background-color: rgba(10, 10, 10, 0.671);
    padding: 40px 10vw;
    margin: 180px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.first{
    margin-top: 0;
}

.content{
    max-width: 900px;
    margin: 1rem 0;
}

.group{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 1rem 0;
}

video{
    width: 100%;
    margin-top: 2rem;
    border-radius: 10px;
    max-width: 900px;
}

#portrait{
    width: 12rem;
    height: auto;
    border-radius: 50%;
    margin: 0 2rem;
    display: block;
}


.projectList {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin: 4rem 0;
    width: 100%;
    max-width: 900px;
}

.project {
    /* background: navy; */
    color: var(--font-light-color);


    display: flex;
    flex-direction: row;
    justify-content: left;
    gap:2rem;
    width: 100%;

    height: 14rem;
}


.project img {
    height: 100%;
    width: 24rem;
    border-radius: 10px;
    object-fit: cover;
}

.project .projectText {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

button {
    background: inherit;
    color: var(--font-light-color);
    margin: 0.5rem 0;
    padding: .5rem 2rem;
    border: 1px solid var(--font-light-color);
    width: fit-content;
    border-radius: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
}

button:hover {
    background: var(--font-light-color);
    color: var(--background-dark-color);
    transition: 0.3s;
}

button:active {
    background: var(--background-dark-color);
    color: var(--font-light-color);
    transition: 0.3s;
}

a{
    color: var(--font-light-color);
    text-decoration: none;
    width: fit-content;
}

@media screen and (max-width: 850px){  
    .project {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        height: 100%;
    }

    .projectText{
        width: 24rem;
    }
}

.UIprojects .project{
    height: fit-content;
}

.UIprojects .project img{
    height: 25rem;
    width: auto;
    border-radius: 10px;
    object-fit: auto;
}

.UIprojects .projectText{
    width: 100%;
    height: auto;
}

.art .group{
    height: 19.5rem;
    width: 100%;
}

.art .group img{
    width: auto;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
    margin: .5rem;
}

#middleimg{
    height: 100%;
    width: fit-content;
}

#middleimg img{
    height: 47%;
    width: auto;
    border-radius: 5px;
    object-fit: cover;
    margin-top: 0;
    margin-bottom: 1rem;
}

.art button{
   margin-inline: 1rem; 
}

/* Footer */

.footer{
    margin-bottom: 0;
}

.footer .group{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 1rem 0;
    margin-bottom: 5rem;
}

#contacts{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contacts img{
    padding-right: 1rem;
    margin: -.2rem;
}

footer a{
    color: var(--font-light-color);
    text-decoration: none;
    cursor: pointer;
    padding: .5rem;
    height: 100%;
    font-size: 1rem;
}

footer a:hover{
    color: white;
    transition: 0.3s;
}
