@font-face {
    font-family: Moli;
    src: url(./assets/fonts/Mooli-Regular.ttf);
}

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

}

a {
    text-decoration: none;
    color: black;
    transition: all 1s ease;
    font-size: 24px;
}

a:hover {
    color: rgb(6, 21, 44);
}

::placeholder {
    font-family: Moli;
}


body {
    background: linear-gradient(45deg, #9890e3, #b1f4cf);
    font-family: Moli;
}

.pseudo-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e6e6e6c0;
    border-radius: 5px;
    padding: 10px 20px;
    z-index: 999;
}

.pseudo-alert-active {
    display: flex;
}

.alert-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.alert-box p {
    font-size: 14px;
}


.smail {
    width: 70px;
    height: 70px;
}

.alert-btn {
    padding: 8px 30px;
    background-color: #3e92b9;
    cursor: pointer;
    border: none;
}

.alert-btn:hover {
    background-color: #254b5c;
}

.alert-btn:active {
    background-color: #3e92b9;
}


.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.wrapper-inactive {
    position: relative;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.header {
    width: 100%;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px;
}

.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-search {
    position: relative;
}

.search {
    width: 300px;
    height: 50px;
    border-radius: 25px;
    padding: 10px;
    font-size: 18px;
}

@media (max-width: 540px) {
    .search {
        width: 200px;

    }
}

.pic-search {
    position: absolute;
    top: 11px;
    right: 13px;
    height: 30px;
    cursor: pointer;
}


.search-close {
    position: absolute;
    top: 11px;
    right: 53px;
    height: 30px;
    cursor: pointer;
}

.main {
    width: 100%;
}

.pic-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

@media (max-width: 768px) {
    .pic-box {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 540px) {
    .pic-box {
        grid-template-columns: 1fr;
    }
}



.pic {
    width: 100%;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
    transition: all 1s ease;
}

.pic:hover {
    filter: brightness(15%);
}

.show-pic {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90%;
    width: 70%;
}

.show-pic-active {
    display: block;
    position: fixed;
}


.main-pic {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #000;
}

.main-pic-active {
    display: block;
}

.pic-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 99;
    background: #ffffff65;
    cursor: pointer;
    border-radius: 50%;
    transition: all 1s ease;
}

.pic-close:hover {
    transform: scale(1.2);
}

.pic-close-active {
    display: block;
}

.footer {
    width: 100%;

}

.footer-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 100px;
}

.footer-box a:hover {
    transform: scale(1.2);
}