/* reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{
    background-color: #3F3F3F;
    font-size: 24px;
    height: 100%;
    scroll-behavior: smooth;
    font-family: Iceland;
}
/*  */

/* header */
header {
    background-color: #F5A227;
    margin: .3rem;
    padding: .5rem;
}
header h1 {
    color: white;
    font-size: 4rem;
    text-align: center;
    margin: 15px 0 20px 0;
}
header nav{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: .3rem;
}
header a {
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    text-align: center;
    margin: 0;
    padding: .2rem;
    position: relative;
    z-index: 1;
}
/* header animation */
header a:hover{
    background-color: #57151580;
    transform: scale(1.02);
    transition: 0.25s ease;
    -webkit-transform: scale(1.02);
    -moz-transform: scale(1.02);
    -ms-transform: scale(1.02);
    -o-transform: scale(1.02);
    z-index: 2;
}

/* header */

p{
    font-size: 2.5vh;
    font-family: roboto;
}
article{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #949494;
    padding: 0 1vw 0 1vw;
    margin: auto;
    margin-top: 3vh;
    margin-bottom: 3vh;
    border-radius: 44px;
    max-width: 1200px;
}
article h2{
    padding: 2.5vh 2.5vw 2.5vh 2.5vw;
    margin-top: 2.5vh;
    margin-bottom: 2.5vh;
    color: white;
    text-align: center;
    font-size: 3rem;    
}
article hr{
    border: 2px solid white;
    margin-bottom: 3vh;
}
#gallery{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    grid-gap: 3vw;
    margin: auto;
    padding: 2vw;
    margin-top: 2vh;
    margin-bottom: 2vh;
}

/* figure */
figure{
    text-align: center;
    color: white;
    font-family: roboto;
    padding: 1vh 1vh 1vh 1vh;
    border: black 2px;
    border-radius: 15px;
    font-size: 1.2rem;
    background-color: #3F3F3F;              
}
figure img{
    width: 100%;
    max-width: 100vh;
    height: auto;
    border-radius: 15px;
}
.Gboxes{
    cursor: pointer;
    transition: transform 250ms;
}

/* figure animation */
    .Gboxes:hover {
    transform: scale(1.02);
    border: solid black 3px;
    background-color: #4c4c4c;
}
    figure img:hover{
        transform: scale(1.02);
    }

/* figure */

/* modal style */
dialog{
    background: #3F3F3F;
    position:fixed;
    max-width: 80vw;
    max-height: 80vh;
    padding: 0.5vh 0.5vw 0.5vh 0.5vw;
    margin: auto;
    border: none;
    border-radius: 15px;
    font-size: 2rem;
}
dialog button{
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #F5A227;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: ease 210ms;
}
dialog::backdrop{
    background: rgba(16, 16, 16, 0.8);
}
dialog figure{
    margin: auto;
    border: none;
    border-radius: 15px;
    max-width: 80vw;
    max-height: 95vh;
    overflow: auto;
}
dialog img{
    width: 100%;
    padding: 1rem;
    height: auto;
    border-radius: 15px;
}
/* dialog animation*/
dialog button:hover{
    transform: scale(1.1);
}
/* footer style */
footer{
    padding: 25px;
}
footer p{
    color: white;
    font-family: roboto;
    font-size: 15px;
    margin: 3vh 0 3vh 0;
}