
@font-face {
    font-family: Monoton;
    src: url(../fonts/Monoton-Regular.ttf);
}
@font-face {
    font-family: Merriweather;
    src: url(../fonts/Merriweather-VariableFont_opsz,wdth,wght.ttf);
}
@font-face {
    font-family: OpenSans;
    src: url(../fonts/OpenSans-VariableFont_wdth,wght.ttf);
}
@font-face {
    font-family: Roboto;
    src: url(../fonts/RobotoCondensed-VariableFont_wght.ttf);
}
@font-face {
    font-family:VastShadow ;
    src: url(../fonts/VastShadow-Regular.ttf);
}



:root{

    --base-color: #ffffff;
    --text-color: #000000;
    --primary-color: #e3deb0;
    --secondary-color: #f1cf8f;
    --color-1: #d8d7d7;
    --color-2:#e8e7e7;
    --color-3:#b4b2b2;

}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;



}
.top-bar a{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 50px;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    color: var(--text-color);


    
}

html{
font-family: "Merriweather";
color: var(--text-color)

}

body{
    padding: 0;
    background-color: var(--base-color) ;
    font-weight: 100; 


}
h2,h3{
font-family: "OpenSans";
font-style: oblique;

}

nav{
    margin: 0 auto 1em auto;
    width: min(1000px,100%);
    margin-top: 0;
}
.links-container{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;


}

nav ul{
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 1em
}
nav li{
    margin-right: auto;
    
}
nav a{
    height:100%;
    padding: 0 20px;
    text-decoration: none;
    color:var(--text-color);
    font-family: "Roboto";
    font-weight: bold;
}

nav a:hover{
    text-decoration: underline;
}

#sidebar-active{
    display: none;
}

.open-sidebar-button,.close-sidebar-button{
display: none;
}
header,section{
    margin: 2em auto;
    width: min(75em,100%);
    background-color: var(--base-color);
    padding: min(2em,15%);
    border-radius: 1em;
    margin-top: 0;
}
.flex-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap:3em;
    
}
.flex-container img{
    max-width: 100%;
    border-radius: 1em;
    object-fit: cover;
    object-position: bottom;
}
.text-container{
    flex: 0 1 34em;
    font-size: 1em;
    margin-top:0 ;

}
h1{
    font-family: "Monoton";
    font-weight: 100;
    font-style: normal;
    font-style: italic;
}
#logo.a{
    font-size: 2.5rem;

}
.text-container p{
    margin: .75em 0 1em 0;
    font-size: 15px;

}
.text-container li{
    font-size: 15px;
}
.cta-button {
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    padding: .75em 1.25em;
    border-radius: .5em;
    font-weight: 400;
}
.secondary {
    background-color: var(--secondary-color);
}
section {
    padding: 3em min(2em,15%);
    background-color: var(--color-2);
    text-align: center;
}
h2 {
    font-size: 1.5rem;
}
section li {
    margin-top: 1em;
    font-size: 1.25rem;
}
section#mywork {
    background-color: var(--color-3);
}
.grid-container {
    margin-top: 3em;
    margin-bottom: 3em;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: 1fr 1fr ;
    grid-template-areas:
    "img-1 img-1 img-2 img-3"
    "img-1 img-1 img-4 img-5";
    gap: 1em;

}
.grid-container img{
    height: 100%;
    width: 100%;
    border-radius: .5em;
    transition: 100ms ease;
}
.grid-container img:hover{
    scale: 1.05;
}
.contact-container{
    background-image: url(images\italy2.jpg);
}

footer{
padding-top: 1.5em;
padding-bottom: 1.5em;
text-align: center;  
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;  
}

footer a{
    margin: 0 1em;
    color-scheme: var(--text-color);   
    text-decoration: none;  

}

footer a:hover{
    text-decoration: none;
}
.fa-sharp.fa-solid.fa-house.fa-2x{
    color: grey;
}
.fab.fa-instagram.fa-2x{
    color:#ed8065 ;
}
.fab.fa-facebook.fa-2x{
    color: #3a3ac2;
}

@media (max-width: 450px){
    .links-container{
        display: none;
        flex-direction: column;
        align-items: flex-start;

        position: fixed;
        top: 0; 
        right: 0;
        z-index: 10;
        width: 300px;
        background-color: black;
        box-shadow: -5px 0 5px rgb(0, 0, .25)

    }
    nav a{
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;

    }
    nav li{
        display: none;
    }
    .open-sidebar-button,.close-sidebar-button{
        padding: 20px;
        display: block;
    }
    #sidebar-active:checked ~ .links-container{
        display: flex;
    }
    .grid-container{
        display: flex;
        flex-direction: column ;
    }

     .text-container p {
        font-size: 1rem;

    }
    h2{
        font-size: 1.5rem;
    }
}
@media (max-width:640px) {
    
}
@media screen and (min-width:650px)
{ 
    body {
    background-color:var(--color-1);
}
    
}
@media screen and (min-width:450px)
{ 
    body {
    background-color: var(--base-color);
}
    
}
