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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 20px;
}

.main-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.game-container {
    position: relative;
    width: 375px;
    height: 667px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.game-header {
    display: block;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

canvas {
    background-color: #c5eff7;
    display: block;
}

.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    display: none;
}

.game-over h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.game-over p {
    font-size: 24px;
    margin-bottom: 30px;
}

#restartButton {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#restartButton:hover {
    background-color: #45a049;
}

@media (max-width: 480px) {
    .game-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}

.chart-container {
    width: 450px;
    height: 667px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    padding: 15px;
}

#scoreChart {
    width: 100% !important;
    height: 100% !important;
} 