* {
  margin: 0;
  padding: 0;
}

html {
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
}

.dark-theme {
  background-color: rgb(144, 142, 142);
}

.light-theme {
  background-color: #ffffff;
}

.wrapper {
  width: 70rem;
  margin: 5vh auto;
  border: .3rem solid #edb20f;
  user-select: none;
}

.dark-theme .wrapper {
  border-color: #edb20f;
  ;
}

.light-theme .wrapper {
  border-color: #077c5b;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
  padding: 1rem;
  margin: .1rem auto;
  color: #edb20f;
  text-align: center;
}

.dark-theme .header {
  background-color: #3f3f40;
}

.light-theme .header {
  background-color: #06936b;
  color: #ffffff;
}

.header__title {
  font-size: 2.3rem;
  padding: .5rem;
}

.header__stopwatch {
  display: flex;
  width: 4rem;
  padding: .5rem;
  border: solid .1rem #edb20f;
  line-height: 2rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.header__reset-btn,
.header__records-btn {
  padding: .5rem;
  border: solid .1rem #edb20f;
  line-height: 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  background-color: #edb20f;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: .5rem;
}

.header__records-btn {
  color:#000000
}

.header__theme-btn,
.header__sound-btn {
  width: 4.0rem;
  height: 3.2rem;
  border-radius: .5rem;
  border: none;
  background-color: #edb20f;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 65%;
  background-image: url(../img/theme-dark.png);
  padding: .3rem;
  cursor: pointer;
  transition: all 0.3s;
}

.header__theme-btn-light {
  background-image: url(../img/theme-light.png);
}

.header__sound-btn {
  background-image: url(../img/soundOn.png);
}

.header__sound-btn.off {
  background-image: url(../img/soundOf.png);
}

.header__clicks,
.header__flags {
  display: flex;
  column-gap: .6rem;
  align-items: center;
}

.header__clicks__title,
.header__flags__pic {
  height: 2rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 2rem;
  padding: .5rem;
}

.header__flags__pic {
  width: 2.2rem;
  background-image: url(../img/flag-002.png);
  background-position: center;
}

.header__clicks__title {
  width: 1rem;
  height: 1.9rem;
  background-image: url(../img/click-001.png);
  background-position: center;
}

.header__clicks__count,
.header__flags__count {
  width: 2.5rem;
  border: solid .1rem #edb20f;
  line-height: 2rem;
  font-size: 1.8rem;
  padding: .5rem;
  font-weight: 600;
}

.playing-field {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  padding: 1rem;
  transition: all 0.3s;
  background-image: url(../img/back.png);
  background-repeat: no-repeat;
  background-position: center left 5rem;
}

.dark-theme .playing-field {
  background-color: #545353;
}

.light-theme .playing-field {
  background: #fff;
}

/* .field:hover {
  color: #000000
} */

.field,
.field-m,
.field-d {
  margin-right: .2rem;
  margin-bottom: .2rem;
  width: 4rem;
  height: 4rem;
  font-size: 3.5rem;
  font-weight: 600;
  color: transparent;
  line-height: 4rem;
  border: .2rem solid transparent;
  text-align: center;
  background-image: linear-gradient(to bottom, #edb20f, #b6810d);
  cursor: pointer;
  user-select: none;
}

.field-m {
  font-size: 2.2rem;
  width: 2.6rem;
  height: 2.6rem;
  line-height: 2.6rem;
  font-weight: 600;
}

.field-d {
  font-size: 2.2rem;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  font-weight: 600;
}

.field-open {
  color: #000000;
  background-image: none;
}

.dark-theme .field-open {
  background-color: #d6caca;
}

.light-theme .field-open {
  background-color: #c6cdcb;
}


.field-empty {
  background-image: none;
}

.field-1 {
  color: #0102fd;
}

.field-2 {
  color: #007d06;
}

.field-3 {
  color: #f10104;
}

.field-4 {
  color: #020181;
}

.field-5 {
  color: #a52a2a;
}

.field-6 {
  color: #116062;
}

.field-8 {
  color: #086d1a;
}

.msg-info__btn:hover {
  background-color: #3f3f40;
  color: #edb20f;
  transition: .3s all;
}

.msg-records__subtitle {
  font-size: 1.8rem;
  text-align: center;
}

.comfirm-btn:active,
.header__records-btn:active,
.header__sound-btn:active,
.header__reset-btn:active,
.header__theme-btn:active {
  transform: scale(1.2);
}

.settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: .5rem 0;
}

.dark-theme .settings {
  background-color: #3f3f40;
  color: #ffffff;
}

.light-theme .settings {
  background-color: #06936b;
  color: #ffffff;
}

.field-size-title {
  font-size: 2rem;
  padding: .5rem;
  text-align: left;
}

.field-size-pic {
  height: 2rem;
  width: 2.1rem;
  padding: .5rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url(../img/bomb-002.png);
  margin: 0 .5rem;

}

.dark-theme .field-size-title {
  color: #edb20f;
}

.light-theme .field-size-title {
  color: #fff;
}

.field-size {
  font-size: 1.4rem;
  line-height: 1.5rem;
  font-weight: 600;
  margin-right: .4rem;
  padding: .4rem;

  text-align: center;
  border: solid .1rem #edb20f;
  cursor: pointer;
  transition: all 0.3s;
  height: 1.5rem;
}

.dark-theme .field-size {
  color: #edb20f;

}


.field-size:hover {
  background-color: #edb20f;
  color: #161616;

}

.input-mines {
  width: 4rem;
  padding: .3rem .5rem;
  border: solid .1rem #edb20f;
  outline: none;
  line-height: 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
}

.dark-theme .input-mines {
  background-color: #40403f;
  color: #edb20f;
}

.active-size,
.field-size__active,
.mine-input__active {
  background-color: #edb20f;
  color: #161616;
  transition: all 0.3s;
}

.dark-theme .field-size__active {
  color: #161616;
}

.comfirm-btn {
  margin-left: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
  padding: .4rem .5rem;
  background-color: #edb20f;
  color: #161616;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  border: .1rem solid #edb20f;
  border-radius: .5rem;

}

.field-B {
  color: transparent;
  background-image: url(../img/bomb-001.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #c9c5c5;
}

.field-F {
  color: transparent;
  background-image: url(../img/flag-003.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 80%;
  background-color: #c9c9c5;
}

.field-B:hover {
  color: transparent;
  /* background-image: url(./bomb-001.png); */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #b7b5b5;

}

.msg-wrapper {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: rgba(41, 41, 41, 0.5);
  opacity: 0;
}

.pointer-disable {
  pointer-events: none;
}

.msg-wrapper.active {
  opacity: 1;
  pointer-events: all;
  transition: 0.5s all;
}

.msg-info,
.msg-records {
  margin: 20rem auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  row-gap: 1.5rem;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 25rem;
  color: #3f3f40;
  letter-spacing: 0.06em;
  background-color: #fafafa;
  border-radius: 0.9rem;
  transition: 0.5s all;
  opacity: 0;
}

.msg-records {
  width: 45rem;
}

.msg-records__list {
  font-size: 1.4rem;
  list-style: none;
}

.msg-records__list__item {
  padding: 0.1rem 1rem;
  margin-bottom: 1rem;
  background-color: #b9b9bb;
  color: #3f3f40;
} 

.msg-records__list__item:nth-of-type(2n) {
  background-color:  #dedee3;
}

.msg-info.active {
  transform: translate(-50%, -50%) scale(1);
  transition: 0.5s all;
  opacity: 1;
}

.msg-records.active {
  transform: translate(-50%, -50%) scale(1);
  transition: 0.5s all;
  opacity: 1;
}

.msg-info__title,
.msg-records__title {
  width: 100%;
  padding: .8rem 0;
  font-size: 2rem;
  color: #edb20f;
  text-align: center;
  border-radius: .9rem .9rem 0 0;
}

.dark-theme .msg-info__title, 
.dark-theme .msg-records__title {
  background-color: #3f3f40;
}

.light-theme .msg-info__title, 
.light-theme .msg-records__title {
  background-color: #06936b;
}

.msg-info__clicks,
.msg-info__time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
}

.msg-info__clicks__num,
.msg-info__time__value {
  background-color: #edb20f;
  transition: 0.3s all;
  border: solid #3f3f40 .1rem;
  border-radius: .4rem;
  font-weight: 600;
  padding: .2rem 1rem;
  line-height: 2rem;
  font-size: 1.6rem;
}

.msg-info__clicks,
.msg-info__time {
  font-size: 1.4rem;
  color: #3f3f40;
}

.msg-info__btn,
.msg-records__btn {
  margin-bottom: 1rem;
  padding: .5rem;
  background-color: #edb20f;
  transition: 0.3s all;
  font-size: 1.7rem;
  color: #3f3f40;
  border: solid #3f3f40 .1rem;
  border-radius: .4rem;
  font-weight: 600;
  cursor: pointer;
}