* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    background: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

#gameCanvas {
    border-bottom: 2px solid #333;
    /*background: #f1f1f1;*/
    display: block;
    margin-top: 20px;
}

.error-info {
    text-align: center;
}

.error-info h1 {
    font-size: 96px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.error-info p {
    font-size: 18px;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

.instructions {
    font-size: 13px;
    margin-top: 10px;
    color: #666;
}

.game-info {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #333;
    font-size: 14px;
    z-index: 10;
    font-weight: bold;
}

.score {
    margin-bottom: 5px;
}

.game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: #333;
    padding: 40px;
    border-radius: 5px;
    text-align: center;
    z-index: 100;
    display: none;
    min-width: 300px;
    border: 2px solid #333;
}

.game-over-screen h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
}

.game-over-screen p {
    font-size: 18px;
    margin: 10px 0;
    color: #666;
}

.game-over-screen button {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 14px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
    margin-left: 10px;
}

.game-over-screen button:hover {
    background: #666;
}

.game-over-screen button:first-of-type {
    margin-left: 0;
}

.home-button {
    position: absolute;
    top: 20px;
    left: 30px;
    padding: 8px 15px;
    background: transparent;
    color: #333;
    border: 2px solid #333;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    z-index: 10;
    font-size: 13px;
    font-weight: bold;
}

.home-button:hover {
    background: #333;
    color: white;
}

.website-link {
    position: absolute;
    bottom: 20px;
    left: 30px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    z-index: 10;
    transition: color 0.3s;
}

.website-link:hover {
    color: #666;
    text-decoration: underline;
}