@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-spacing: 0;
}

html {
    font-family: 'Roboto', sans-serif;
    background-color: #e9f7fd;
}

.center {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}


.intro {
    color: #1B4F72;
    font-size: 2.1875rem;
    letter-spacing: 0.0625rem;
    margin: 1.875rem 0 0.625rem 0;
}

.instruction-1, .instruction-2, .description {
    font-size: 1.125rem;
    color: #1B4F72;
    letter-spacing: 0.03125rem;
}

.instruction-2 {
    margin: 0 0 0.9375rem 0;
}

#progbars {
   margin: 0.9375rem;
}

progress {
    width: 11.25rem;
    height: 0.9375rem;
    border: 0.125rem solid gray;
}
progress::-webkit-progress-bar {
    background-color: white;
}

#own-progress::-webkit-progress-value {
    background-color: #5555d8;
}

#progress-2::-webkit-progress-value {
    background-color: #d34747;
}

#label-progress-1 {
    padding: 0.3125rem;
    margin-left: 3.3rem;
}

#label-progress-2 {
    padding: 0.3125rem;
}

.description {
    margin: 0 0 0.9375rem 0;
}

.decorator-elem {
    font-weight: bold;
}

.clickable {
    cursor: pointer;
}

.sudoku-app {
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
}

.puzzle {
    width: 90vw; /* Adjust as needed */
    height: 90vw; /* Allow height to adjust based on content */
    max-width: 540px; /* Limit maximum width for larger screens */
    max-height: 540px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(9, 1fr); /* Adjust grid columns */
    grid-template-rows: repeat(9, 1fr); /* Adjust grid rows */
    gap: 0;
}

.puzzle input {
    text-align: center;
    font-size: 3vw; /* Adjust font size based on viewport width */
    width: calc(100% + 2px); /* Adjust width to fill grid cell without gap */
    height: calc(100% + 2px); /* Adjust height to fill grid cell without gap */
    max-width: 60px; /* Optional: Limit maximum width for larger screens */
    max-height: 60px; /* Optional: Limit maximum height for larger screens */
    border: 1px solid #808080;
    box-sizing: border-box; /* Ensure border is included in width and height */
}



.odd-section {
    background: #d3d3d3;
}

.even-section {
    background: #ffffff;
}

.empty-el {
    color: #4848d4;
}

.solve-button, .clear-button, #cancel-button-2 {
    margin-top: 1.25rem;
    background-color: #1B4F72;
    border: none;
    border-radius: 0.1875rem;
    color: white;
    padding: 0.9375rem 1.875rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.125rem;
    letter-spacing: 0.0625rem;
    cursor: pointer;
}

.clear-button {
    margin-left: 0.9375rem;
}

.solve-button:hover, .clear-button:hover, #cancel-button-2:hover {
    background-color: #568caf;
}

#modal-overlay, #pause-overlay {
    position: fixed;
    inset: 0;
    background: rgb(135 147 157 / 60%);
    z-index: 109;
    display: none;
    align-items: center;
    justify-content: center;
}

.difficulty {
    margin: 0.625rem 0.625rem 0.625rem 0.9375rem;
    font-size: 1.875rem;
    font-weight: bold
}

#difficulty-header {
    margin: 0;
    font-size: 1.875rem;
    font-weight: bold
}

#difficulty {
    margin: 0 0 0.625rem 2.1875rem;
    font-size: 1.5625rem;
    font-weight: bold
}

#play-button {
   margin-left: 1.25rem;
    background-color: #0d0d0d;
    border: none;
    border-radius: 0.1875rem;
    color: white;
    padding: 0.9375rem 1.875rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.125rem;
    letter-spacing: 0.0625rem;
    cursor: pointer;
}


.cancel-button {
    margin-left: 3.75rem;
    background-color: #0d0d0d;
    border: none;
    border-radius: 0.1875rem;
    color: white;
    padding: 0.9375rem 1.875rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.125rem;
    letter-spacing: 0.0625rem;
    cursor: pointer;
}

#play-button:hover, .cancel-button:hover {
    background-color: #545353;
}

#cancel-button-2 {
    margin: 1.25rem;
    background-color: #1B4F72;
    color: white;
    padding: 0.625rem 1.25rem;
    font-size: 1.125rem;
    cursor: pointer;
}

#timer {
    font-size: 2.1875rem;
    letter-spacing: 0.0625rem;
    margin: 1.875rem;
}


a {
    color: inherit;
    text-decoration: none;
    text-align: center;
}

#footer a {
    color: black;
}

footer {
    bottom: 0%;
    position: fixed;
    padding: 0 0 0.625rem 0.625rem ;
}

#game-list-table-container {
    max-height: 300;
    overflow-y: auto;
}

#game-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.625rem;
}

#game-list-table th,
#game-list-table td {
    border: 0.0625rem solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

#game-list-table .game-row:hover {
    background-color: #e6e6e6;
}

.game-list-table-difficulty-container {
  width: 100; 
  height: 1.25rem; 
  border: 0.0625rem solid #000; 
}

.game-list-table-difficulty-bars {
  height: 100%;
  display: flex;
}

.bar {
  height: 100%;
}

.bar:nth-child(1) { background-color: green; }
.bar:nth-child(2) { background-color: yellow; }
.bar:nth-child(3) { background-color: orange; }
.bar:nth-child(4) { background-color: red; }

@media screen and (min-width: 720px){
    div br {
    display: none;
    }
    
    #label-progress-1 {
    margin-left: 0
    }

    #label-progress-2 {
    margin-left: 1.875rem
    }
}
