@font-face {
  font-family: 'norman';
  src: url(assets/fonts/norman.woff2) format('woff2'),
    url(assets/fonts/norman.woff) format('woff');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Boncegro';
  src: url(assets/fonts/Boncegro.woff2) format('woff2'),
    url(assets/fonts/Boncegro.woff) format('woff');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'writer';
  src: url(assets/fonts/writer.woff2) format('woff2'),
    url(assets/fonts/writer.woff) format('woff');
  font-style: normal;
  font-display: swap;
}

body,
html {
  background: linear-gradient(#f9f9f9, #9deae3);
  font-family: 'writer', 'Verdana';
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 0;
}

body {
  background: linear-gradient(#f9f9f9, #9deae3);
}

#menu-wrapper {
  height: 150px;
  color: #047070;
  font-size: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  max-width: 490px;
  margin: 30px auto;
}

#main-wrapper {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
}

#game-board-wrapper {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

#count-wrapper {
  display: flex;
  align-items: center;
}
#count-wrapper {
  margin-top: 15px;
  background-color: #efdfdf;
}

.level-box,
#count-wrapper {
  height: 50px;
  width: 320px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 2px solid #008b8b;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.menu-btn,
#result-btn {
  margin-top: 20px;
  width: 150px;
  height: 53px;
  background-color: #137f7f;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.5s ease;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2), 0px 8px 16px rgba(0, 0, 0, 0.2),
    0px 12px 24px rgba(0, 0, 0, 0.2);
}
#result-btn:hover {
  cursor: pointer;
}

.menu-btn:hover {
  background-color: #1cd1d1d9;
  color: #093b3b;
}

.menu-link {
  color: white;
  font-weight: 500;
  font-family: 'writer', 'Verdana';
  text-decoration: none;
}

.menu-link:hover {
  color: #093b3b;
}

label {
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
}
label:hover {
  cursor: pointer;
}

input[type='radio']:hover + label {
  color: #093b3b;
  text-shadow: 5px 5px 10px #00ffff;
}

input[type='radio'] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  background-image: url(assets/img/radio.png);
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: center;
  cursor: pointer;
}

/* Применить стили при отмеченном чекбоксе */
input[type='radio']:checked {
  background-position: center;
  background: url(assets/img/done.svg) left center no-repeat;
}

#count-bomb,
#count-click {
  font-size: 25px;
  color: #066969;
  text-shadow: 3px 3px 6px #00ffff;
}

#time {
  font-size: 27px;
  color: rgb(20, 116, 17);
  text-shadow: 3px 3px 6px rgb(119, 230, 49);
  margin-left: 30px;
  margin-top: 20px;
}

#count-click {
  font-size: 27px;
  color: rgb(17, 58, 116);
  text-shadow: 3px 3px 6px rgb(70, 140, 224);
  margin-left: 10px;
  margin-right: 40px;
  margin-top: 20px;
}

#vertical-title {
  font-size: 40px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  position: fixed;
  top: 35%;
  right: 0;
  transform: translateY(-50%);
  color: #137f7f;
  text-shadow: 3px 6px 6px #00ffff;
}

@media (max-width: 600px) {
  #vertical-title {
    display: none;
  }
}

.menu-input-bomb {
  font-size: 30px;
  color: rgb(20, 116, 17);
  text-shadow: 3px 3px 6px rgb(119, 230, 49);
  margin-left: 20px;
}

.menu-input {
  margin-top: 20px;
}

#bomb-count-input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 18px;
}

#bomb-count-input:focus {
  outline: none;
  border-color: #28dfdfd9;
  box-shadow: 0 0 5px #27e7e7d9;
}
.menu-input label {
  font-size: 30px;
  margin-left: 20px;
}

#menu-img-bomb {
  width: 50px;
  height: 52px;
  margin-top: 10px;
  margin-right: 50px;
  transition: all 0.2s ease;
  background-image: url(assets/img/bomb.png);
  background-size: cover;
  background-position: center;
}

#menu-img-bomb:hover {
  transform: scale(1.3);
}

input[type='number']:hover {
  cursor: number;
  box-shadow: 0 0 5px #12a9a9d9;
  transition: all 0.2s ease;
}

.results-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px;
  color: white;
  border-radius: 30px;
  transition: 0.5s ease 0s;
  display: block;
  transform: translate(-300%, 0);
}

.open {
  transform: translate(0, 0px);
}

.results-table {
  margin-top: 20px;
  margin-bottom: 180px;
  text-align: center;
  background-color: #056868;
  border: 1px solid white;
  font-family: 'writer', 'Verdana';
  font-size: 17px;
  border-collapse: collapse;
  border-radius: 10px;
}

.results-table th,
.results-table td {
  border-radius: 15px;
  border: 1px solid white;
  padding: 7px;
}

.results-table th {
  background-color: #053e3e;
}

#result-btn {
  color: white;
  font-family: 'writer', 'Verdana';
  border: none;
  font-size: 22px;
  margin-top: 50px;
}

#result-btn:hover {
  background-color: #1cd1d1d9;
  color: #093b3b;
  border: 1px solid #093b3b;
  transition: all 0.5s ease;
}

.cell.clicked {
  background-color: #5bd1d1;
}

#game-board {
  width: 450px;
  height: 450px;
  display: flex;
  flex-wrap: wrap;
  background-color: rgba(84, 223, 223, 0.851);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2), 0px 8px 16px rgba(0, 0, 0, 0.2),
    0px 12px 24px rgba(0, 0, 0, 0.2);
}

.cell {
  background-color: #289494d9;
  box-sizing: border-box;
  border: 1px solid #ffffff;
  transition: all 0.2s ease;
  border-radius: 5px;
  font-size: 20px;
  font-family: 'Boncegro', 'writer', 'Verdana';
  text-align: center;
}

.opened {
  cursor: default;
}

.cell:not(.opened):hover {
  cursor: pointer;
  background-color: #31b6b6d9;
}

.bomb-cell {
  background-color: rgb(218, 109, 109);
}
.open-bomb {
  background-image: url(assets/img/3.png);
  background-size: cover;
  background-position: center;
}

.bomb-cell-win {
  background-color: rgb(55, 233, 120);
}

.open-bomb-win {
  background-image: url(assets/img/bomb-win.png);
  background-size: cover;
  background-position: center;
}

.opened {
  background-color: #70c6c6d9;
}

.cell-1 {
  color: rgb(40, 90, 172);
}

.cell-2 {
  color: rgb(248, 35, 35);
}

.cell-3 {
  color: rgb(39, 131, 48);
}

.cell-4 {
  color: rgb(184, 144, 10);
}

.cell-5 {
  color: rgb(20, 132, 67);
}

.popup-lose {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.637);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-win {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.637);
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-popup-lose {
  color: #ffffff;
  font-size: 40px;
  text-align: center;
  padding: 20px;
  background-color: #891414;
  border-radius: 5px;
}

.message-popup-win {
  color: #ffffff;
  font-size: 40px;
  text-align: center;
  padding: 20px;
  background-color: #17942e;
  border-radius: 5px;
}

.disabled {
  pointer-events: none;
}

.flag {
  background-image: url(assets/img/flag.jpg);
  background-size: cover;
  background-position: center;
}

.flag-red {
  background-image: url(assets/img/flag-red.jpg);
  background-size: cover;
  background-position: center;
}
.flag-green {
  background-image: url(assets/img/flag-green.jpg);
  background-size: cover;
  background-position: center;
}

.disabled {
  pointer-events: none;
}

.sound {
  margin-bottom: 15px;
  margin-left: 10px;
  width: 35px;
  height: 25px;
  background-image: url(assets/img/sound-on.svg);
  background-size: cover;
  background-position: center;
}

.sound:hover {
  cursor: pointer;
}

.sound-off {
  margin-bottom: 15px;
  width: 30px;
  height: 25px;
  background-image: url(assets/img/sound-off.svg);
  background-size: cover;
  background-position: center;
}

.sound-off:hover {
  cursor: pointer;
}

.sound-night {
  margin-bottom: 15px;
  width: 35px;
  height: 25px;
  background-image: url(assets/img/sound-on-night.svg);
  background-size: cover;
  background-position: center;
}

.sound-night:hover {
  cursor: pointer;
}

.sound-off-night {
  margin-bottom: 15px;
  width: 30px;
  height: 25px;
  background-image: url(assets/img/sound-off-night.svg);
  background-size: cover;
  background-position: center;
}

.sound-off-night:hover {
  cursor: pointer;
}

.thema-day {
  margin-bottom: 15px;
  width: 35px;
  height: 35px;
  background-image: url(assets/img/moon.png);
  background-size: cover;
  background-position: center;
}

.thema-night {
  margin-bottom: 15px;
  width: 35px;
  height: 35px;
  background-image: url(assets/img/sun.png);
  background-size: cover;
  background-position: center;
}
.thema-day:hover {
  cursor: pointer;
}
.thema-night:hover {
  cursor: pointer;
}

