:root{
    --color: #000000;
    --color_hover: #141618;
    --background_color: #f8f8f8;

    --color_hover: rgb(255, 255, 255);
    --background_color: #c3ac92;


    --flexItemMargin: 1rem;

    --gallery-arrow-color: #f2643b;
    --gallery-arrow-hover-color: #575453;
}

/* @media (prefers-color-scheme: dark) {
    :root{
        --color: #ed6639;
        --color_hover: #da4e20;
        --background_color: #141618;
    }
}
@media (prefers-color-scheme: light) {
    :root{
        --color: #ed6639;
        --color_hover: #da4e20;
        --background_color: #141618;
    }Ubuntu
} */

*{
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color);
    /* background-color: var(--background_color); */
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    /* font-size: x-large; */
}
*::-moz-selection{
    color: var(--background_color);
    background-color: var(--color);
}
*::selection{
    color: var(--background_color);
    background-color: var(--color);
}


/* SCROLLBARS */
*{
    scrollbar-width: thin;
    scrollbar-color: var(--color) var(--background_color);
}
*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
*::-webkit-scrollbar-track {
    background: var(--background_color);
}
*::-webkit-scrollbar-thumb {
    background-color: var(--color);
    border-radius: 20px;
    border: 3px solid var(--background_color);
}
*::-webkit-scrollbar-corner {
    background: var(--background_color);
}

html{
    /* text-align: center; */
}

body{
    background-color: #c3ac92;

    /* background-image: image("./images/backgroundA.jpg", "./images/backgroundA.webp"); */
    /* background-image: url("./images/backgroundA.webp"), url("./images/backgroundA.jpg"); */

    /* background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative; */
}

#main-container{
    margin: 0 auto;
    max-width: 1680px;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    /* align-items: flex-start; */
    /* min-height: 100vh; */
    /* background: -webkit-linear-gradient(bottom right, rgba(63, 37, 14, 0.5), rgba(255, 255, 255, 1));
    background: -moz-linear-gradient(bottom right, rgba(63, 37, 14, 0.5), rgba(255, 255, 255, 1)); */
    /* background: linear-gradient(to top left, rgba(63, 37, 14, 0), rgba(255, 255, 255, 1)); */
    min-height: 100vh;
    overflow: hidden;
}

/* #header{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100vw;
    background-color: #ffffff;
    background: transparent;
    font-size: 1.5rem;
}
#logo{
    height: 3rem;
}
#header-spacer{
}
#e{
    height: 3rem;
} */

#background-picture{
    /* position: absolute;
    z-index: -1;
    width: 100vw;
    overflow: hidden; */

    background: linear-gradient(to top left, rgba(63, 37, 14, 0), rgba(255, 255, 255, 1));
    position: absolute;
    top: 0;
    left: 0;
    /* right: 0; */
    width: 100%;
    min-height: 100vh;
    overflow: hidden;


    /* position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    z-index: -1; */


    /* top: 0;
    position: absolute;
    height: auto;
    width: 100%;
    z-index: -1;
    padding: auto;
    margin: 0; */
}
#background-picture img{

    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100vh; */
    object-fit: cover;
    overflow: hidden;
    z-index: -1;
    
    /* position: relative;
    display: block;
    width: 100%;
    height: 100%; */
}

/* Contact Icons */
#contact-header{
    width: 100%;
    order: 5;
    display: flex;
    justify-content: flex-end;
    justify-content: center;
    padding: 0.25rem;
    z-index: 10;
}
#contact-header a{
    margin: 0.35rem;
    text-decoration: none;
    cursor: pointer;
    opacity: .7;
}
#contact-header a:hover{
    opacity: 1;
}
#contact-header img{
    width: 40px;
}
#phone-icon{
    display: none;
}


#logo{
    order: 1;
    width: 200px;
    margin: var(--flexItemMargin);
    z-index: 10;
}
#logo img{
    width: 100%;
}


#writeup{
    order: 2;
    max-width: 625px;
    width: max-content;
    position: relative;
    margin: var(--flexItemMargin);
}


#contact{
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color);
    /* width: 300px; */
    margin: var(--flexItemMargin);
    /* position: relative; */
    padding: 1rem;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: solid 2px transparent;
    background-clip: padding-box;
    box-shadow: 10px 10px 10px rgba(46, 54, 68, 0.03);
    z-index: 1;

    backdrop-filter: blur(8px);

    /* font-size: larger; */
}
/* #contact *{
    width: 100%;
    margin-bottom: 1rem;
} */
#contact h2{
    text-align: center;
    width: 100%;
    /* margin-bottom: 1rem; */
}
#contact label{
    color: transparent;
    height: 0;
    margin: 0;
}
#contact p{
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
}
#contact input, textarea{
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.25rem;
    border: var(--color) 1px solid;
    border-radius: 0.25rem;
    background-color: #f3f2f2;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}
#contact textarea{
    height: 5rem;
    resize: none;
}
.recaptcha{
    /* width: 100%; */
    /* margin-left: auto; */
    margin-bottom: 1rem;
}
#contact button{
    width: 100%;
    padding: 0.25rem;
    margin-bottom: 0;
    /* margin: 0.25rem; */
    background: transparent;
    border: var(--color) 1px solid;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
}
#contact button:hover{
    background-color: rgba(255, 255, 255, 0.5);
}
/* #contact div{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.6);
    z-index: -2;
} */


#gallery{
    order: 4;
    display: flex;
    flex-direction: row;
    align-items: center;

    width: 700px;
    margin: var(--flexItemMargin);
    /* max-width: 900px; */
    height: 400px;
    max-height: 100vh;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: solid 2px transparent;
    background-clip: padding-box;
    box-shadow: 10px 10px 10px rgba(46, 54, 68, 0.03);
    z-index: 1;

    backdrop-filter: blur(8px);
}
#gallery-overlay{
    display: flex;
    flex-direction: row;
    /* align-items: center; */
    padding: 0px;
    margin: 0px;
    border: 0px;

    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: transparent;
}
#gallery-overlay *{
    width: 8rem;
    background-color: transparent;
}
#gallery-overlay button:first-child{
    cursor: pointer;
    color: transparent;
}
#gallery-overlay button:first-child div{
    width: 1rem;
    height: 1rem;
    margin: auto;
    border: var(--gallery-arrow-color) 3px solid;
    border-width: 0 0 3px 3px;
    transform: rotate(45deg);
}
/* #gallery-overlay button:first-child:hover div{
    border-color: var(--gallery-arrow-hover-color);
} */
#gallery-overlay button:nth-child(2){
    width: 100%;
    color: transparent;
}
#gallery-overlay button:last-child{
    cursor: pointer;
    color: transparent;
}
#gallery-overlay button:last-child div{
    width: 1rem;
    height: 1rem;
    margin: auto;
    border: var(--gallery-arrow-color) 3px solid;
    border-width: 3px 3px 0 0;
    transform: rotate(45deg);
}
/* #gallery-overlay button:last-child:hover div{
    border-color: var(--gallery-arrow-hover-color);
} */
.gallery-image{
    max-width: 100%;
    max-height: 100%;
    display: none;
    transition: opacity 0.5s ease-out;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}
.gallery-image[show="true"]{
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    height: 100%;
    width: 100%;
}
.gallery-image img{
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    height: auto;
    width: auto;
}

#footer{
    order: 5;
    width: 100vw;
    align-self: flex-end;
    padding: 1rem;
    margin: var(--flexItemMargin);
}

#copy-write{
    text-align: center;
    margin: auto;
}

@media only screen and (max-width: 1150px) {
    #logo{
        width: 150px;
    }

    #writeup{
        max-width: 500px;
    }
    #contact{
        order: 4;
        width: 400px;
    }
    #gallery{
        order: 3;
    }
}

/* Large rotated phone */
@media only screen and (max-width: 900px) {
    #contact-header{
        justify-content: space-evenly;
    }
    #contact-header{
        order: 1;
    }

    #phone-icon{
        display: block;
    }
}

/* Small screens */
@media only screen and (max-width: 470px) {
    #contact-header{
        justify-content: space-evenly;
    }

    #logo{
        width: 60%;
    }

    #contact{
        width: 100%;
        margin: 0.25rem;
    }
    #gallery{
        order: 3;
        margin: 0.25rem;
        height: 250px;
    }
    /* #gallery-overlay button:first-child:hover div{
        border-color: var(--gallery-arrow-color);
    }
    #gallery-overlay button:last-child:hover div{
        border-color: var(--gallery-arrow-color);
    } */
}