/*
    Doodle Jump Game - CSS Stylesheet
    Developed by: RSK World
    Founder: Molla Samser
    Designer & Tester: Rima Khatun
    Website: https://rskworld.in
    Contact: +91 93305 39277 | hello@rskworld.in
    Location: Nutanhat, Mongolkote, Purba Burdwan, West Bengal, India
    License: Free for educational and commercial use
    Copyright 2026 RSK World. All rights reserved.
*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Fredericka the Great', cursive;
    background-color: #F8EDE3;
    color: #537188;
    line-height: 1.6;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

h1{
    font-family: 'Fredericka the Great', cursive;
    font-size: 50pt;
    color: #7D6E83;
}

.game-header {
    background: linear-gradient(135deg, #7D6E83 0%, #537188 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-home a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-home a:hover {
    transform: scale(1.05);
}

.nav-title h1 {
    font-size: 2rem;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.game-info {
    text-align: center;
    margin-bottom: 3rem;
}

.game-description h2 {
    font-size: 2.5rem;
    color: #7D6E83;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.game-description p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.game-features, .game-instructions {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.game-features h3, .game-instructions h3 {
    color: #537188;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.game-features ul {
    list-style: none;
    padding: 0;
}

.game-features li {
    font-size: 1.1rem;
    margin: 1rem 0;
    padding: 0.5rem;
    background: #F8EDE3;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.game-features li:hover {
    transform: translateX(10px);
    background: #E8D5C4;
}

.game-container {
    text-align: center;
    margin: 3rem 0;
}

.game-canvas-wrapper {
    display: inline-block;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#board {
    background-image: url("./assets/doodlejumpbg.png");
    width: 400px;
    height: 600px;
    border: 5px dotted #7D6E83;
    border-radius: 10px;
    display: block;
}

.game-controls {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.play-btn, .pause-btn, .sound-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    font-weight: bold;
}

.play-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.pause-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.pause-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.sound-btn {
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
    color: white;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.sound-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

.sound-btn.sound-off {
    background: linear-gradient(45deg, #757575, #616161);
    box-shadow: 0 4px 15px rgba(117, 117, 117, 0.3);
}

.sound-btn.sound-off:hover {
    box-shadow: 0 6px 20px rgba(117, 117, 117, 0.4);
}

.related-games {
    margin: 4rem 0;
}

.related-games h3 {
    font-size: 2rem;
    color: #7D6E83;
    text-align: center;
    margin-bottom: 2rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.game-card h4 {
    color: #537188;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.game-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.game-footer {
    background: linear-gradient(135deg, #537188 0%, #7D6E83 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-keywords {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-keywords span {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.footer-keywords span:hover {
    background: rgba(255,255,255,0.2);
}

/* RSK World Credits Section */
.rsk-credits {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.rsk-credits p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.rsk-credits p:first-child {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.rsk-credits a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.rsk-credits a:hover {
    color: #F8EDE3;
}

@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-title h1 {
        font-size: 1.5rem;
    }
    
    .game-description h2 {
        font-size: 2rem;
    }
    
    #board {
        width: 300px;
        height: 450px;
    }
    
    .game-features, .game-instructions {
        padding: 1rem;
        margin: 1rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-keywords {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .game-main {
        padding: 1rem;
    }
    
    #board {
        width: 250px;
        height: 375px;
    }
    
    .play-btn, .pause-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

strong {
    color: #537188;
    font-weight: bold;
}

:focus {
    outline: 3px solid #4CAF50;
    outline-offset: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-info, .game-container, .related-games {
    animation: fadeIn 0.8s ease-out;
}