/* Game Wrapper Styles */
:root {
    --primary-color: #ff6f61;
    --secondary-color: #4a6fa5;
    --accent-color: #ffd166;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

/* Game Header */
.game-header {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-button {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.game-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 0.5rem;
}

.control-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.1);
}

.control-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Game Container */
.game-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
}

.game-container iframe,
.game-container canvas,
.game-container embed,
.game-container object {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border: none;
}

/* Game Footer */
.game-footer {
    background-color: var(--light-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.game-info {
    display: flex;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: var(--dark-color);
}

.game-controls {
    display: flex;
    gap: 0.5rem;
}

.game-controls .control-button {
    color: var(--dark-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.game-controls .control-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    width: 80%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1rem;
    background-color: var(--dark-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-button:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 2rem;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .game-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .game-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .game-controls {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}
