* {
    box-sizing: border-box;
}

body {
    background-color: black;
    font-family: "MyCustomFont", sans-serif;
    width: 100%;
    height: 100%;
    margin: 0;
    /* overflow: hidden; */
    background: #000;
}

/* body.winners {
    margin: 0;
    padding: 40px;
    background: #111;
    color: white;
    font-family: Arial, sans-serif;
} */

img {
    width: 100%;
    height: auto;
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

/* .image-wrapper img {
    width: 100%;
    display: block;
} */

.image-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 13%;
    background: linear-gradient(to bottom,
            transparent,
            #000000);
    pointer-events: none;
}

.menu {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

.menu-button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.menu-button img {
    width: 66px;
    height: 66px;
    display: block;
    transition: transform 0.3s ease;
}

/* Иконата се завърта, докато курсорът е върху цялото меню */
.menu:hover .menu-button img {
    transform: scale(1.1) rotate(180deg);
}

.menu-items {
    position: absolute;
    top: 55px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
    font-weight: bold;
    align-items: end;
    margin-top: 25%;
}

/* Hover поведение само на десктоп */
@media (min-width: 769px) {
    .menu:hover .menu-items {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu:hover .menu-button img {
        transform: scale(1.1) rotate(180deg);
    }
}

.menu-items a {
    color: rgb(221, 11, 11);
    text-decoration: none;
    white-space: nowrap;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
}

.mobile-nav {
    z-index: 20;
}

/* само на mobile */

@media (max-width: 768px) {

    .menu-button img {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .menu-button.active img {
        transform: rotate(180deg);
    }

    .menu-items.mobile-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-items.mobile-nav {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .nav-backdrop.active {
        display: block;
    }

    .menu {
        position: fixed;
        top: 30px;
        right: 10px;
        z-index: 1000;
    }
}


p {
    color: #a29259;
    width: 89%;
    justify-self: center;
    text-align: center;
    font-weight: bold;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    /* font-size: 1rem; */
}


@font-face {
    font-family: "MyCustomFont";
    src: url("fonts/constantine-lq0q-webfont.woff2") format("woff2"),
        url('fonts/constantine-lq0q-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "MySecondCustomFont";
    src: url("fonts2/roadrage-webfontwoff2") format("woff2"),
        url('fonts2/roadrage-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

h1 {
    position: relative;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: calc(20px + 5vw);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 0 0.15em #1da9cc;
    user-select: none;
    white-space: nowrap;
    filter: blur(0.007em);
    animation: shake 2.5s linear forwards;
}

h2 {
    font-family: "MyCustomFont", sans-serif;
    background: linear-gradient(1deg, #cd0046, #060681);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

div.winnersTitle {
    text-align: center;
    margin-bottom: 40px;
    margin: 2%;
    font-family: "MySecondCustomFont", sans-serif;
    background: linear-gradient(1deg, #cd0046, #060681);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 9%;
    font-size: clamp(2rem, 1.2rem + 3vw, 4rem);
    line-height: 1.15;
}

h1 span {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    -webkit-clip-path: polygon(10% 0%, 44% 0%, 70% 100%, 55% 100%);
    clip-path: polygon(10% 0%, 44% 0%, 70% 100%, 55% 100%);
}

h1::before,
h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
}

h1::before {
    animation: crack1 2.5s linear forwards;
    -webkit-clip-path: polygon(0% 0%, 10% 0%, 55% 100%, 0% 100%);
    clip-path: polygon(0% 0%, 10% 0%, 55% 100%, 0% 100%);
}

h1::after {
    animation: crack2 2.5s linear forwards;
    -webkit-clip-path: polygon(44% 0%, 100% 0%, 100% 100%, 70% 100%);
    clip-path: polygon(44% 0%, 100% 0%, 100% 100%, 70% 100%);
}

@keyframes shake {

    5%,
    15%,
    25%,
    35%,
    55%,
    65%,
    75%,
    95% {
        filter: blur(0.018em);
        transform: translateY(0.018em) rotate(0deg);
    }

    10%,
    30%,
    40%,
    50%,
    70%,
    80%,
    90% {
        filter: blur(0.01em);
        transform: translateY(-0.018em) rotate(0deg);
    }

    20%,
    60% {
        filter: blur(0.03em);
        transform: translate(-0.018em, 0.018em) rotate(0deg);
    }

    45%,
    85% {
        filter: blur(0.03em);
        transform: translate(0.018em, -0.018em) rotate(0deg);
    }

    100% {
        filter: blur(0.007em);
        transform: translate(0) rotate(-0.5deg);
    }
}

@keyframes crack1 {

    0%,
    95% {
        transform: translate(-50%, -50%);
    }

    100% {
        transform: translate(-51%, -48%);
    }
}

@keyframes crack2 {

    0%,
    95% {
        transform: translate(-50%, -50%);
    }

    100% {
        transform: translate(-49%, -53%);
    }
}

/* .notReady {
    font-family: "MySecondCustomFont";
    display: inline-block;
    font-size: xxx-large;
    color: #8b0000;
    letter-spacing: 18%;
    animation:
        flicker 3s infinite,
        shake 0.2s infinite;
} */

/* Примигване */

/* @keyframes flicker {

    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        opacity: 1;
    }

    20%,
    24%,
    55% {
        opacity: 0;
    }
} */

/* Трептене */
/* @keyframes shake {
    0% {
        transform: translate(0, 0) rotate(0);
    }

    25% {
        transform: translate(-1px, 1px) rotate(-0.5deg);
    }

    50% {
        transform: translate(1px, -1px) rotate(0.5deg);
    }

    75% {
        transform: translate(-1px, -1px) rotate(-0.3deg);
    }

    100% {
        transform: translate(0, 0) rotate(0);
    }
} */

/* .notReady {
    font-family: "MySecondCustomFont";
    display: inline-block;
    font-size: xxx-large;
    color: #8b0000;
    letter-spacing: 18%;
} */

/* .intro-text {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
} */

/* .word {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: bold;
    opacity: 0;

    animation-duration: 2.5s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
} */

/* Първата дума */
/* .word-1 {
    animation-name: wordOne;
} */

/* Втората дума */
/* .word-2 {
    animation-name: wordTwo;
} */

/* @keyframes wordOne {
    0% {
        opacity: 0;
        transform: translate(-120vw, -80vh) rotate(-20deg);
    }

    20% {
        opacity: 1;
    }

    65% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: translate(-32%, calc(114% - 7px));
    }
}

@keyframes wordTwo {
    0% {
        opacity: 0;
        transform: translate(100vw, 80vh) rotate(20deg);
    }

    20% {
        opacity: 1;
    }

    65% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: translate(-39%, calc(128% + 43px));
    }
} */

video {
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    video {
        width: 100%;
        max-width: 800px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

.re {
    width: 98vw;
    height: 98vh;
    object-fit: contain;
}

.source {
    width: 50%;
    justify-self: center;
}

@media (max-width: 768px) {
    .source {
        width: 78%;
        justify-self: center;
    }
}

.name {
    color: #d3ab1b;
}

.star {
    display: inline-block;
    margin: 13px;
}

.center {
    justify-items: center;
    overflow: hidden;
}


/* подскачане: */

#frantic-word {
    position: fixed;
    left: 50%;
    top: 50%;
    font-family: Arial, sans-serif;
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 900;
    color: white;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    user-select: none;
    pointer-events: none;
    will-change: transform, opacity;
}

@media (max-width: 768px) {
    #frantic-word {
        position: fixed;
        left: 50%;
        top: 50%;
        font-family: Arial, sans-serif;
        font-size: clamp(25px, 4vw, 80px);
        font-weight: 900;
        color: white;
        white-space: nowrap;
        transform: translate(-50%, -50%);
        user-select: none;
        pointer-events: none;
        will-change: transform, opacity;
    }
}

/* Финалното пулсиране */
#frantic-word.final-pulse {
    animation: pulse 0.45s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        transform: translate(-50%, -50%) scale(1.18);
    }
}

/* Избледняването */
#frantic-word.fade-out {
    animation: pulse 0.45s ease-in-out infinite alternate, fadeOut 2.5s ease-in forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Победители css */
/* Победители css */
/* Победители css */

/* -------------------------
   GALLERY
------------------------- */

.blog-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;

    text-align: center;
}


.blog-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: scale(1.03);
}


.blog-card img {
    width: 100%;
    aspect-ratio: 3 / 4;

    object-fit: cover;

    display: block;
}


.blog-card h2 {
    margin-top: 12px;
    font-size: 20px;
}


/* -------------------------
   MODAL
------------------------- */

.modal {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.85);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 1000;
}


.modal.active {
    opacity: 1;
    visibility: visible;
}


/* -------------------------
   MODAL CONTENT
------------------------- */

.modal-content {
    position: relative;

    width: min(900px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    background: #1b1b1b;

    display: flow;
    grid-template-columns: 1fr 1fr;

    gap: 30px;

    padding: 30px;

    border-radius: 12px;

    text-align: left;
}


.modal-content img {
    width: 100%;

    max-height: 70vh;

    object-fit: contain;
}


.modal-text {
    align-self: center;
}


.modal-text h2 {
    font-size: 32px;
    margin-top: 0;
    text-align: center;
}


.modal-text p {
    font-size: 18px;
    line-height: 1.7;
}


/* -------------------------
   CLOSE BUTTON
------------------------- */

.close {
    position: absolute;

    top: 10px;
    right: 15px;

    border: none;
    background: none;

    color: #a29259;

    font-size: 40px;

    cursor: pointer;

    z-index: 10;
}


/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 700px) {

    body.winnersPage {
        padding: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 15px;
    }

    .modal-content {
        grid-template-columns: 1fr;

        padding: 0px;

        max-height: 95vh;
    }

    .modal-content img {
        max-height: 45vh;
    }

    .modal-text h2 {
        font-size: 26px;
    }

    .modal-text p {
        font-size: 16px;
    }
}

@font-face {
    font-family: "MyCustomFont";
    src: url("fonts/constantine-lq0q-webfont.woff2") format("woff2"),
        url('fonts/constantine-lq0q-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "MySecondCustomFont";
    src: url("fonts2/roadrage-webfontwoff2") format("woff2"),
        url('fonts2/roadrage-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.article-text {
    display: none;
}

.numbers {
    color: rgb(163 9 9);
}

.winnerName {
    color: rgb(163 9 9);
    text-align: center;
    font-style: italic;
}

.author {
    font-weight: bold;
}

.penta {
    color: rgb(163 9 9);
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 25px;
}

.symbol {
    font-size: medium;
}

.date {
    font-style: italic;
    color: #a1a1a1;
}