* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    width: 100%;
}
#main {
    height: 100%;
    width: 100%;
    background-color: #cad498;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#game-title {
    font-size: 6vw;
    font-weight: bold;
    color: rgb(0, 0, 0);
    border-radius: 20px;
    text-align: center;
    margin-top: 20px;
}
#pannel {
    overflow: hidden;
    height: 80%;
    width: 90%;
    max-width: 1000px;
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}
#p-top {
    padding: 10px 5%;
    color: white;
    display: flex;
    width: 100%;
    height: auto;
    background-color: #4b0151;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.elem {
    display: flex;
    align-items: center;
    gap: 10px;
}
.elem h2 {
    font-size: 1.2rem;
}
.box {
    color: black;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #d89898;
    width: 60px;
    text-align: center;
}
#p-btm {
    display: flex;
    flex: 1;
    gap: 10px;
    padding: 10px;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}
.bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #51c572;
    cursor: pointer;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
}
.bubble:hover {
    background-color: #16a741;
}
#refresh-btn {
    margin-left: 10px;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #d3185d;
}

#refresh-btn:hover {
    background-color: #ad0b41;
}



@media screen and (max-width: 768px) {
    #game-title {
        font-size: 8vw;
    }

    .box, .elem h2 {
        font-size: 1rem;
    }

    .bubble {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    #refresh-btn, .start {
        font-size: 0.9rem;
        margin-left: 5px;
        padding: 6px 10px;
    }
}

@media screen and (max-width: 480px) {
    #p-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .elem {
        width: 100%;
        justify-content: space-between;
    }
    .bubble {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}
