* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'poppins', 'sans-serif';
    
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #55DDB7;
}

button{
    cursor: pointer;
}

button:hover {
    background: #5D96D4;
}

button:active {
    background: #0069D9;
}

/* =============== GAME MENU =============== */
.game__menu {
    position: absolute;
    top: 130px;
    background: white;
    border: 3px #000 solid;
    border-radius: 10px;
    padding: 2rem;
}

.top {
    display: flex;
    gap: 2.5rem;
}

.logo {
    width: 75px;
    height: 75px;
}

.game__control{
    display: flex;
    align-items: center;
}

.wasd {
    width: 200px;
    height: 130px;
}

.control h5 {
    font-size: 32px;
}

.goal {
    display: flex;
    font-size: 28px;
    justify-content: center;
    margin-top: 2.5rem;
}

.name__submit {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: .75rem;
}

.name__input{
    border: 2px #000 solid;
    border-radius: 10px;
    padding: 1rem;
}

.btn__start {
    border: none;
    border-radius: 5px;
    padding: .5rem 2rem;
    background-color:#34baab ;
    color: white;
}
.btn__start:disabled {
    background-color:#ddd ;
    color: white;
}

/* =============== DISPLAY GAME =============== */
.display {
    background-color: #55DDB7;
    width: 1024px;
    margin-bottom: 1rem;
}

.header {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    margin-top: 2rem;
}

.score {
    color: #FFF;
    font-weight: 600;
    font-size: 22px;
    justify-content: left;
}
.score img {
    width: 100px;
    height: auto;
}

.phytons {
    display: flex;
    justify-content: center;
}
.phytons img{
    width: 360px;
    height: auto;
}

.time {
    color: #FFF;
    font-weight: 600;
    font-size: 22px;
    display: flex;
    justify-content: right;
}
.time img{
    width: 100px;
    height: auto;
}

.body {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

canvas {
    background: #000;
}

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

.reload__btn {
    text-decoration: none;
    background: #18775C;
    color: #FFFFFF;
    border: none;
    padding: 1rem 1rem;
    border-radius: 100px;
    font-size: 24px;
    cursor: pointer;
}

/* =============== GAME MENU =============== */
.game__over {
    display: none;
    background: #FFF;
    padding: 4rem;
    text-align: center;
    position: absolute;
}

.game__over div{
    text-align: start;
}

.game__over h1{
    color: red;
    margin-bottom: 2rem;
}

.game__over a{
    color: #FFF;
    background: green;
    padding: 1rem 1.5rem;
    text-decoration: none;
}
