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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #F0E68C 100%);
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    color: #333;
    background-attachment: fixed;
    position: relative;
}

.game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
}

.game-header {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid #333;
    backdrop-filter: blur(5px);
    display: none;
}

.game-header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 12px;
    border-radius: 15px;
    text-align: center;
    min-width: 70px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stat-item .label {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 2px;
    opacity: 0.9;
}

.stat-item span:last-child {
    font-size: 1rem;
    font-weight: bold;
}

.game-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#gameCanvas {
    border: none;
    background: #5C94FC;
    display: block;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    z-index: 100;
    pointer-events: none;
}

.controls > * {
    pointer-events: auto;
}

.control-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #333;
    min-width: 180px;
    backdrop-filter: blur(5px);
}

.control-section h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 1rem;
    text-align: center;
}

.control-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.control-item {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-align: center;
    border: 1px solid #ccc;
}

.button-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.game-btn {
    padding: 8px 16px;
    border: 2px solid #333;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.start-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.pause-btn {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
}

.pause-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.reset-btn {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
}

.reset-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

.game-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.game-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.game-over, .level-complete {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over-content, .level-complete-content {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 4px solid #333;
    min-width: 300px;
}

.level-complete-content {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.game-over-content h2, .level-complete-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-over-content p, .level-complete-content p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.restart-btn, .next-level-btn {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    color: #333;
    font-size: 1.1rem;
    padding: 15px 30px;
    border: 3px solid #333;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
}

.restart-btn:hover, .next-level-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none !important;
}

/* Start Screen Styles */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #87CEEB 0%, #4169E1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.start-screen-content {
    text-align: center;
    color: white;
    animation: fadeIn 2s ease-in;
}

.lithuania-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.presents-text {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.game-title {
    font-family: 'Courier New', monospace;
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.7);
    letter-spacing: 8px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mario-preview {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

#previewCanvas {
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.start-game-btn {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: bold;
    padding: 15px 40px;
    background: linear-gradient(45deg, #32CD32, #228B22);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.start-game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background: linear-gradient(45deg, #3CB371, #2E8B57);
}

.start-game-btn:active {
    transform: translateY(-1px);
}

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

/* Game Screen Styles */
.game-screen {
    width: 100%;
    height: 100vh;
}

.game-screen.hidden {
    display: none;
}

.start-screen.hidden {
    display: none;
} 