* {
    margin: 0;
    padding: 0;
}



body {
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CSS for homepage */
.container {
    display: flex;
    text-align: center;
    flex-direction: column;
}

.button {
    display: flex;
    justify-content: center;
}

.button-shell {
    height: 10rem;
    width: 10rem;
    margin: 0 0 2rem 2rem;
}

.btn {
    height: 10rem;
    width: 10rem;
    border-radius: 5rem;
    box-shadow: 0 0 1rem #00ffd9;
    background-color: #0e396d;
    border: 2px solid #9ef01a;
    cursor: pointer;
    color: #6fffe9;
    font: 1em sans-serif;
    transition: 0.5s ease-in-out;
}

.btn:hover {
    box-shadow: 0 0 2rem #00ffd9;
    background-color: #1f3856;
    height: 10rem;
    width: 9rem;
}

h1 {
    color: aliceblue;
    margin: 3rem;
}

/* Css for the form of creationg and joining */

.label {
    color: aliceblue;
    margin-bottom: 1rem;
    font-size: x-large;

}

.input {
    margin-bottom: 1rem;
    height: 2rem;
    background-color: black;
    border: 2px solid #9ef01a;
    box-shadow: 0 0 1rem #9ef01a;
    border-radius: 2rem;
    color: aliceblue;
    padding: 1rem;

}

.room {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 15rem;
    margin-top: 5rem;
}

.submit {
    width: 5rem;
    height: 2rem;
    border-radius: 5rem;
    background-color: #0e396d;
    border: 1px solid #9ef01a;
    cursor: pointer;
    color: #6fffe9;
    transition: 0.5s ease-in-out;

}

.btn-fix {
    width: 5rem;
    height: 2rem;
}

.submit:hover {
    background-color: #41638e;
    border: 1px solid #f01a5a;
}

/* CSS for the Room creator dashboard */


.dashboard {
    color: aliceblue;
    display: flex;
    justify-content: center;
    height: 20rem;
    width: 100%;
    gap: 1rem;
}

.room-creator-dashboard {
    width: 100%;
    text-align: center;
}

.center {
    text-align: center;
}

.head {
    color: #9ef01a;
}

.host {
    font-size: 2rem;
    color: #00ffa2;
    margin: 1.5rem;
}

table {
    border-collapse: collapse;
    width: 100%;
}

tr {
    border-bottom: 1px solid white;
}

.leaderboard {
    border: 1px solid white;
    padding: 0.5rem;
    border-radius: 1rem;
    width: 80%;
    overflow-y: auto;
}

.reset {
    width: 7rem;
    height: 3rem;
    margin-top: 2rem;
    border-radius: 5rem;
    background-color: #0e396d;
    border: 1px solid #9ef01a;
    cursor: pointer;
    color: #6fffe9;
    transition: 0.5s ease-in-out;


}
.reset:hover{
    background-color: #41638e;
    border: 1px solid #f01a5a;
}

.btns{
    display: flex;
    justify-content: center;
    gap: 1rem;
}




.memberlist {
    border: 1px solid white;
    text-align: center;
    padding: 0.5rem;
    border-radius: 1rem;
    overflow-y: auto;
    width: 20%;
}




.flex-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 50px auto;
    gap: 20px;
}

/* Styling the container div for the buzzer */
.buzzer-container {
    width: 80vw;
    height: 80vw;
    max-width: 400px;
    max-height: 400px;
    background-color: #111;
    border: 3px solid #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 20px;
}

/* Styling the buzzer button */
.buzzer-button {
    width: 50vw;
    height: 50vw;
    max-width: 200px;
    max-height: 200px;
    background-color: red;
    border: 5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.7), 0 0 50px rgba(255, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.buzzer-button:before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    background-color: rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

.buzzer-button-inner {
    width: 60%;
    height: 60%;
    background-color: #ff4d4d;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.buzzer-text {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
}

.buzzer-button:active {
    background-color: green;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.7), 0 0 50px rgba(0, 255, 0, 0.5);
}

.buzzer-button:active:before {
    background-color: rgba(0, 255, 0, 0.3);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }

    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }

    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}

/* Leaderboard styling */
.join-leaderboard {
    border: 2px solid #0f0;
    width: 300px;
    border-radius: 10px;
    background-color: #111;
    color: #0f0;
    font-family: Arial, sans-serif;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    overflow-y: auto;
}

.join-leaderboard h2 {
    background-color: #222;
    padding: 10px;
    margin: 0;
    border-bottom: 2px solid #0f0;
}

.join-leaderboard table {
    width: 100%;
    border-collapse: collapse;
}

.join-leaderboard th,
.join-leaderboard td {
    padding: 10px;
    border-bottom: 1px solid #0f0;
}

.join-leaderboard th {
    color: lime;
}

.join-leaderboard td {
    color: white;
}

/* Make everything responsive */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        align-items: center;
    }

    .buzzer-container {
        width: 90vw;
        height: 90vw;
    }

    .buzzer-button {
        width: 60vw;
        height: 60vw;
    }

    .join-leaderboard {
        width: 80vw;
        margin-top: 20px;
    }
}



















.none {
    display: none;
}