
* {
    /* outline: 1px solid red; */
    font-family: 'Courier New', Courier, monospace;
    user-select: none;
}

body {
    /* position: absolute;
    width: 100%;
    height: 100%; */
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    /* background */
    background-color: #fff;
}

/* desktop(1280px <= width), 
tablet(768px <= width < 1280px)
mobile(320px <= width < 768px) */


.field {
    /* background-color: #fff; */
    width: 100vh;
    height: 100vh;
    border: 5px solid black;
    /* border-radius: 10px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
}

.square {
    box-sizing: border-box;
    background-color: #ccc;
    border: 1px solid black;
    border-radius: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 50px;
    user-select: none;
}

.square:hover {
    background-color: rgb(255, 167, 152);
    /* font-size: 75px; */
    font-weight: 600;
    /* transition: font-size;
    transition-duration: 0.2s; */
}

.square:active {
    background-color: tomato;
    font-weight: 600;
}

.correct {
    color: green;
    text-shadow: #FFF 0 0 15px;
    font-weight: bold;
}

.s3x3 {
    width: calc(100% / 3);
    height: calc(100% / 3);
    font-size: calc(1000% / 3);
}

.s4x4 {
    width: calc(100% / 4);
    height: calc(100% / 4);
    font-size: calc(1000% / 4);
}

.s5x5 {
    width: calc(100% / 5);
    height: calc(100% / 5);
    font-size: calc(1000% / 5);
}

.s6x6 {
    width: calc(100% / 6);
    height: calc(100% / 6);
    font-size: calc(1000% / 6);
}

.s7x7 {
    width: calc(100% / 7);
    height: calc(100% / 7);
    font-size: calc(1000% / 7);
}

.s8x8 {
    width: calc(100% / 8);
    height: calc(100% / 8);
    font-size: calc(1000% / 8);
}

/* .row1 {
    background-color: red;
}

.row2 {
    background-color: yellow;
}

.row3 {
    background-color: blue;
}

.row4 {
    background-color: green;
}

.row5 {
    background-color: orange;
}

.row6 {
    background-color: violet;
}

.row7 {
    background-color: red;
}

.row8 {
    background-color: orange;
} */

#empty {
    font-size: 0;
    opacity: 0;
    /* border: 1px solid black; */
}

.empty:hover {
    background-color: white;
}

.menu {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}


.menu-item {
    font-size: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.menu-item:hover {
    font-weight: 600;
    
}

.menu-item:first-of-type {
    flex-basis: 100%;
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.menu-item:first-of-type:hover {
    filter: drop-shadow(0 0 5px white);
    text-decoration: underline;
}

.off {
    text-decoration: line-through;
    color: gray;
}

.info {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.info-item {
    margin: 0px;
    font-size: 30px;
    font-weight: bold;
}

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

.sizes-item {
    margin-right: 20px;
    font-size: 20px;
    font-weight: 600;
}

.sizes-item:hover {
    color: tomato;
    cursor: pointer;
}

.sizes-item.active {
    font-weight: 900;
    text-decoration: underline;
    color: tomato;
}

.moveLeft {
    transform: translateX(-100%);
    transition: transform;
    transition-duration: .2s;
}

.moveRight {
    transform: translateX(100%);
    transition: transform;
    transition-duration: .2s;
}

.moveUp {
    transform: translateY(-100%);
    transition: transform;
    transition-duration: .2s;
}

.moveDown {
    transform: translateY(100%);
    transition: transform;
    transition-duration: .2s;
}

/* results */
.result-field {
    width: 100%;
}
.res-header {
    width: 100%;
}
.res-header-list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 10px;
}
.res-header-item {
    width: 25%;
    text-align: center;
}
.res-header-item:nth-child(1) {
    width: 10%;
}
.res-header-item:nth-child(2) {
    width: 50%;
}
.result-div {
    width: 100%;
}
.result{
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 10px;
}
.result-item{
    width: 25%;
    text-align: center;
}
.result-item:nth-child(1) {
    width: 10%;
}
.result-item:nth-child(2) {
    width: 50%;
}
@media (min-width: 1280px) {
    body, .field, #empty {
        background-color: lightcyan;
        transition: background-color;
        transition-duration: 1s;
    }
    .wrapper {
        max-width: 600px;
        max-height: 600px;
        transition: all;
        transition-duration: 0.5s;
    }
}
@media (min-width: 768px) and (max-width: 1279px) {
    body, .field, #empty {
        background-color: lightgoldenrodyellow;
        transition: background-color;
        transition-duration: 1s;
    }
    .wrapper {
        max-width: 500px;
        max-height: 500px;
        transition: all;
        transition-duration: 0.5s;
    }
}
@media (min-width: 320px) and (max-width: 767px) {
    body, .field, #empty {
        background-color: lightpink;
        transition: background-color;
        transition-duration: 1s;
    }
    .field {
        background-color: lightpink;
        min-height: 300px;
    }
    #empty {
        background-color: lightpink;
    }
    .wrapper {
        max-width: 300px;
        max-height: 300px;
        transition: all;
        transition-duration: 0.5s;
    }
    .menu {
        /* flex-direction: column; */
        justify-content: center;
        align-items: center;
    }
    .menu-item {
        margin: 10px;
    }
    .menu-item:first-of-type {
        text-align: center;
        vertical-align: middle;
        margin-bottom: 10px;
    }
    .menu-item:nth-child(2) {
        /* color: red; */
        flex-basis: 100%;
        text-align: center;
    }
    .menu-item.active{
        font-weight: 600;
        text-decoration: underline;
    }
    .info-item {
        font-size: 20px;
    }
    .sizes {
        flex-wrap: wrap;
        justify-content: space-around;
        flex-shrink: 1;
    }
    .sizes-item {
        margin: 20px;
        margin-bottom: 0;
        font-size: 30px;
    }
    /* .sizes-item:nth-child(3n) {
        margin-right: 100px;
    } */
    .result {
        margin-bottom: 5px;
        margin-top: 5px;
    }
}
@media (max-width: 319px) {
    * {
        background-color: crimson;
        transition: all;
        transition-duration: 1s;
    }
    body {
        display: none;
    }
}
