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

body, html {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #87ceeb;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
    background-image: url(../Assets/start.jpeg);
}

.score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: #fff;
}

#startButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 30px;
    font-family: 'Harry P', serif;
    background-color: #7A421A;
    color: #F2F2F2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
}

#startButton:hover {
    background-color: #a35b3b;
}

#rulesButton {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 30px;
    font-family: 'Harry P', serif;
    background-color: #7A421A;
    color: #F2F2F2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
}

#rulesButton:hover {
    background-color: #a35b3b;
}

.rules-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 20;
}

.rules-content {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
}

#closeRules {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #FF6347;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#gameTitle {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 60px;
    font-family: 'Harry P', serif;
    background-color: #9C7D3D;
    color: #F2F2F2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
}

.background body, .background .game-container, .background canvas {
    background-color: #333;
    background-image: url(../Assets/bg.jpeg);
    transition: background 0.5s ease;
}

.new-background body, .new-background .game-container, .new-background canvas {
    background-color: #333;
    background-image: url(../Assets/Forest.jpg);
    transition: background 0.5s ease;
}

.night-background body, .night-background .game-container, .night-background canvas {
    background-color: #333;
    background-image: url(../Assets/Night.jpg);
    transition: background 0.5s ease;
}

body, .game-container, canvas {
    transition: background 0.5s ease;
}

.question-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 20;
}

.question-overlay button {
    margin: 10px;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
}
