:root {
    --primary-color: #595959;
    --secondary-color: #2c2c2c;
    --background-color: #fefbf1; 
}

html {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

body {
    background-image: url("./images/talie-site-bg-new.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    white-space: none;
    overflow-x: hidden;
}


header {
    display: grid;
    grid: 100% / repeat(3, 1fr);
    width: 100%;
    height: 12.5%;
}

#logo-container {
    grid-column: 2 / 3;
    width: auto;
    height: 100%;
    display: flex;
    justify-self: center;
    
}

#logo-img {
    width: auto;
    height: 100%;
    transition: opacity 300ms ease-out;
}

#logo-img:hover {
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 300ms ease-out;
}

.icons-group {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: end;
    align-content: end;
}

.icon {
    height: 20px;
    width: 20px;
    margin-left: 18px;
}

.icon-svg {
    height: 100%;
    width: auto;
    opacity: 1;
    transition: opacity 300ms ease-out;
}

.icon-svg:hover {
    opacity: 0.5;
    transition: opacity 300ms ease-out;
}

#fb-icon {
    margin-left: 0;
}

/* MAIN */   

#content-wrapper {
    width: 100%;
    height: 87.5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#main-container {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#top-button-container {
    width: 60.5867347%;
    height:3.25rem;
    display: flex;
    margin: 0 auto;
}

#mail-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-right: 5px;
}

#mail-container a {
    max-height: 100%;
    height: 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    font-style: none;
}

#mail-button {
    font-size: 0.8rem;
    height: 2rem;
    width: 100%;
    background-image: url("./images/main-grid-box/nav-bar-bg-img.png");
    color: azure;
    letter-spacing: 0.25rem;
    word-spacing: 0.25rem;
    cursor: pointer;
    transition: letter-spacing 200ms ease-in-out, background-image 200ms ease-in-out;
}

#mail-button:hover {
    background-image: url("./images/main-grid-box/nav-bar-bg-img-hover.png");
    letter-spacing: 0.35rem;
    transition: letter-spacing 200ms ease-in-out, background-image 200ms ease-in-out;
}

#mail-container a:active {
    font-style: none;
}

#contact-container {
    margin-bottom: 1.25rem;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-left: 5px;
}

#contact-container a {
    max-height: 100%;
    height: 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    font-style: none;
}

#contact-button {
    font-size: 0.8rem;
    height: 2rem;
    width: 100%;
    background-image: url("./images/main-grid-box/nav-bar-bg-img.png");
    color: azure;
    letter-spacing: 0.25rem;
    word-spacing: 0.25rem;
    cursor: pointer;
    transition: letter-spacing 200ms ease-in-out, background-image 200ms ease-in-out;
}

#contact-button:hover {
    background-image: url("./images/main-grid-box/nav-bar-bg-img-hover.png");
    letter-spacing: 0.35rem;
    transition: letter-spacing 200ms ease-in-out, background-image 200ms ease-in-out;
}

#contact-container a:active {
    font-style: none;
}

#about-me-container-sub {
    display: none;
}

#grid-container {
    display: grid;
    grid: auto / repeat(4, 1fr);
    gap: 1.25rem 1.25rem;
    width: 60.5867347%;
    margin: 0 auto;
    box-sizing: border-box;
}

#main-container-mobile {
    display: none;
}

.grid-item {
    width: 100%;
    height: auto;
}

.grid-item:hover {
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    height: auto;
}



#grid-item-big img{
    width: 100%;
    height: auto;
}

#grid-item-one {
    grid-column: 1 / 2;
    box-sizing: border-box;
    display: flex;
    align-self: start;
    justify-self: start;
}
#grid-item-two {
    grid-column: 1 / 2;
    box-sizing: border-box;
    display: flex;
    align-self: end;
    justify-self: start;
}

#grid-item-big {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    cursor: pointer;
}

#grid-item-three {
    grid-row: 1 / 2;
    grid-column: 4 / 5;
    box-sizing: border-box;
    display: flex;
    justify-self: end;
    align-self: start;
}
#grid-item-four {
    grid-column: 4 / 5;
    box-sizing: border-box;
    display: flex;
    justify-self: end;
    align-self: end;
}

#about-me-container {
    margin-top: 1.25rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

#about-me-container a {
    max-height: 100%;
    height: 2rem;
    width: 60.5867347%;
    display: flex;
    align-items: center;
    font-style: none;
}

#about-button {
    font-size: 0.8rem;
    height: 2rem;
    width: 100%;
    background-image: url("./images/main-grid-box/nav-bar-bg-img.png");
    color: azure;
    letter-spacing: 0.25rem;
    word-spacing: 0.25rem;
    cursor: pointer;
    transition: letter-spacing 200ms ease-in-out, background-image 200ms ease-in-out;
}

#about-button:hover {
    background-image: url("./images/main-grid-box/nav-bar-bg-img-hover.png");
    letter-spacing: 0.35rem;
    transition: letter-spacing 200ms ease-in-out, background-image 200ms ease-in-out;
}

#about-me-container a:active {
    font-style: none;
}

footer {
    display: none;
}


@media only screen and (max-width: 1440px) and (min-width: 769px){
    
    header {
        grid: 3fr 1fr / 100%;
        height: 20%;
        row-gap: 1rem;
    }

    #logo-container {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    #icon-container {
        width: 100%;
        height: auto;
        height: auto;
        grid-row: 2 / 3;
        grid-column: 1 / 2;
    }

    .icons-group {
        justify-content: center;
    }

    #content-wrapper {
        height: 80%;

    }

    #top-button-container {
        width: 65%;
    }

    #mail-container a {
        width: 100%;
    }

    #grid-container {
        width: 65%;
    }

    #about-me-container a {
        width: 65%;
    }

}

@media only screen and (max-width: 768px) {

    html {
        height: auto;
    }

    body {
        background-image: url("./images/talie-site-bg-new.jpg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    header {
        display: grid;
        grid: auto / 100%;
        row-gap: 1.25rem;
        width: 100%;
        height: 10%;
    }

    #logo-container {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        height: auto;
        width: 100%;
        display: flex;
        align-content: center;
        justify-content: center;
    }

    #logo-img {
        width: 100%;
        height: auto;
    }

    #icon-container {
        width: 100%;
        height: auto;
        grid-row: 2 / 3;
        grid-column: 1 / 2;
        
    }

    .icon {
        margin-left: 0;
    }

    .icons-group {
        justify-content: space-between;
    }



    #main-container-mobile {
        display: block;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    #top-button-container {
        width: 100%;
        display: grid;
        grid: auto / 100%;
        height: auto;
        justify-content: center;
        align-items: center;
        row-gap: 1.25rem;
    }

    

    #mail-container {
        background-color: rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: center;
        width: 100%;
        height: auto;
        margin-top: 1.25rem;
        margin-bottom: 0;
        padding-right: 0;
    }

    #mail-container a {
        width: 100%;
        height: 3rem;
        margin: 0 auto;
    }

    #mail-button {
        font-size: 1rem;
        height: 3rem;
        width: 100%;
        background-color: black;
        color: azure;
        letter-spacing: 0.125rem;
        word-spacing: 0.25rem;

    }

    #contact-container {
        padding-left: 0;
        margin-bottom: 0;
    }
    
    #contact-container a {
        width: 100%;
        height: 3rem;
        margin: 0 auto;
    }

    #contact-button {
        font-size: 1rem;
        height: 3rem;
        width: 100%;
        background-color: black;
        color: azure;
        letter-spacing: 0.125rem;
        word-spacing: 0.25rem;
    }

    
    #grid-container {
        width: 100%;
        height: auto;
        grid: auto / repeat(2, 1fr);
        position: relative;
    }

    #grid-item-big {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
        width: 100%;
        height: auto;
    }

    #grid-item-one {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        width: 100%;
        height: auto;
    }

    #grid-item-two {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        width: 100%;
        height: auto;
    }

    #grid-item-three {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
        width: 100%;
        height: auto;
    }

    #grid-item-four {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
        width: 100%;
        height: auto;
    }

    #about-me-container {
        display: none;
    }

    #about-me-container-sub {
        background-color: rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: center;
        margin-bottom: 1.25rem;
    }

    #about-me-container-sub a {
        max-height: 100%;
        height: 3rem;
        width: 100%;
        display: flex;
        align-items: center;
        font-style: none;
    }
    
    #about-button {
        font-size: 1rem;
        height: 3rem;
        width: 100%;
        background-color: rgb(0, 0, 0);
        color: azure;
        letter-spacing: 0.125rem;
        word-spacing: 0.25rem;
    }

    footer {
        display: block;
        height: 2rem;
    }
    
}




