.popbox {
    background: linear-gradient(45deg, rgba(0, 198, 255, 0.7), rgba(0, 114, 255, 0.69));
    position: fixed;
    inset: 0;

    overflow-y: auto;

    display: flex;
    justify-content: center;
    align-items: flex-start; /* ГОЛОВНЕ */

    padding-top: 40px;
    opacity: 0;
    visibility: hidden;
    z-index: 120;
}
.popbox.active {
    opacity: 1;
    visibility: visible;
}
.popup {
    max-width: 1000px;
    width: 90%;
}
.popup {
    background-color: rgb(30, 93, 172);
    width: 82%;
    border-radius: 43px;
    box-shadow: 1px 79px 188px black;
    display: flex;
    flex-direction: column;
    padding: 30px;
    transform: scale(0.7);
    transition: transform 0.35s ease;
}

.popbox.active .popup {
    transform: scale(1);
}
.butX {
    display: flex;
    justify-content: right;
    padding-bottom: 20px;
}
.xbut {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    width: 7%;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.xbut:hover {
    background: linear-gradient(45deg, #ff4d4d, #ff0000);
    box-shadow: 0 0 20px rgba(255, 0, 0, 1);
    transform: scale(1.05);
}
.up,
.down {
    position: fixed;
    right: 20px;
    font-size: 30px;
    text-decoration: none;
}

.up {
    bottom: 80px;
}

.down {
    bottom: 40px;
}
details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    font-size: 1.5rem;
    font-weight: bold;
}

details summary::-webkit-details-marker {
    display: none; /* прибирає стандартну стрілку */
}

details summary::before {
    content: "➤"; /* стрілка вправо */
    display: inline-block;
    margin-right: 6px;
    transition:
        transform 0,
        2s ease;
}

details[open] summary::before {
    transform: rotate(90deg); /* повертає стрілку вниз при відкритті */
}
.boss {
    border: inset 19px rgba(0, 198, 255, 0.7);
    width: 49%;
}
.bonus {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.megaboss {
    font-family: "Limelight", sans-serif;
    font-weight: 900;
    font-style: normal;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;

    align-items: center;
}
.HCen {
    text-align: center;
    font-weight: bold;
}
.miniboss {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.andriea {
    font-size: 2rem;
}
.viktoria {
    font-size: 6rem;
}
.ivanivna {
    font-size: 2rem;
}

header {
    position: sticky;
    top: 0;
    align-content: center;
}
main {
    margin-top: 78px;
}
.role {
    margin: 2px 0;
}
.summ {
    padding: 7px;
}
.summ:hover {
    cursor: pointer;
    /*background: linear-gradient(45deg, #d9d9d9, #a6a6a6);*/
    box-shadow: 0 0 20px rgba(89, 139, 226, 0.98);
    border-radius: 10px;

    transition: all 0.2s ease;
}
.event-section {
    margin: 5% 10%;
    padding: 20px;
    background-color: rgba(30, 93, 172, 0.8);
    border-radius: 30px;
    color: white;
    text-align: left;
}

.event-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.event-text {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.event-photos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.event-photos img {
    width: 32%;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

@media (max-width: 768px) {
    .event-photos img {
        width: 100%;
    }

    .event-title {
        font-size: 2rem;
    }

    .event-text {
        font-size: 1.2rem;
    }
}
.events-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.events-list li {
    margin: 6px 0;
}

.events-list a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: 0.25s;
}
#uli li {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: 0.25s;
}
.events-list a:hover,
#uli li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(6px);
}
h1,
h3 {
    font-family: "Science Gothic", sans-serif;
    color: #8c9ebe;
    font-size: 3rem;
    font-weight: 1112;
}
.h4 {
    font-weight: 1000;
}
.black-button {
    background-color: rgba(255, 255, 255, 0.16);
    border-radius: 2vh;
    border: solid white;
    height: 5vh;
    width: 57%;
}

.black-button:hover {
    background-color: black;
    border: solid black;
    color: white;
}
body {
    background-color: #0a0f1c;
    color: white;
    margin: 0;
}
.for-img {
    width: 80%;
    margin: 0 10% 0 10%;
    border-radius: 40px;
    box-shadow: 1px 3px 183px rgba(42, 82, 152, 0.41);
}
.htoiyak {
    text-align: center;
    font-size: 3vh;
    margin-top: 30px;
    margin-bottom: 0 auto;
}
.text {
    font-weight: 500;
    font-size: larger;
    text-align: center;
    margin: 3% 5% 0 5%;
    color: aliceblue;
}
.title {
    text-align: center;
    font-size: 2rem;
    color: #8c9ebe;
    width: 90%;
    margin: 40px;
}
.div-wth-info {
    margin: 0 13% 0 0%;
    width: 100%;
    display: flex;
    justify-content: space-around;
}
.two-down {
    margin: 1% 0 5% 0%;
    align-content: center;
    justify-content: space-evenly;
    display: flex;
}
.image-container {
    display: inline-block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2vh;
}
.image-container img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    transition: all 0.5s ease;
}
.overlay {
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 198, 255, 0.7), rgba(0, 114, 255, 0.69));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateY(20px);
}
.overlay h3,
h4 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}
.overlay h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 10px;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}
.overlay p {
    font-size: 16px;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-align: center;
    padding: 0 20px;
}
.image-container:hover img {
    transition: scale(1.1);
    filter: brightness(0.7);
}
.image-container:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}
.image-container:hover .overlay h3 {
    transform: translateY(0);
    transition-delay: 0.2s;
}
.image-container:hover .overlay h2 {
    transform: translateY(0);
    transition-delay: 0.2s;
}
.image-container:hover .overlay p {
    transform: translateY(0);
    transition-delay: 0.3s;
}
.image-container:after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
}
.image-container:hover::after {
    left: 150%;
}
.footer {
    padding-top: 100px;
}
.litle-title {
    padding-top: 27px;
}

@media (max-width: 1000px) {
    header {
        width: 60px;
    }
    .div-wth-info {
        margin: 0;
        flex-wrap: wrap;
        display: flex;
        text-align: center;
    }

    .spa {
        display: none;
    }
    .two-down {
        flex-wrap: wrap;
        display: flex;
        margin: 0 auto;
        width: 100%;
    }
    .image-container {
        width: 90%;
        margin: 3% auto;
    }
    .for-img {
        width: 92%;
        margin: 0 4% 0 4%;
        height: 25vh;
    }
    .title {
        font-weight: 600;
        font-size: 4.5rem;
    }
    .text {
        font-size: 2.5rem;
    }
    .overlay p {
        font-size: 2.6rem;
    }
    .overlay h1 {
        font-size: 4rem;
    }
    .overlay h3,
    h4 {
        font-size: 3rem;
    }
    .popup {
        width: 94%;
        height: 96%;
    }
    .role {
        font-size: 0, 5rem;
    }
    .HCen {
        font-size: 3rem;
        margin-bottom: 71px;
    }
    .summ {
        font-size: 2.1rem;
    }
    .events-list li {
        font-size: 1.9rem;
    }
}
