* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

html,
body {
    height: 100%;
    width: 100%;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-image: url("bubblebackground.jpg");
    background-size: cover;
    position: relative;
}

#startGame {
    position: absolute;
    padding: 10px 20px;
    background-color: rgb(44, 135, 209);
    border: 1px solid rgb(255, 255, 255);
    border-radius: 4px;
    font-size: 18px;
    color: #fff;
    bottom: 30%;
    left: 50%;
    translate: -50%;
}

#startGame:hover {
    scale: 1.10;
}

.startmenu ul {
    position: absolute;
    bottom: 15%;
    left: 50%;
    translate: -50%;
}

.HTP-H1 {
    color: #fff;
}

.HTP {
    color: #fff;

}

.panel {
    width: 80%;
    height: 80%;
    background-color: aliceblue;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 4px 6px 16px black;
}

.paneltop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100px;
    background-color: #6F9CEB;
    padding: 0 25%;

}

.element {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    font-size: 20px;
}

.box {
    width: 100%;
    padding: 8px 16px;
    background-color: #fff;
    border-radius: 4px;
    font-size: 22px;
    font-weight: 600;
    color: #306BAC;

}

.panelbottom {

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    height: calc(100% - 100px);
    padding-bottom: 20px;
}

.bubble {
    color: white;
    font-size: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    background-color: #306BAC;
    border-radius: 50%;
}

.bubble:hover {
    background-color: #5a66ac;
}

#playAgain {
    position: absolute;
    padding: 10px 20px;
    background-color: rgb(44, 135, 209);
    border: 1px solid rgb(255, 255, 255);
    border-radius: 4px;
    font-size: 18px;
    color: #fff;
    bottom: 30%;
    left: 50%;
    translate: -50%;
}

#playAgain:hover {
    scale: 1.10;
}

#playAgain a {
    color: white;
    text-decoration: none;
}

.scoreCard {
    position: absolute;
    color: #fff;
    bottom: 10%;
    left: 50%;
    translate: -50%;
}

@media (max-width: 768px) {
    .paneltop {
        height: auto;
        /* Adjust height for smaller screens */
        padding: 10px;
        /* Reduced padding */
        flex-direction: column;
        /* Stack elements vertically */
        gap: 10px;
        /* Space between elements */
    }

    .element {
        font-size: 16px;
        /* Smaller font size */
        gap: 10px;
        /* Reduced gap */
    }

    .box {
        font-size: 18px;
        /* Smaller font size */
        padding: 6px 12px;
        /* Reduced padding */
    }
}

/* Media query for screens smaller than 480px */
@media (max-width: 480px) {
    .paneltop {
        padding: 5px;
        /* Further reduced padding */
    }

    .element {
        font-size: 14px;
        /* Even smaller font size */
    }

    .startmenu ul {
        bottom: 5%;
        left: 50%;
        translate: -50%;
    }

    .box {
        font-size: 16px;
        /* Even smaller font size */
        padding: 4px 8px;
        /* Even smaller padding */
    }
}

@media only screen and (max-width: 768px) {

    /* For tablets and smaller devices */
    .panel {
        width: 90%;
        height: 90%;
    }

    .bubble {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .paneltop {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .element {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .box {
        font-size: 18px;
    }

    #playAgain {
        font-size: 16px;
        padding: 8px 16px;
    }
}

@media only screen and (max-width: 480px) {

    /* For mobile phones */
    .panel {
        width: 100%;
        height: 100%;
    }

    .bubble {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .paneltop {
        flex-direction: column;
        height: auto;
        padding: 5px;
    }

    .element {
        font-size: 16px;
    }

    .box {
        font-size: 16px;
    }

    #playAgain {
        font-size: 14px;
        padding: 6px 12px;
    }
}