* {
    box-sizing: border-box;
}

html {
    position: relative;
    min-height: 100%;

    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    color: #000000;
    text-align: center;

    background: #ffffff;
}

body {
    overflow-x: hidden;
}

h1,
p {
    margin: 0 0 10px;
}

p {
    line-height: 1.4;
}

.container {
    padding: 0 15px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }
}

.logo {
    display: flex;
    min-height: 85px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    z-index: 1;
}

.section-text {
    padding: 30px 0;
    /* More breathing room */
    background: #232f3e;
    text-align: center;
}

.section-text h2 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #ffffff;
}

.section-text h3 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    /* Cleaner, thinner look */
    font-size: 16px;
    line-height: 1.6;
    color: #eeeeee;
    max-width: 600px;
    margin: 0 auto;
}

.h2 {
    margin: 15px 0;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
}

.h3 {
    font-size: 18px;
    font-weight: bold;
}

.wrapper {
    position: relative;

    max-width: 320px;
    margin: 0 auto;
    min-height: 360px;
}

.box {
    position: absolute;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.box:nth-child(1) {
    top: 0;
    left: 0;
}

.box:nth-child(2) {
    top: 0;
    left: 50%;
}

.box:nth-child(3) {
    top: 33%;
    left: 0;
}

.box:nth-child(4) {
    top: 33%;
    left: 50%;
}

.box:nth-child(5) {
    top: 66%;
    left: 0;
}

.box:nth-child(6) {
    top: 66%;
    left: 50%;
}

.box {
    width: 130px;
    height: 140px;
    margin: 5px;
    padding: 0;

    background: transparent url("../images/QXWqbBrJT9qg.webp") no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
}

.box-empty {
    opacity: 0.3;
    pointer-events: none;
}

.box.box-win-zoom {
    top: 30%;
    right: 0;
    left: 0;

    width: 366px;
    height: 300px;

    margin: auto;

    opacity: 1;
    transition: 1s;
}

.btn {
    min-width: 240px;
    padding: 15px 40px;
    margin: 0 10px 20px;

    font-weight: bold;
    font-size: 1.1rem;
    color: #111;
    text-decoration: none;

    background: #fea318;
    /* Amazon Orange */
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border: 1px solid #a88734;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.btn:hover {
    background: linear-gradient(to bottom, #f5d78e, #eeb933);
}

.white-popup {
    position: relative;

    width: 95%;
    max-width: 440px;
    margin: 20px auto;
    padding: 30px;

    background: rgba(255, 255, 255, 1);
    text-align: center;
    border-radius: 20px;

    overflow: hidden;
}

.white-popup .h2,
.white-popup .h3 {
    position: relative;
    z-index: 1;

    margin: 0 0 10px;

    color: #000000;
}

.white-popup .h3 {
    margin: 0 0 15px;
}

#modal-win {
    max-width: 400px;
    padding-top: 20px;
}

.mb-2 {
    margin-bottom: 2rem;
}

.modal-img {
    display: block;
    width: 78%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 12px;
    z-index: 0;
}

@media (max-width: 576px) {
    .btn {
        margin: 0 0 10px;
        padding: 10px 15px;
    }

    .white-popup {
        padding: 20px;
    }

    #modal-win {
        padding-top: 20px;
    }
}

@media (max-width: 320px) {
    .wrapper {
        max-width: 300px;
    }

    .box {
        width: 130px;
        height: 107px;
        margin: 0 0 30px;
    }
}

.hide {
    min-height: 0;
    height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
}

.opacity-0 {
    opacity: 0;
    transition: 1s;
}

.footer {
    background-color: #000;
    padding: 15px 0;
}

.footer__text {
    font-size: 10px;
    text-align: center;
    line-height: 1.6;
    color: #fff;
}

.height {
    margin-bottom: 50px;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

header {
    animation: slideInFromTop 1s ease;
}

@keyframes slideInFromDown {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

section,
.text,
.footer {
    animation: slideInFromDown 1s ease;
}

.subheader-bar {
    background-color: #37475a;
    color: white;
    padding: 10px 0;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#countdown {
    color: #fea318;
    font-family: monospace;
    font-size: 16px;
}

/* Comments Section */
.comments-section {
    background: #f3f3f3;
    padding: 20px 0;
    margin-top: 20px;
    text-align: left;
}

.comments-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.rating {
    font-size: 14px;
    color: #666;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e7e7e7;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: bold;
    color: #0066c0;
    font-size: 13px;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 4px;
}

.comment-meta {
    font-size: 11px;
    color: #555;
}

.comment-meta a {
    color: #0066c0;
    text-decoration: none;
    margin-right: 5px;
}

/* Box Graphic Update */
.box {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s;
}

.box:hover {
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.box:not(.box-open) {
    animation: pulse 2s infinite ease-in-out;
}

/* Highlight Text - Context Aware */
.highlight {
    font-weight: 700;
}

/* Dark Background (Header) */
.section-text .highlight {
    color: #fea318;
    /* Bright Amazon Orange for contrast on Dark Blue */
    text-shadow: none;
    border-bottom: 2px solid rgba(254, 163, 24, 0.3);
}

/* White Background (Modal) */
.white-popup .highlight {
    color: #c45500;
    /* Dark Amazon Price Color for contrast on White */
    font-size: 1.1em;
}

/* Win Modal Improvements */
#modal-win .h3 {
    color: #111;
    font-size: 22px;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
    text-transform: none;
}

#modal-win .newclr {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

#modal-win .win-kicker {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: #111;
}

#modal-win .win-body {
    display: block;
    margin-top: 6px;
}

#modal-win .win-uses {
    display: block;
    margin-top: 10px;
    color: #555;
    font-size: 15px;
}

#modal-win .btn-final {
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border-color: #a88734;
    color: #111;
    font-size: 1.1rem;
    /* Slightly smaller font to fit */
    font-weight: 800;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, 0.5);
    animation: pulse 1.5s infinite;

    /* Layout Fixes */
    width: 90%;
    max-width: 350px;
    white-space: nowrap;
    /* Force single line */
    padding: 15px 10px;
    /* Reduce side padding to fit text */
    display: inline-block;
    margin-top: 14px;
}

/* Mobile tweak for smaller screens */
@media (max-width: 360px) {
    #modal-win .btn-final {
        font-size: 0.9rem;
        white-space: normal;
        /* Allow wrap on very small screens */
        line-height: 1.2;
    }
}

#modal-win .newclr {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Urgent Text Highlight */
.urgent-text {
    color: #d00;
    /* Alert Red */
    font-weight: 900;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: flash 2s infinite;
}

@keyframes flash {
    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.6;
    }
}
