@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --black-color: #191717;
    --white-color: #F1EFEF;
    --gray-color: #7D7C7C;
}

::selection {
    background-color: rgba(63, 194, 255, 0.6);
    color: var(--white-color);
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background-color: var(--black-color);
    position: relative;
}

.header {
    color: var(--white-color);
    font-size: 70px;
    font-weight: 500;
    position: absolute;
    top: 20px;
    text-align: center;
    line-height: 1.2;
}

.start-btn {
    padding: 10px 68px;
    color: var(--white-color);
    background-color: var(--gray-color);
    border: 5px solid #888888;
    font-size: 55px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s ease-out;
}

.start-btn:hover {
    transform: scale(0.94);
}

.game {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
}

.game-word {
    background-color: #0f0f0f;
    height: 400px;
    width: 760px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: var(--white-color);
    border: 3px solid var(--gray-color);
    box-shadow: 0 0 20px black;
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgb(255, 255, 255, 0.4);
    text-align: center;
    line-height: 1.2;
}

.game-input {
    height: 70px;
    width: 600px;
    border: none;
    border-radius: 16px;
    padding: 15px;
    font-size: 28px;
    color: var(--black-color);
    background-color: var(--white-color);
    margin-bottom: 20px;
}

.game-input::placeholder {
    color: var(--gray-color);
}

.game-input:focus {
    outline: 2px solid var(--gray-color);
}

.game-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 12px;
}

.game-btn {
    padding: 10px 36px;
    font-size: 30px;
    border: none;
    border-radius: 10px;
    color: var(--white-color);
    background-color: var(--gray-color);
    cursor: pointer;
    transition: 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-btn:hover {
    transform: scale(0.95);
}


.correct {
    color: #23af23;
}

.wrong {
    color: #ee2b2b;
}

.display {
    display: none;
}

@media only screen and (max-width: 780px){
    .game-word {width: 500px; height: 300px; font-size: 40px;}
    .header {font-size: 55px;}
    .game-input {width: 450px; font-size: 20px; height: 55px;}
    .game-btn {font-size: 22px;}
    .start-btn {font-size: 45px;}
}

@media only screen and (max-width: 530px){
    .game-word {width: 400px; font-size: 35px; height: 250px; margin-bottom: 25px;}
    .header {font-size: 45px;}
    .game-input {width: 350px; height: 50px;}
    .game-btn {font-size: 20px;}
}

@media only screen and (max-width: 420px){
    .game-word {width: 350px; font-size: 30px; height: 220px;}
    .header {font-size: 38px;}
    .game-input {width: 330px; height: 50px;}
    .game-btn {font-size: 18px;}
    .start-btn {font-size: 40px;}
}

@media only screen and (max-height: 700px){
    .header {font-size: 38px;}
    .game {margin-top: 40px;}
}