html {
    background-image: url('./img/photo_5442759879967242821_y.jpg');
}
body {
    margin: 0;
    padding: 1%;
    box-sizing: border-box;
    color: #333766;
    text-shadow: 1px 1px 2px #95caef55;
}
#background {
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-color: #fff7;
    backdrop-filter: blur(3px);
    display: block;
}

#logo {
    position: relative;
    filter: drop-shadow(2px 2px 2px #00000066);
    left: 20px;
    top: 20px;
    z-index: 0;
    width: 50%;
}
.container {
    position: absolute;
    top: 20%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5%;
    align-self: center;
    margin-top: 100px;
    padding-left: 6%;
    padding-right: 6%;
}
.button {
    padding: 10px;
    aspect-ratio: 1;
    background-color: #95caef;
    border-radius: 15%;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    cursor: pointer;
    align-content: center;
    text-align: center;
    font-size: 200%;
    font-weight: 900;
    transition: 200ms;
}
.button:hover {
    background-color: #7ab8d4;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
#fon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000077;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: block;
}
#fon.show {
    opacity: 1;
    pointer-events: auto;
}
#fon:not(.show) {
    display: block;
}
#image-fon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #00000077;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    align-content: center;
}
#image-fon.show {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
}
#image-fon:not(.show) {
    display: block;
}
#galleries {
    width: 80%;
    height: 80%;
    top: 10%;
    justify-self: center;
    justify-items: right;
    position: absolute;
    transition: z-index 100ms;
    z-index: -1;
}
#galleries.show {
    z-index: 2;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(10, minmax(1%, 1fr));
    grid-template-rows: repeat(3, minmax(1%, 1fr));
    gap: 10px;
    align-self: center;
    padding: 20px;
    padding-top: 30px;
    border-radius: 5px;
    position: absolute;
    width: 100%;
    height: 90%;
    top: 0;
    justify-self: center;
    background-color: #fff;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.gallery.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.gallery img {
    transition: 0.2s;
    max-height: 100%;
    max-width: 100%;
    border-radius: 5px;
    transform: scale(0.9);
    box-shadow: 0 2px 5px #0003;
}
#full-image {
    opacity: 0;
    max-width: 80%;
    max-height: 80%;
    z-index: -2;
    scale: (1);
    transition: opacity 200ms;
    transition: transform 200ms;
}
#full-image.show {
    opacity: 1;
    z-index: 3;
    border: 3.5px solid white;
    transform: scale(110%);
    border-radius: 15px;
}
#close-button {
    position: absolute;
    right: -20px;
    width: 35px;
    height: 25px;
    border: 1px solid #ccc;
    border-radius: 0 5px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 100ms;
    transform: scale(0);
    opacity: 0;
    z-index: 2;
}
#close-button.show {
    opacity: 1;
    cursor: pointer;
    transform: scale(1);
}

#close-button:hover {
    background-color: #f77;
    border: 1px solid #f77;
}
#close-button .left {
    width: 15px;
    height: 1px;
    background-color: #f77;
    position: absolute;
    rotate: 45deg;
    border-radius: 1px;
    transition: 100ms;
}
#close-button:hover .left {
    background-color: #fff;
}
#close-button .right {
    width: 15px;
    height: 1px;
    background-color: #f77;
    position: absolute;
    rotate: -45deg;
    border-radius: 1px;
    transition: 100ms;
}
#close-button:hover .right {
    background-color: #fff;
}

footer {
    font-weight: 900;
    font-size: 15px;
    position: absolute;
    height: 40px;
    left: 0;
    bottom: 0;
    background-color: #95caef;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (width <= 1100px){
    .container .button p {
        font-size: 80%;
    }
}
@media screen and (width <= 900px){
    .container .button p {
        font-size: 60%;
    }
}
@media screen and (width <= 700px){
    .container {
        justify-self: center;
        max-width: 60%;
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (width <= 500px){
    .container {
        position: relative;
        top: 0;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
    footer {
        position: relative;
        bottom: -10px;
        left: -10px;
        width: 102%;
    }
}
