:root {
  --primary-color: rgba(239, 242, 239, 1);
  --text-color: #386C38;
  --font-color-dark: rgba(167.19, 203.45, 167.19, 0.6); 
  --font-color-light: rgba(113, 157, 113, 0.1); 
  --colored-cell: black; 
  --bg-submenu: rgba(210, 226, 210, 1);
  --cell-width: 25px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
  font-size: 20px;
  color: var(--text-color);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
  background-color: var(--primary-color);

}
header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 20px 0;
}

.header--logoImage {
  width: 80px;
  padding-right: 30px;
}

.navigation--main {
  display: flex;
  justify-content: center;
  margin: 10px;
  list-style-type: none;
}

.navigation--main-item {
  margin: 0px 12px;
  padding: 5px 12px;
  border-radius: 5px;
  border: 2px solid var(--text-color);
  background-color: var(--font-color-dark);
  color: var(--text-color);
  cursor: pointer;
  min-width: 145px;
  text-align: center;
  user-select: none;
}
.submenu {
  display: none;
  list-style-type: none;
  list-style-type: none;
  position: absolute;
  background-color: var(--bg-submenu);
  border-radius: 5px;
  font-size: 0.9rem;
  min-width: 110px;
  cursor: auto;
}

.submenu.visible {
  display: block;
}
.smallItem, .mediumItem, .largeItem {
  padding: 5px 10px;
  margin: 10px 10px;
  text-align: center;
  cursor: pointer;
  background-color: var(--font-color-dark);
  border-radius: 5px;
  border: 1px solid var(--text-color);
  color: var(--text-color);
}
.nanogram {
  display: grid;
  grid-template-columns: 1fr 110px;
  justify-self: center;
  width: 700px;
}
.information {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
/* @media(max-width: 700px){
  
} */
.nanogram > .information::after {
  content: '';
  display: block;
}
.nanogram {
  display: flex;
  flex-wrap: wrap;
}

.information {
  flex: 0 0 100%; /* Занимает всю ширину */
}
.information::after {
  flex: 0 0 50px; 
}
.timer-label::before{
  content: "";
  padding: 20px 20px;
}
.timer {
  user-select: none;
  padding: 20px 10px;
  display: inline-block;
  font-size: 0.9rem;
}
.nonogramName{
  min-width: 100px;
  text-align: center;
}
.nonogramName, .nonogramTimer{
  background-color: var(--font-color-dark);
  margin: 13px 5px;
  padding: 7px;
  border-radius: 10px;
}
.nanogram--wrapper::after {
  content: "";
  display: block;
}
.nanogram--wrapper {
  display: grid;
  grid-template-columns: max-content max-content;
  border: 3px solid gray;
  /* margin-left: auto;
  margin-top: auto;
  margin-bottom: auto; */
  margin: auto;
}
.nanogram--wrapper::before {
  content: '';
  display: inline-block;
  background-color: var(--font-color-dark);
  border-right: 3px solid gray;
  border-bottom: 3px solid gray;
}
.nanogram--colums-container {
  display: flex;
  flex-direction: row;
  background-color: var(--font-color-light);
  border-bottom: 3px solid gray;
}
.nanogram--column:nth-child(5n):not(:last-child){
  border-right: 3px solid gray;
}
.nanogram--column:not(:last-child){
  border-right: 1px solid gray;
}
.nanogram--column{
  display: flex;
  flex-direction: column;
  /* align-items: end; */
  justify-content: end;
  height: 100%;
}
.nanogram--header-column, .nanogram--header-row {
  display: inline-block;
  width: var(--cell-width);
  height: var(--cell-width);
  text-align: center;
  align-content: center;
  font-size: 0.9rem;
}
.nanogram--rows-container {
  display: flex;
  flex-direction: column;
  align-items: end;
  background-color: var(--font-color-light);
  border-right: 3px solid gray;
}
.nanogram--row:nth-child(5n):not(:last-child){
border-bottom: 3px solid gray;
}
.nanogram--row:not(:last-child){
  border-bottom: 1px solid gray;
}
.nanogram--row{
  display: flex;
  flex-direction: row;
  justify-content: end;
  width: 100%;
}
.nanogram--data-button {
  min-width: var(--cell-width);
  height: var(--cell-width);
  display: inline-block;
  border: 0px;
  font-size: 2rem;
  line-height: 1rem;
  background-color: var(--primary-color);
  color: var(--text-color);
  box-sizing: content-box;
}
.nanogram--data-button.button--colored {
  background-color: var(--colored-cell);
}
.nanogram--body-container .nanogram--row{
  justify-content: space-around;
}
.options-group{
  display: flex;
  flex-direction: column;
  justify-content:start;
  margin: 5px;
  margin-top: 20px;
}
.options--button{
  margin-bottom: 10px;
  padding: 7px;
  min-width: 100px;
}
.options--button:disabled{
border-color: var(--font-color-dark);
color: var(--font-color-dark);
cursor: auto;
}

.options--button-sound{
  height: 35px;
  min-width: 40px;
  margin: 10px 10px;
  padding: 2px;
  border: 2px solid var(--text-color);
  /* background-color: white; */
}

.modal-overlay{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: var(--font-color-dark);
  /* display: flex; */
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  /* overflow-y:auto; */
}

.modal {
  /* left: 100%; */
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid var(--font-color-light);

}

.modal-overlay.active{
  display: flex;
  left: 0;
}
.modal--span {
  padding: 20px;
}
.disable {
  display:none
}
.modal--score-container {
  margin-bottom: 20px;
}
.modal--score-row {
  padding: 7px;
  background-color: var(--bg-submenu);
  display: flex;
  flex-direction: row;
}
.modal--score-row:nth-child(odd){
  background-color: var(--font-color-dark);
  /* border-radius: 10px; */
}
.modal--score-item {
  margin: 3px 15px;
  padding: 2px 15px;
  background-color: var(--font-color-dark);
  border-radius: 10px;
  display: block;
  font-size: 0.8rem;
}
.modal--score-row:nth-child(odd) .modal--score-item {
  background-color: var(--bg-submenu);
}
.modal--score-item-nameNono{
  min-width: 110px;
}