* {
    box-sizing: border-box;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(teal, tomato);
    font-family: "Condiment", cursive;
}

.tetris_wrapper {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    min-width: 320px;
    width: 100%;
    margin: 20px auto;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
    border-radius: 10px;
    box-shadow: inset 0 0 10px #000, 5px 5px 15px #000, 0 0 30px #000;
    padding: 30px 0 60px;
    background-color: #ddd;
    position: relative;
}

.display_wrapper_line {
    padding: 12px;
    border: 3px solid #fff;
    border-radius: 15px;
}

.display_wrapper {
    display: flex;
    box-shadow: inset 3px 3px 10px #000, 2px 2px 4px #000;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 10px;
    background-color: #d1d0d0;
}

.score_display_inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 65px;
    margin-left: 10px;
}

.score_display {
    order: 2;
}

.score_display,
.best_score_display {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: left;
    font-size: 18px;
    margin: 10px 0;
    text-shadow: 2px 2px 2px #000;
    color: #fff;
    font-weight: 700;
}

.score,
.best_score {
    text-align: right;
    align-self: flex-end;
    margin-right: 10px;
}

.game_wrapper {
    width: 200px;
    height: 400px;
    border: 2px solid #000;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.block {
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    position: absolute;
}

.btn_wrapper {
    display: flex;
    flex-direction: column;
    margin: 40px 5px 10px;
    gap: 40px;
    max-width: 320px;
    width: 100%;
}

.btn_nav_inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.btn {
    background-color: #f5e049;
    box-shadow: 3px 3px 3px #000, inset 0 0 2px #000;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.nav_btn {
    width: 30px;
    height: 30px;
    position: relative;
    font-weight: 700;
}

.nav_btn:after {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
    text-shadow: 2px 2px 4px #000;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.pause_btn:after {
    content: "Pause";
}

.sound_btn:after {
    content: "Sound";
}

.on_btn:after {
    content: "on/off";
}

.play_btn:after {
    content: "Play Again";
}

.btn_ctrl_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px;
}

.btn_arrows_inner {
    display: grid;
    grid-template-columns: repeat(3, 50px);
    grid-template-rows: repeat(3, 50px);
}

.btn_center_bg {
    background-image: url(images/arrow-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 30px;
    height: 30px;
    margin: 10px;

    grid-column: 2/3;
    grid-row: 2/3;
}

.btn_arrow {
    width: 50px;
    height: 50px;
}

.btn_left {
    grid-column: 1/2;
    grid-row: 2/3;
}

.btn_top {
    grid-column: 2/3;
    grid-row: 1/2;
}

.btn_right {
    grid-column: 3/4;
    grid-row: 2/3;
}

.btn_botom {
    grid-column: 2/3;
    grid-row: 3/4;
}

.btn_rotate {
    width: 80px;
    height: 80px;
    position: relative;
}

.btn_rotate:after {
    content: "↻";
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: 700;
}

.btn:hover {
    background-color: #d7c644;
}

.btn:active {
    transition: 0.1s;
    background-color: #b5a630;
    box-shadow: 1px 1px 2px #000, inset 0 0 2px #000;
}

.author {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 0 5px #fff;
    background: linear-gradient(teal, tomato);
    background-clip: text;
    color: transparent;
}