button {
    color: #fff;
    padding: 10px 60px;
    font-size: 18px;
    background-color: #636e72;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-image: url(Dot_Pattern.gif);
    color: #dfe6e9;
    display: center;
    font-family: "DM Sans", sans-serif;
    flex-direction: column;
    overflow-x: hidden;
}

img {
    margin-right: 5px;
    width: 40px;
}

.others{
    align-items: center;
    color: aqua;
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: #ff3d1b;
    size: 30px;
}
a:hover {
    border-bottom: 1px solid #ff3d1b;
}

p {
    margin: 6px 0;
}

#pongCanvas {
    display: none;
}

#homeScreen {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#gameOverScreen {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 20vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#startButton {
    padding: 10px 60px;
    font-size: 18px;
    background: #636e72;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin: 10px;
    transition: background-color 0.3s;
}

#replayButton {
    padding: 11px 60px;
    font-size: 18px;
    background-color: #636e72;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin: 10px;
    margin-top: 30px;
    transition: background-color 0.3s;
}

#homeButton {
    padding: 10px 60px;
    font-size: 18px;
    background-color: #636e72;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin: 10px;
    margin-top: 20px;
    transition: background-color 0.3s
}

#closeSpeed {
    background: #b2bec3;
    color: #636e72;
    margin: 10px 0;
}

#startButton:hover, #replayButton:hover {
    background-color: #b2bec3;
}

#homeButton:hover {
    background-color: #b2bec3;
}

#loseMessage {
    font-size: 24px;
    margin-bottom: 20px;
}

#scoreMessage {
    font-size: 20px;
    margin-top: 10px;
}

.controls-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #636e72;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    z-index: 999;
}

.controls-container h3 {
    margin-bottom: 10px;
}

.controls-container label {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.controls-container input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.speed-controls-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #636e72;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    margin-bottom: 20px;
    z-index: 999;
}

.speed-controls-container h3 {
    margin-bottom: 10px;
}

.speed-controls-container label {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.speed-controls-container input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Additional styling for the miss message */
#missMessage {
    display: none;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: green;
    display: none;
    z-index: 1;
}

/* Mobile landscape (up to 920px wide) */
@media (max-width: 920px) and (orientation: landscape) {

    #startButton,
    #replayButton,
    #homeButton {
        padding: 7px 35px;
        font-size: 15px;
    }

    #loseMessage {
        font-size: 18px;
    }

    #scoreMessage {
        font-size: 14px;
    }

    /* Hide controls and reposition speed controls */
    .controls-container {
        display: none;
    }

    .speed-controls-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        top: auto;
        left: auto;
    }
}
@media (max-width: 480px) and (orientation: portrait) {
    .controls-container {
        display: none;
    }
}