:root {
    --background-gradient: linear-gradient(0.25turn, #ffffffa1 0%, #ffffffe0  35%, #ffffffe0  65%, #ffffffa1 100%);
}

body {
    background: url('./background.png') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.modal {
    display: flex;
    flex-direction: column;
    /* align-items: stretch; */
    align-items: center;
    justify-content: center;
    height: fit-content;
    /* gap: 36px; */
    padding: 24px;
    border-radius: 40px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    box-shadow: 0 0 16px 0 rgba(0,0,0,0);
    transition: 0.4s ease height, 0.4s ease padding, 0.2s border-radius, 0.6s ease box-shadow;
}

.modal:hover {
    box-shadow: 0 0 16px 0 rgba(0,0,0,0.3);
}

/* .box-shadow {
    box-shadow: 20px 20px 25px -10px rgba(34, 34, 34, 0.685);
} */

#sudoku-grid {
    width: 450px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 20px 0 20px;
}

#sudoku-grid-img {
    height: 450px;
    width: 450px;
    transform: translateY(-450px) translateX(-225px);
    position: absolute;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 10px;
}

.buttons {
    display: flex;
    gap: 10px;
}

.sudoku-row {
    width: 450px;
    height: auto;
    display: flex;
    flex-direction: row;
}

.cell-active {
    cursor: pointer;
}

.sudoku-square {
    width: 50px;
    height: 50px;
    box-shadow: rgb(159, 220, 255, 0) -0px -0px 0px 0px inset, rgb(159, 220, 255, 0) 0px 0px 0px 0px inset;
    display: flex;
    flex-direction: column;
    background-color: rgba(159, 220, 255, 0);
    transition-duration: 0.3s, 0.15s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-property: background-color, box-shadow;
    /* border: 0.5px solid black; */
    /* box-shadow: rgb(170, 170, 170) -0.5px -0.5px 0.25px 0.25px inset, rgb(170, 170, 170) 0.5px 0.5px 0.25px 0.25px inset; */
}

.sudoku-square.selected {
    box-shadow: rgb(159, 220, 255) -2px -2px 5px 1px inset, rgb(159, 220, 255) 2px 2px 5px 1px inset;
}

.sudoku-value {
    font-size: 30px;
    font-weight: 300;
    line-height: 50px;
    margin: 0px;
    font-family: 'Times New Roman', Times, serif;
    cursor: default;
}

.sudoku-square-input {
    /* display: flex; */
    width: 16px;
    height: 40px;
    padding: 7.8px 0px 7.8px 16px;
    /* margin-top: 6.8px;
    margin-left: 16px; */
    font-size: 30px;
    font-weight: 300;
    font-family: 'Times New Roman', Times, serif;
    border: none;
    color: rgb(0, 81, 255);
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    /* display: none; */
}

input[type=text]:focus {
    outline: none;
    caret-color: transparent;
    /* oranges! yey */
}

#game-container {
    display: flex;
    flex-direction: row;
}

#sudoku-numbers {
    display: flex;
    flex-direction: column;
    width: 50px;
    height: 450px;
    /* box-shadow: rgb(2, 2, 2) -1px -1px 0.5px 0.5px inset, rgb(0, 0, 0) 1px 1px 0.5px 0.5px inset; */
    /* outline: 0.75px solid black; */
    border-radius: 10px;
    overflow: hidden;
    /* background-color: #ffffff; */
}

#edit-button {
    background-color: #ffffff00;
    height: 50px;
    width: 50px;
    /* border: 1px solid black; */
    border-radius: 10px;
    cursor: pointer;
    /* box-shadow: rgba(170, 170, 170, 0) -2px -2px 5px 1px inset, rgba(170, 170, 170, 0) 2px 2px 5px 1px inset; */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    /* outline: 0.75px solid black; */
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-property: background-color, box-shadow;
}

#edit-button:hover {
    background-color: #f0f0f0;
}

#edit-svg {
    height: 25px;
    width: 25px;
    margin-top: 12.5px;
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-property: width, height, margin-top;
    /* fill: rgb(0, 0, 0); */
}

.edit-svg-path {
    fill: #ffffff;
    stroke: #231f20;
    stroke-miterlimit: 10;
    stroke-width: 2.5px;
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-property: fill, stroke;
}

.sudoku-numbers {
    width: 45px;
    height: 45px;
    margin: 2.5px;
    /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%); */
    background-color: rgba(255, 255, 255, 0.4);
    /* box-shadow: rgb(170, 170, 170, 0.5) -0.5px -0.5px 0.25px 0.25px inset, rgb(170, 170, 170, 0.5) 0.5px 0.5px 0.25px 0.25px inset; */
    /* outline: 1px solid rgba(170, 170, 170, 0.5); */
    transition: 0.2s;
    border-radius: 10px;
}

.sudoku-numbers:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.sudoku-numbers .sudoku-value {
    line-height: 45px;
}

.sudoku-notes-container {
    /* display: none; */
    flex-direction: column;
    width: 48px;
    height: 48px;
    margin: 1px;
    transform: translateY(-50px);
}

.sudoku-notes-row {
    display: flex;
    flex-direction: row;
    height: 16px;
    width: 48px;
}

.sudoku-notes {
    height: 16px;
    width: 16px;
    opacity: 0;
}

.sudoku-notes-number {
    font-size: 12px;
    line-height: 16px;
    margin: 0px;
    color: rgb(170, 170, 170);
}

.grid {
    fill: none;
    /* stroke:#231f20; */
    stroke-miterlimit:10;
}

.grid-line {
    stroke:#231f20;
}

.grid-line.normal {
    stroke-width: 0.5px;
}

.difficulty {
    /* position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%); */
    display: flex;
    gap: 8px;
    align-items: center;
    height: 44px;
    border-radius: 12px;
    padding: 0 14px 2px 12px;
    background: #000;
    color: #fff;
    border: none;
    opacity: 0.2;
    transition: 0.2s;
    font-optical-sizing: auto;
    font-style: normal;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.difficulty:hover {
    opacity: 0.4;
}

.clickable {
    cursor: pointer;
}

.sudoku-square.highlight {
    background-color: rgba(57, 245, 255, 0.4);
}

.sudoku-notes.highlight .sudoku-notes-number {
    color: #00000081;
    text-shadow:
    -0.2px -0.2px 0 rgba(16, 125, 131, 0.75),
    0.2px -0.2px 0 rgba(16, 125, 131, 0.75),
    -0.2px 0.2px 0 rgba(16, 125, 131, 0.75),
    0.2px 0.2px 0 rgba(16, 125, 131, 0.75);
}

.sudoku-square.finished {
    background-color: rgba(159, 220, 255, 0.5);
}

.sudoku-square:hover {
    background-color: rgba(255, 255, 255, 0.5)
}

.sudoku-square.incorrect {
    background-color: rgb(253, 203, 203);
}

.sudoku-square.incorrect:hover {
    background-color: rgb(253, 203, 203);
}

.incorrect-count {
    opacity: 0;
    margin: 10px 0 0 0;
    transition: 0.4s;
}

.incorrect-count.show {
    opacity: 1;
}