* {
    font-family: 'Fuzzy Bubbles';
}

html, body {
    min-height: 100%;
}

body.day-theme {
    background: linear-gradient(#564b88, #eee);
    color: #000;
}

body.night-theme {
    background: linear-gradient(#564b88, #2e1cbb);
    color: #fff;
}

span {
    font-size: 25px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main .container {
    flex-direction: row;
    gap: 75px;
    justify-content: center;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.buttons {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
}

.icon {
    font-size: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    position: absolute;
    right: 30px;
    cursor: pointer;

    padding: 10px;
}

.modal {
    position: fixed;
    z-index: 1000;
    width: 50%;
    height: 50%;

    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 4px 4px 8px 6px rgba(34, 60, 80, 0.2);
}

.modal.day-theme {
    background: linear-gradient(#564b88, #eee);
}

.modal.night-theme {
    background: linear-gradient(#2c1c77, #7c609c);
}

.modal.winner {
    width: 400px;
    height: 250px;
}

.modal.winner.day-theme {
    background: linear-gradient(#277541, #eee);
}

.modal.winner.night-theme {
    background: linear-gradient(#2d6840, #94d8a5);
}

.modal.score {
    justify-content: flex-start;
    padding-top: 20px;
}

.score span {
    margin-top: 30px;
    margin-left: 50px;
    text-align: left;
    width: 100%;
}

.winner-text {
    max-width: 350px;
    text-align: center;
}

.nonogram {
    display: flex;
    flex-direction: column;
    align-items: center;

    cursor: pointer;
    transition: transform 0.3s ease;
}

.nonogram:hover {
    transform: scale(1.3);
}

.close-icon {
    position: fixed;
    right: 15px;
    top: 15px;
    font-size: 30px;

    cursor: pointer;
}

.game-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.level-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nonograms-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 200px;
    gap: 20px;
}

.nonograms-container img {
    height: 100px;
    width: 100px;
}

tr {
    min-height: 30px;
}

td {
    text-align: center;
    border: 1px solid #3d3b3b;
    min-width: 30px;
    min-height: 30px;
}

td:nth-child(n+6):nth-child(5n+6).day-theme {
    border-right: 2px solid #000;
}

td:nth-child(n+6):nth-child(5n+6).night-theme {
    border-right: 2px solid #fff;
}

.clues-left.day-theme {
    border-right: 2px solid #000;
}

.clues-left.night-theme {
    border-right: 2px solid #fff;
}

tr:nth-child(n+6):nth-child(5n+6).day-theme {
    border-bottom: 2px solid #000; 
}

tr:nth-child(n+6):nth-child(5n+6).night-theme {
    border-bottom: 2px solid #fff; 
}

.clues-up.day-theme {
    border-bottom: 2px solid #000; 
}

.clues-up.night-theme {
    border-bottom: 2px solid #fff; 
}

.nonogram-elem {
    height: 30px;
    width: 30px;

    cursor: pointer;
}

td.day-theme {
    border-color:#3d3d3d;
}

td.night-theme {
    border-color: #bedbda;
}

.winner-field {
   background-color: rgb(18, 126, 18);
}

.nonogram-elem.clicked-field {
    background-color: rgb(37, 36, 36);
}

.nonogram-elem.clicked-right-field {
    display: flex;
    justify-content: center;
    align-items: center;
}