/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 95vh;
    background-color: #70c5ce;
    overflow-x: hidden;
}

/* ===== Header Styles ===== */
header {
    background: linear-gradient(135deg, #ffcc00, #ff9500);
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo span {
    color: #4CAF50;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ===== Game Container Styles ===== */
#game-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 450px;
    margin: 0.3rem auto;
    overflow: hidden;
    background-image: url('img/background.jpg');
    background-size: cover;
    border: 3px solid #333;
    border-radius: 10px;
    flex-grow: 1;
}

#bird {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: none;
}

.pipe {
    position: absolute;
    width: 60px;
    right: -60px;
    background-image: url('img/Pipe.png');
    background-size: 100% 100%;
    z-index: 5;
}

#score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
}

/* ===== Screen Styles ===== */
#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    z-index: 200;
}

#start-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 200;
}

#game-over h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#game-over p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* ===== Button Styles ===== */
button {
    padding: 12px 25px;
    font-size: 1.2rem;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

button:hover {
    background-color: #ffd633;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.98);
}

/* ===== Content Page Styles ===== */
.page-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.content-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-container h2 {
    color: #ff9500;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.content-container p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    body{
        min-height: 95vh;
    }
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav li {
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    #game-container {
        margin-top: 30px;
        height: 65vh;
        max-width: 100%;
        border-radius: 0;
    }
    
    #bird {
        width: 35px;
        height: 35px;
    }
    
    .pipe {
        width: 50px;
    }
    
    #start-screen h1 {
        font-size: 2rem;
    }
    
    button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* ===== Privacy Policy Specific Styles ===== */
.content-container h1 {
    color: #ff9500;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.policy-section p {
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}