* {
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    height: 100dvh;
    font-size: 1.2dvw;
    font-family: "Comic Sans MS", display;
}

main {
    background-color: rgb(0, 223, 223);
    transition: background-color 0.5s ease-in;
}

.powerups span {
    margin-top: 20%;
    width: 100%;
    height: 50%;
    text-align: center;
    font-size: 1.3rem;
}

.container {
    display: flex;
    flex-shrink: 1;
    align-items: center;
    font-family: "Comic Sans MS", display;
}

#navbar {
    height: 6vh;
    gap: 1rem;
    padding: 0 1rem 0 0;
    font-size: 1rem;
    justify-content: flex-end;
    border-bottom: black solid 0.05rem;
    transition: background-color 0.5s ease-in;
}

.tools {
    background-color: inherit;
    height: 65%;
    width: 8%;
    font-size: 1rem;
    font-family: "Comic Sans MS", display;
    border-radius: 0.5rem;
    transition: color 0.5s ease-in;
}

#theme {
    width: 10%;
}

.tools:hover{
    border-bottom: black solid 0.1em;
    background-color: rgb(136, 204, 204);
}

#menu {
    width: 8%;
    transition: background-color 0.5s ease-in,
    color 0.5s ease-in;
}

#actionbar {
    height: 5vh;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.5rem 1rem;
}

.actions {
    height: 90%;
    width: 7.5%;
    font-size: 0.9rem;
    font-family: "Comic Sans MS", display;
    border-radius: 0.5rem;
    border: black solid 0.1em;
}

#start {
    font-size: 1.25rem;
    width: 20%;
    height: 100%;
    transition: opacity 0.35s ease-in,
    background-color 0.5s ease-in,
    color 0.5s ease-in;
}

#start:hover {
    background-color: darkslateblue;
}

.tools,
.actions {
    transition: background-color 0.5s ease-out,
    color 0.5s ease-out;
}

.actions:hover {
    color: white;
}

#players {
    justify-content: space-around;
    align-items: flex-end;
    padding-top: 1rem;
    height: 17vh;
}

.user-info {
    display: flex;
    height: 40%;
    width: 33%;
    align-items: flex-end;
    justify-content: flex-start;
    border-radius: 1rem;
    border: black solid 0.2em;
    transition: background-color 0.5s ease-in;
    overflow: hidden;
    word-wrap: break-word;
    white-space: normal;
}

.name {
    width: 100%;
    transition: background-color 0.5s ease-in;
}

.user-info span {
    height: 80%;
    text-align: left;
    line-height: 150%;
    font-size: 1.3rem;
    border-radius: 1rem;
    padding-left: 1rem;
}

.time {
    display: inline;
    background-color: inherit;
    width: 100%;
    transition: background-color 0.5s ease-in;
}

.playerName {
    width: 18%;
    height: 80%;
    border-radius: 0.5rem;
    font-size: 1.15rem;
    padding-left: 2rem;
    font-family: "Comic Sans MS", display;
    border: black solid 0.1em;
    transition: opacity 0.35s ease-in,
    background-color 0.5s ease-in;
}

#game-over {
    background-color: skyblue;
    height: 80%;
    width: 25%;
    text-align: center;
    border-radius: 1rem;
    border: black double 0.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: width 1s ease-out,
    height 1s ease-out,
    background-color 0.5s ease-in;
}

#scoreAndReplay {
    display : flex;
    justify-content: space-between;
}

#game-over div {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.score {
    height: 60%;
    width: 15%;
    border-radius: 0.5rem;
    border: black solid 0.1em;
    opacity: 0.9;
    font-size: 1.5rem;
    padding: 0.5rem 0.5rem 0.4rem 0.5rem;
    transition: background-color 0.5s ease-in;
}

.score.red {
    margin-right: 0.25rem;
}

.score.yellow {
    margin-left: 0.25rem;
}

#game-over span {
    width: 100%;
    height: 70%;
    font-size: 1.5rem;
    padding-top: 0.5rem;
    transition: font-size 1s ease-out;
}

#settings {
    transition: background-color 0.5s ease-in,
    color 0.5s ease-in;
}

#settingsBlock {
    background: linear-gradient(aquamarine, lightseagreen);
    position: absolute;
    border: black solid 0.1em;
    margin-top: 15.8rem;
    width: 20%;
    height: 28%;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    z-index: -1;
    overflow-y: auto;
}

#settingsBlock .check {
    margin-left: 1rem;
    margin-top: 2rem;
}

#settingsBlock .text {
    font-size: 1.2rem;
    font-family: "Comic Sans MS", display;
    margin-left: 1rem;
}

#settingsBlock .volume {
    margin-top: 1rem;
    width: 50%;
}

#replay {
    margin-bottom: 0.2rem;
    background-color: coral;
    font-size: 0;
    height: 3rem;
    width: 30%;
    border: black solid 0.1em;
    font-family: "Comic Sans MS", display;
    margin-top: 0.2rem;
    border-radius: 0.5rem;
    opacity: 0;
    transition: background-color 0.3s ease-in,
    font-size 1s ease-in,
    opacity 0.5s ease-in;
}

#reset {
    margin-top: 1rem;
    margin-left : 12.5%;
    background-color: white;
    width: 75%;
    height: 2rem;
    border-radius: 0.5rem;
    border: black solid 0.1em;
    font-family: "Comic Sans MS", display;
    font-size: 1.2rem;
    transition: background-color 0.35s ease-in,
    color 0.35s ease-in;
}

#reset:hover {
    background-color: darkorange;
    color: white;
}

#replay:hover {
    background-color: ghostwhite;
}

#game {
    justify-content: space-around;
    align-items: center;
    padding-top: 0.3rem;
    height: 60vh;
}

.powerups span {
    margin-top: 5%;
    font-size: 1.5rem;
    width: 100%;
    height: 10%;
}

img {
    border-radius: 0.5rem;
    height: 80%;
    width: 80%;
    margin: auto;
    opacity: 0;
    transition: opacity 0.3s ease-in,
    background-color 0.5s ease-in;
}

#board {
    background-color: cornflowerblue;
    display: grid;
    height: 90%;
    width: 38%;
    grid-template-columns: repeat(7, 1fr);
    border-radius: 1rem;
    border: black solid 0.2em;
    transition: background-color 0.5s ease-in;
}

.columns {
    display: grid;
    padding: 0.2rem 0.2rem 0.2rem 0.2rem;
    grid-template-rows: repeat(6, 1fr);
    grid-row-gap: 0.2rem;
    transition: background-color 0.5s ease-out;
}

.columns:hover {
    background-color: rgb(127, 127, 127, 0.6);
}

.rows {
    background-color: white;
    border: black 0.2rem solid;
    border-radius : 50%;
    transition: background-color 0.2s ease-in,
    border 0.2s ease-in;
}

.powerups {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 60%;
    width: 20%;
    border-radius: 1rem;
    border: black solid 0.2em;
    transition: background-color 0.5s ease-in;
}

.red {
    background-color: rgb(234, 47, 20);
}

.yellow {
    background-color: rgb(252, 242, 89);
}

#warning {
    display: none;
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background:gray;
    font-size: 5rem;
    z-index: 1000;
    text-align:center;
    padding-top:50vh;
}

header,
footer {
    background-color: rgb(75, 163, 163);
    transition: background-color 0.5s ease-in;
}

footer {
    height: 6.6vh;
    border-top: black solid 0.05em;
    overflow: hidden;
}