* {
    font-family: sans-serif !important;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-color: #f4f4f4;
    height: 100svh;
    color: #333;
}

.game_container {
    /* width: 100%; */
    /* height: 100%; */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 20px;
}

/*Шапка*/
.game_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* font-size: 50px; */
}

.info_board {
    display: flex;
    gap: 20px;
    /*font-size: 14px;*/
    /* padding-bottom: 20px; */
    font-size: 30px;
    color: #333;
}

#leaderboard-btn {
    font-size: 16px;
    padding: 8px 16px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#leaderboard-btn:hover {
    background-color: #0056b3;
}

#language-selector {
    font-size: 14px;
    border: 2px solid #007BFF;
    border-radius: 6px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

#language-selector:hover {
    background-color: #f0f0f0;
}

/*Игровая зона*/
.screen_container {
    border: 2px solid black;
    border-radius: 10px;
    width: 60vmin;
    aspect-ratio: 1/1;
    /* margin-bottom: 15px; */
    min-width: 220px;
}

.game_board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 15px;
    justify-items: center;
    height: 100%;
    align-items: center;
    background-color: lightblue;
    border-radius: inherit;
    justify-content: center;
}

.puzzle_item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20%;
    background-color: #323c6b30;
    border: 2px solid #63628d;
    width: 100%;
    height: 100%;
    font-size: clamp(15px, 6vmin, 45px);
    cursor: pointer;
    color: #333;
    align-content: center;
    box-sizing: content-box;
    transition: transform 0.15s ease;
    user-select: none;
}

.puzzle_item_empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: darkgrey;
    width: 60px;
    height: 60px;
    font-size: 18px;
}

/*Кнопки*/
.game_controls {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
}

.game_controls button {
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

#start_restart_btn {
    background-color: #4CAF50;
    color: white;
}

#start_restart_btn:hover {
    background-color: #45a049;
}

#reset_btn {
    background-color: #f44336;
    color: white;
}

#reset_btn:hover {
    background-color: #d32f2f;
}

[data-number="16"] {
    opacity: 0;
    cursor: unset;
}

.start_screen {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

.top15_screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
}

.end_screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
    background-color: #f4f4f4;
}

h1 {
    font-size: 25px;
}

.score {
    margin-top: 10px;
    font-size: 20px;
}

.end_screen > button {
    padding: 8px 0;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #007BFF;
    border-radius: 6px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    width: 120px;
}

.end_screen > input {
    padding: 8px 0;
    text-align: center;
}