@charset "UTF-8";
.coloring_body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.strawberry {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 20px;
  padding: 20px;
  background-color: rgba(131, 57, 165, 0.4941176471);
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.changes {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0px -15px;
}

.list {
  padding: 0px 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.chang-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 10px 0;
  font-family: "Audiowide", serif;
  font-weight: 400;
  font-size: 18px;
}

.chang-list > input {
  margin-left: 15px;
}

.img-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.added {
  padding: 10px 15px;
  background-color: #ffffff;
  border-radius: 10px;
  border: 2px solid #4c06ee;
  color: #4c06ee;
  font-weight: 700;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  margin-bottom: 20px;
  font-family: "Audiowide", serif;
  font-weight: 400;
  font-size: 14px;
}

.added:hover {
  background-color: #4c06ee;
  color: #ffffff;
}

@media (max-width: 420px) {
  .title-strawberry {
    font-size: 24px !important;
  }
  .list {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
}
.memory_body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 20px 0;
  gap: 40px;
  overflow: hidden;
}

.gamefield {
  max-width: 500px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  font-size: 30px;
  color: #fcfcfc;
}

.gamefield > div {
  width: 120px;
  height: 120px;
  background-color: #6b78ec;
  border: 2px solid #fcfcfc;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-family: "Frijole", serif;
  font-weight: 400;
}

.gamefield > div.active {
  background-color: #06d3ee;
}

.memory-rules {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 20px;
  overflow: hidden;
}
.memory-rules img {
  max-width: 300px;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.rule_description {
  font-family: "Audiowide", serif;
  font-weight: 400;
  font-size: 18px;
  height: 70px;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  max-width: 250px;
}
.rule_description img {
  max-width: 50px;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
}

.rules-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.info__memory {
  text-align: center;
  color: #06d3ee;
  font-size: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-family: "Audiowide", serif;
  font-weight: 600;
}

.memory_game-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 20px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.start_game-memory, .restart-button {
  padding: 10px 30px;
  background-color: #ffffff;
  color: #F32EE0;
  font-weight: 700;
  font-size: 20px;
  border: 1px solid #F32EE0;
  border-radius: 5px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  font-family: "Audiowide", serif;
  font-weight: 400;
}

.restart-button {
  display: none;
}

.start_game-memory:hover, .restart-button:hover {
  background-color: #F32EE0;
  color: #ffffff;
  border: 1px solid #fff;
}

.controls button {
  width: 50px;
  height: 50px;
  background-color: #ecdceb;
  font-family: "Audiowide", serif;
  color: #F32EE0;
  font-weight: 700;
}

@media (max-width: 563px) {
  .title {
    margin: 0;
  }
  .gamefield > div {
    width: 100px;
    height: 100px;
  }
}
@media (min-width: 400px) {
  .rules {
    width: 250px;
  }
}
@media (max-width: 406px) {
  .memory-rules {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px;
  }
  .memory-rules img {
    max-width: 200px;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
  }
}
@media (max-width: 363px) {
  .gamefield > div {
    width: 85px;
    height: 85px;
  }
}
.menu {
  height: 56px;
}
.menu__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding-top: 20px;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  display: none;
}
.menu__open {
  max-height: 40px;
  padding: 0 10px;
}
.menu__open img {
  height: 100%;
}
.menu__title {
  font-size: 16px;
  font-family: "Audiowide", serif;
  font-weight: 400;
  color: #fff;
}
/* Обнуление */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  /* box-sizing: border-box; */
}

a {
  text-decoration: none;
}

ul,
ol,
li {
  list-style: none;
}

img {
  vertical-align: top;
}

html,
body {
  min-height: 100%; /* Гарантує охоплення всього вікна браузера */
  margin: 0; /* Забезпечує відсутність відступів */
  padding: 0;
  width: 100%;
}

body {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(72, 6, 238, 0.5)), to(#FF1CC1)) no-repeat;
  background: linear-gradient(rgba(72, 6, 238, 0.5), #FF1CC1) no-repeat;
}

.container {
  max-width: 1280px;
  padding: 0 32px;
  margin: 0 auto;
}

main {
  height: 100%;
}

.other__game {
  position: absolute;
  height: -webkit-max-content;
  height: -moz-max-content;
  height: max-content; /* Займає всю висоту сторінки */
  width: 500px;
  top: 0;
  right: 0;
  background-color: #7e37ad;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 20px 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.game {
  max-width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.game__body {
  max-width: 350px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 20px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.game__captune img {
  width: 100%;
  border-radius: 16px;
}
.game__name {
  margin-bottom: 10px;
}
.game__title {
  margin: 0 !important;
  font-size: 32px !important;
}

.close_menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
}

.game__button {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 10%;
  flex: 0 0 10%;
}

.menu__name {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 80%;
  flex: 0 0 80%;
}

.inner {
  background: url("../images/bc_t.png");
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
}

.tic_body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 20px 0;
  overflow: hidden;
}

.rules {
  padding: 20px 20px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background-color: rgba(217, 183, 255, 0.8784313725);
  border-radius: 16px;
  color: #fff;
  overflow: hidden;
}
.rules__top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.rules__title {
  font-family: "Audiowide", serif;
  font-weight: 400;
  font-size: 24px;
}
.rules__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  max-width: 300px;
  overflow: hidden;
}
.rules__content img {
  max-width: 200px;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.body {
  padding: 10px 30px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 700px;
  gap: 30px;
  margin-bottom: 20px;
}

.title {
  text-align: center;
  margin: 30px 0;
  font-size: 36px;
  font-family: "Frijole", serif;
  font-weight: 400;
  color: #fff;
}

.board {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  max-width: 300px; /* Зменшили до 300px */
  margin: 20px auto;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.board > div {
  width: 100px;
  height: 100px;
  /* border: 1px solid #411592;  */
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background-color: #fa76ed;
  cursor: pointer;
  color: #9264e7;
  border: 1px solid #4c06ee;
  font-size: 35px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.board > div:nth-child(2n) {
  background-color: #e3f2fc;
}

.board > div:hover {
  -webkit-filter: brightness(1.1);
  filter: brightness(1.1);
}

.info {
  text-align: center;
  color: #06d3ee;
  font-size: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-family: "Audiowide", serif;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.3411764706);
}

.reset {
  padding: 10px 30px;
  background-color: #ffffff;
  color: #F32EE0;
  font-weight: 700;
  font-size: 20px;
  border: 1px solid #F32EE0;
  border-radius: 5px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  font-family: "Audiowide", serif;
  font-weight: 400;
}

.reset:hover {
  background-color: #F32EE0;
  color: #ffffff;
  border: 1px solid #fff;
}

@media (max-width: 730px) {
  .body {
    padding: 10px 0px;
  }
}
@media (max-width: 667px) {
  .tic_body {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
}
@media (max-width: 430px) {
  .board > div {
    max-width: 67px;
    max-height: 67px;
    /* border: 1px solid #411592;  */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fa76ed;
    cursor: pointer;
    color: #9264e7;
    font-size: 35px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .body {
    padding: 10px 20px;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 700px;
    gap: 20px;
  }
}
@media (max-width: 428px) {
  .board > div {
    max-width: 65px;
    max-height: 65px;
    /* border: 1px solid #411592;  */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fa76ed;
    cursor: pointer;
    color: #9264e7;
    font-size: 35px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
}
@media (max-width: 370px) {
  .board > div {
    width: 60px;
    height: 60px;
    /* border: 1px solid #411592;  */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fa76ed;
    cursor: pointer;
    color: #9264e7;
    font-size: 35px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
}