@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

:root {
    --primary: #83E4D1;
    --primary-dark: #5ac2af;
    --accent: #ff9f1c;
    --accent-hover: #e38a15;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-main: #f4f6f9;
    --card-bg: #ffffff;
    --surface: #ffffff;
    --bg: #f4f6f9;
    --text: #2d3436;
    --muted: #636e72;
    --border: #dfe6e9;
    --teal: #83E4D1;
    --teal-dark: #5ac2af;
    --orange: #ff9f1c;
    --radius-lg: 20px;
    --radius-md: 15px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, .05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, .08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, .12);
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    margin: 0;
    font-family: 'Nunito', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    letter-spacing: .5px;
}

main {
    flex: 1;
}


main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-section {
    text-align: center;
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    border-top: 8px solid var(--accent);
}

.hero-title {
    font-size: 40px;
    margin-bottom: 15px;
    color: #111;
}

.hero-title:hover {
    cursor: pointer;
    color: orange;
    font-weight: bold;
    font-family: url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 750px;
    margin: auto;
}

.video-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.video-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-content: center;
    justify-items: center;
    align-items: center;
}

.videos-grid video:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 140, 0, .8);
}

.videos-grid video {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    border: 4px solid orange;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 140, 0, .5);
}

.islas {
    gap: 40px;
    justify-content: center;
    justify-items: center;
    align-items: center;
}

.islas video:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 140, 0, .8);
}

.islas video {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;
    border: 4px solid orange;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 140, 0, .5);
}

@media(max-width:768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Support page styles duplicates removed */

iframe {
    height: 500px;
    width: 500px;

}

.gameplay1 {
    text-align: left;
}

.gameplay2 {
    text-align: right;
}


/* ===========================
   SECTION HEADER
=========================== */
.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    margin-top: 8px;
    color: var(--text);
    font-size: 30px;
}

/* ===========================
   MECHANIC CARDS
=========================== */
.mechanic-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mechanic-icon {
    font-size: 36px;
    width: 64px;
    height: 64px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.mechanic-card h3 {
    font-size: 19px;
}

.mechanic-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* ===========================
   LEVELS
=========================== */
.levels-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    border: 1.5px solid var(--border);
    transition: transform .2s, border-color .2s;
}

.level-item:hover {
    transform: translateX(6px);
    border-color: var(--teal);
}

.level-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.level-info {
    display: flex;
    flex-direction: column;
}

.level-info strong {
    font-size: 17px;
    color: var(--text);
}

.level-info span {
    font-size: 14px;
    color: var(--muted);
}

/* ===========================
   TIPS
=========================== */
.tips-section .section-header {
    margin-bottom: 20px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .gp-hero {
        padding: 28px 20px;
    }

    .gp-hero h1 {
        font-size: 34px;
    }
}


.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .gp-hero {
        padding: 28px 20px;
    }

    .gp-hero h1 {
        font-size: 34px;
    }
}

/* Centralized hidden animations used */

/* ===========================
   MUSIC PLAYER
=========================== */
.music-player-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.music-player-card,
.music-playlist-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

body.dark-mode .music-player-card,
body.dark-mode .music-playlist-card {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.music-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.music-icon-animated {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseMusic 2s infinite ease-in-out;
}

@keyframes pulseMusic {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 159, 28, 0.4);
    }

    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 10px rgba(255, 159, 28, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 159, 28, 0);
    }
}

.track-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-status {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--accent);
}

#music-current-song-title {
    font-size: 18px;
    color: var(--text-dark);
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.player-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--bg-main);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.player-btn svg {
    width: 18px;
    height: 18px;
}

.player-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.player-btn.play-main {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
}

.player-btn.play-main:hover {
    background: var(--accent-hover);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    min-width: 35px;
}

.progress-slider,
.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.progress-slider::-webkit-slider-thumb,
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.progress-slider::-webkit-slider-thumb:hover,
.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 180px;
    margin: 0 auto;
}

.volume-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.volume-btn svg {
    width: 20px;
    height: 20px;
}

.music-playlist-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--text-dark);
}

.playlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

body.dark-mode .playlist-item {
    background: rgba(255, 255, 255, 0.02);
}

.playlist-item:hover {
    background: rgba(131, 228, 209, 0.15);
    border-color: rgba(131, 228, 209, 0.3);
}

.playlist-item.active {
    background: rgba(255, 159, 28, 0.1);
    border-color: rgba(255, 159, 28, 0.3);
}

.playlist-item .track-index {
    font-weight: 700;
    margin-right: 12px;
    color: var(--text-light);
}

.playlist-item.active .track-index,
.playlist-item.active .track-title {
    color: var(--accent);
    font-weight: 700;
}

.playlist-item .playing-indicator {
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--accent);
}

.playlist-item.active .playing-indicator {
    opacity: 1;
}

@media (max-width: 900px) {
    .music-player-container {
        grid-template-columns: 1fr;
    }
}

/* Video Modal Visor */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.video-modal-container {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-container video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #000;
    border: 4px solid orange;
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.video-modal-close:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .video-modal-close {
        top: -40px;
        right: 5px;
    }
}