@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

:root {
    --clr-panel: rgba(25, 25, 25, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: var(--clr-text);
    overflow-x: hidden;
}

header {
    background: var(--clr-panel);
    backdrop-filter: blur(8px);
    padding: 1rem 1.8rem 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

header .logo {
    font-size: 1.5rem;
    font-weight: 700;
}

header .logo img {
    width: 15dvw;
    transition: all linear 150ms;
}

.logo img:hover {
    scale: 1.03;
}

header nav a {
    color: var(--clr-text);
    margin-left: 1rem;
    text-decoration: none;
    transition: color var(--transition);
}

header nav a:hover {
    color: var(--clr-accent);
}

.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
    animation: fadeIn 1.5s;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

section {
    padding: 4rem 2rem;
}

section:nth-child(even) {
    background: var(--clr-panel);
    backdrop-filter: blur(6px);
}

.features,
.reviews {
    max-width: 1000px;
    margin: 0 auto;
}

.features h2,
.reviews h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--clr-accent);
    padding-left: 0.5rem;
}

.features .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.grid a {
    text-decoration: none;
    color: white;
}

.grid a:hover {
    border-radius: 15px;
    box-shadow: 5px 7px 10px #ffd500;
}

.grid img {
    margin-bottom: 12px;
    width: 32px;
}

.features .feature-card {
    background: #1f1f1f;
    border-radius: 1rem;
    padding: 1.5rem;
    transform: translateY(0);
    transition: transform var(--transition), box-shadow var(--transition);
}

.features .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--clr-accent);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.screenshots::-webkit-scrollbar {
    width: 2px;
}

.screenshots {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

.screenshots img {
    flex: 0 0 auto;
    width: 300px;
    height: 170px;
    border-radius: 0.75rem;
    scroll-snap-align: center;
    transition: transform var(--transition);
}

.screenshots img:hover {
    transform: scale(1.05);
}

/* CHALLENGE WHEEL */
.challenge-wheel {
    background: #222116;
    color: #fff7d2;
    font-family: "Luckiest Guy", cursive;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
    user-select: none;
}

#challenge-wheel{
    padding: 25px;
    font-size: 40px;
    font-weight: 100;
}

#wheel {
    border-radius: 50%;
    box-shadow: 0 0 20px #ffcc00cc;
    cursor: grab;
    touch-action: none;
    background: #422e00;
    margin-bottom: 20px;
}

#spinButton {
    background: #c38e2c;
    border: none;
    padding: 15px 40px;
    font-size: 24px;
    color: #422e00;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 0 15px #ffcc00cc;
    transition: background-color 0.3s ease;
}

#spinButton:hover:not(:disabled) {
    background: #ffcc00;
}

#spinButton:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    background: #422e00cc;
    border-radius: 15px;
    padding: 30px 40px;
    transform: translate(-50%, -50%);
    display: none;
    box-shadow: 0 0 20px #ffcc00dd;
    text-align: center;
    z-index: 1000;
    max-width: 90vw;
    user-select: text;
}

#popup.show {
    display: block;
    animation: popupFadeIn 0.3s ease forwards;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#popupText {
    font-size: 30px;
    margin-bottom: 25px;
}

#closePopup {
    background: #c38e2c;
    border: none;
    padding: 10px 25px;
    font-size: 22px;
    border-radius: 12px;
    cursor: pointer;
    color: #422e00;
    font-weight: 700;
    box-shadow: 0 0 10px #ffcc00cc;
    transition: background-color 0.25s ease;
}

#closePopup:hover {
    background: #ffcc00;
}


.video-embed {
    max-width: 80dvw;
    margin: 2rem auto;
    position: relative;
    padding-top: 56.25%;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
}

#reviews-title {
    margin-bottom: 25px;
}

.reviews .review-item {
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.review-item:nth-child(1) {
    animation-delay: 0.2s;
}

.review-item:nth-child(2) {
    animation-delay: 0.4s;
}

.review-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.review-item p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.review-item .author {
    text-align: right;
    font-weight: 500;
}

footer {
    text-align: center;
    padding: 1rem;
    background: var(--clr-panel);
    backdrop-filter: blur(6px);
}

footer p:hover {
    text-shadow: 0px 0px 7px var(--clr-accent);
}

@media(max-width:600px) {
    header .logo img {
        width: 143px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .features .grid {
        grid-template-columns: 1fr;
    }
}