@font-face {
  font-family: "Blue_curve";
  src: url("Blue_curve/Bluecurve-Light.ttf");
  font-weight: lighter;
}
@font-face {
  font-family: "Blue_curve";
  src: url("Blue_curve/Bluecurve-Regular.ttf");
  font-weight: normal;
}
@font-face {
  font-family: "Blue_curve";
  src: url("Blue_curve/Bluecurve-Bold.ttf");
  font-weight: bold;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;

  src: url(Blue_curve/Montserrat-Medium.ttf);
}

@font-face {
  font-family: "Montserrat";
  font-style: bold;

  src: url(Blue_curve/Montserrat-Bold.ttf);
}
html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  transition: all 0.5s ease;
  margin: 0;
  padding: 0;
}

.header {
  font-family: "Blue_curve";
  font-weight: bold;
  font-size: 53px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  margin-top: 40px;
  margin-bottom: 70px;
  transition: all 0.5s ease;
  word-break: break-word;
}

.game {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1600px;
  margin: 0 auto;
}

.game_item {
  margin: 0 auto;
}

.tutorial,
.restart {
  text-align: center;
  
  padding: 17px;
  height: 150px;
  width: 150px;
  font-family: "Blue_curve";
  font-weight: bold;
  font-size: 123px;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  cursor: pointer;
  
  user-select: none;

  
  background: none;
  border: none;
}

.tutorial:hover,
.restart:hover {
  
  border-radius: 7px;
  transform: scale(1.25);
  -webkit-transform: scale(1.25);
  -moz-transform: scale(1.25);
  -o-transform: scale(1.25);
}

.tutorial:active,
.restart:active {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -o-transform: scale(1.1);
}

.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
  
  width: auto;
  height: auto;
  padding: 18px;
  box-shadow: 2px 2px 7px grey;
  border-radius: 7px;
  margin-bottom: 42px;
  background: #fff;
}

.square {
  width: 67px;
  height: 67px;
  font-family: "Blue_curve";
  font-weight: normal;
  font-size: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  
  
  background: -webkit-linear-gradient(to bottom, #5b86e5, #36d1dc);
  background: linear-gradient(to bottom, #5b86e5, #36d1dc);

  border-radius: 7px;
  box-shadow: 2px 2px 5px grey;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
}

.emptysquare {
  
  background: white;
}

.square:hover,
.square:active,
.tutorial_square:hover,
.tutorial_square:active

 {
  transform: scale(1.25);
  -webkit-transform: scale(1.25);
  -moz-transform: scale(1.25);
  -o-transform: scale(1.25);
  box-shadow: 2px 2px 10px grey;
}

.confirmation {
  max-width: 800px;
  margin: 0 auto;
  width: 89%;
  padding: 30px;
  background-color: #f7f7f7;
  border-radius: 15px;
  position: absolute;
  z-index: 1;
  box-shadow: 2px 2px 7px grey;
  transition: transform 0.5s ease-in-out;
  display: none;
}
.confirmation-msg {
  text-align: center;
  font-size: 33px;
  line-height: 36px;
  font-family: "Blue_curve";
  font-weight: normal;
  word-break: break-word;
  margin-bottom: 23px;
}

.controls_3 {
  margin-bottom: 0px;
}

.controls_3 b {
  background: -webkit-linear-gradient(to bottom, #b569b1, #8451a4);
  background: linear-gradient(to bottom, #b569b1, #8451a4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  
}

.confirmation-close {
  font-family: "Blue_curve";
  font-weight: bold;
  font-size: 30px;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 33px;
  height: 33px;
  background-color: #ccc;
  color: #222;
  text-align: center;
  border-radius: 20px;
  cursor: pointer;
}
.confirmation-close:hover {
  background-color: #bbb;
}

.tutorial_grids {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.tutorial_container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
  width: 250px;
  height: 250px;
  padding: 16px;
  box-shadow: 2px 2px 7px grey;
  border-radius: 7px;
  margin-bottom: 42px;
  background: #fff;
}

.tutorial_square,
.citate_square {
  font-family: "Blue_curve";
  font-weight: normal;
  font-size: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  
  background: #36d1dc;
  background: -webkit-linear-gradient(to bottom, #5b86e5, #36d1dc);
  background: linear-gradient(to bottom, #5b86e5, #36d1dc);

  border-radius: 7px;
  box-shadow: 2px 2px 5px grey;
  transition: all 0.3s ease-in-out;
}

#yes {
  color: green;
  font-weight: bold;
}

#no {
  color: red;
  font-weight: bold;
}

.popupVictory {
  display: none;
}
.citate {
  display: flex;
  flex-wrap: nowrap;
}
.citate_square {
  width: 77px;
  height: 67px;
  margin: 25px auto;
}

.win_msg_1 {
  margin-top: 29px;
}

.win_infos {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  flex-wrap: nowrap;
}

.win_head {
  font-family: "Blue_curve";
  font-size: 35px;
  text-align: center;
}

.win_contacts img {
  width: 75px;
  height: 75px;
}

.win_icons {
  margin-top: 25px;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
}

.win_icons a {
  margin-bottom: 15px;
}
.win_icons a:last-child {
  margin-bottom: 0px;
}

#timer,
#time_record {
  
  
  width: 60%;
  max-width: 200px;
  height: auto;
  padding: 20px;
  font-weight: bold;
  font-size: 30px;
  
  margin: 0 auto;
  display: block;
  
  border: 4px solid #bfbfbf;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 2px 3px #ccc;
  background-color: white;
  
  font-family: "Blue_curve";
  transition: all 0.5 ease;
}

.grid_mods {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.mod_square {
  user-select: none;
  background: white;
}

.mod_square:last-child {
  width: 110px;
}

.toggle-switch {
  margin: 100px auto 65px auto;
  position: relative;
  width: 100px;
  height: 50px;
  --light: #d8dbe0;
  --dark: #28292c;
  --link: rgb(27, 129, 112);
  --link-hover: rgb(24, 94, 82);
}

.switch-label {
  position: absolute;
  width: 100%;
  height: 50px;
  background-color: var(--dark);
  border-radius: 25px;
  cursor: pointer;
  border: 3px solid var(--dark);
}

.checkbox {
  position: absolute;
  display: none;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.checkbox:checked ~ .slider {
  background-color: var(--light);
}

.slider::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  -webkit-box-shadow: inset 12px -4px 0px 0px var(--light);
  box-shadow: inset 12px -4px 0px 0px var(--light);
  background-color: var(--dark);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.checkbox:checked ~ .slider::before {
  -webkit-transform: translateX(50px);
  -ms-transform: translateX(50px);
  transform: translateX(50px);
  background-color: var(--dark);
  -webkit-box-shadow: none;
  box-shadow: none;
}

.color_picker {
  text-align: center;
  
  width: 92%;
  max-width: 700px;
  background-color: #353535;
  box-shadow: 20px 20px 30px rgb(0 0 0 / 20%);
  padding: 20px 0;
  font-family: sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 auto;
  
  border-radius: 15px;
  justify-content: center;
}

input[type="color"] {
  height: 150px;
  width: 150px;
  border: 3px solid black;
  background: none;
}

#rgbOutput {
  display: inline-block;
  text-align: center;
  margin: 20px 0;
  background-color: #6561ff;
  color: #ffffff;
  padding: 10px 30px;
  font-size: 26px;
  letter-spacing: 0.5px;
  border-radius: 18px;
  font-family: "Blue_curve";
  font-weight: lighter;
}

.color_elems {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px auto;
}

.color_elem,
.mod_square {
  display: inline-block;
  margin: 0 10px;
  width: 75px;
  height: 75px;
  font-family: "Blue_curve";
  font-weight: normal;
  font-size: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  
  

  border-radius: 7px;
  box-shadow: 2px 2px 5px grey;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  border: 2px solid black;
}

.color_elem {
  margin: 10px 40px;
  background: none;
  box-shadow: 2px 2px 10px black;
  color: black;
}

#square_color_pick {
  font-family: "Blue_curve";
  font-weight: normal;
  font-size: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  
  
  background: -webkit-linear-gradient(to bottom, #5b86e5, #36d1dc);
  background: linear-gradient(to bottom, #5b86e5, #36d1dc);
  cursor: default;
  user-select: none;
  border-radius: 7px;
  box-shadow: 2px 2px 5px black;
  transition: all 0.3s ease-in-out;
  margin: 30px auto;
}

.player {
  text-align: center;
  margin: 10px 20px;
  
}

.player_button {
  position: relative;
  overflow: hidden;
  width: auto;
  height: auto;
  padding: 18px 40px;
  margin: 75px auto auto auto;
  background: #353535;
  font-family: "Blue_curve";
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  box-shadow: 20px 20px 30px rgb(0 0 0 / 20%);
  cursor: pointer;
  
  text-align: center;
  border: none;
  background-size: 300% 100%;

  border-radius: 50px;
  moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.pause {
  display: none;
}

.play::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(
    to bottom,
    rgba(229, 172, 142, 0),
    rgba(255, 255, 255, 0.5) 50%,
    rgba(229, 172, 142, 0)
  );
  transform: rotateZ(60deg) translate(-5em, 7.5em);
  animation: rise_and_shine 1.35s forwards infinite;
}

@keyframes rise_and_shine {
  100% {
    transform: rotateZ(180deg) translate(1em, -9em);
  }
}

#player_button:focus {
  outline: 0;
}
.langs {
  background: #353535;
  text-align: center;
  margin: 10px 20px;
  padding: 6px 18px;
  margin: 69px auto 90px auto;
  width: 94px;
  border-radius: 7px;
  justify-content: center;
  display: flex;
  box-shadow: 20px 20px 30px rgb(0 0 0 / 20%);
}

.langs a {
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  padding: 12px;
  font-weight: 650;
  transition: 0.3s linear;
  border-radius: 10%;
  font-family: "Blue_curve";
  font-weight: bold;
  margin: 3px;
}

.langs a.active {
  background: #4c594f;
}

.head_2 {
  margin: 10px auto 0 auto;
  text-align: center;
  font-family: "Blue_curve";
  font-weight: bold;
  font-size: 48px;
  word-break: break-word;
  color: #000;
}

.red-text {
  color: #db0202;
}

.cta__text-column img {
  display: block;
  width: 100%;
}

.cta__text-column h2 {
  margin: 0;
  font-size: 2.2rem;
  font-family: "Blue_curve";
  color: white;
}

@media (min-width: 50em) {
  .cta__text-column h2 {
    font-size: 1.8rem;
  }
}

.cta,
.win_cta {
  --shadowColor: 187 60% 40%;
  display: flex;
  flex-wrap: wrap;
  background: #353535;
  max-width: 27rem;
  width: 100%;
  
  box-shadow: 20px 20px 30px rgb(0 0 0 / 20%);
  border-radius: 0.8rem;
  overflow: hidden;
  border: 0rem solid;
  margin: 50px auto 0 auto;
}

.win_cta {
  margin: 35px auto 0 auto;
}

.cta img,
.win_cta img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  flex: 1 1 300px;
  outline: 0rem solid;
}

.cta__text-column {
  padding: min(2rem, 5vw) min(2rem, 5vw) min(2.5rem, 5vw);
  flex: 1 0 50%;
  font-family: "Blue_curve";
  font-weight: lighter;
  font-size: 1.4rem;
  color: white;
}

.cta__text-column > * + * {
  margin: min(1.5rem, 2.5vw) 0 0 0;
}

.cta a,
.win_cta a {
  display: inline-block;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  background: #4d71c1;
  border-radius: 1.6rem;
  font-weight: 700;
  border: 0.35rem solid transparent;
  font-family: "Blue_curve";
  font-size: 1.4rem;
  box-shadow: 10px 10px 15px rgb(0 0 0 / 20%);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
  z-index: 10;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.footer {
  
  margin-top: 140px;
  background: url(img/footer.png);
  background-size: cover;
  padding: 20px 0;

  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-column {
  padding: 0px 59px;
  margin: 10px 0;
  text-align: left;
}

.footer-column a {
  color: white;
  text-decoration: none;

  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 53px;
}

.footer-column a:hover,
.footer-column a:focus,
.footer-column a:active {
  opacity: 0.5;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column.logo {
  padding-top: 128px;
}

.footer-column a span {
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 3px;
  background-color: #eb3636;
}

.footer-column a span {
  display: none;
}

@media (max-width: 1200px) {
  .tutorial,
  .restart {
    margin-top: 30px;
    margin-bottom: 75px;
  }

  .footer-column {
    padding: 0 39px;
  }
}

@media (max-width: 990px) {
  .footer-column a {
    font-size: 22px;
    line-height: 50px;
  }
  .footer-column {
    padding: 0 21px;
  }

  .footer-column.logo img {
    width: 135px;
    height: 130px;
  }
}

@media (max-width: 767px) {
  .container {
    margin: auto 100%;
  }

  .square {
    width: 53px;
    height: 53px;
    font-size: 36px;
  }

  .square:hover,
  .square:active,
  .tutorial_square:hover,
  .tutorial_square:active {
    transform: none;
  }

  .win_infos {
    flex-wrap: wrap;
  }

  .win_icons {
    flex-direction: row;
  }

  .win_games {
    margin-top: 25px;
  }

  .footer {
    background: url(img/footer.png);
    
    background-size: cover;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .footer-column a {
    font-size: 20px;
    line-height: 40px;
  }

  .footer-column {
    margin-bottom: 30px;
    padding: 0 22px;
  }

  .footer-column.logo {
    padding-top: 0px;
  }
}

@media (max-width: 574px) {
  .header {
    font-size: 46px;
  }

  

  .square {
    width: 54px;
    height: 54px;
  }

  .tutorial_container {
    width: 220px;
    height: 220px;
  }

  .confirmation {
    width: 78%;
  }

  .confirmation_container {
    line-height: 36px;
    margin-bottom: 20px;
  }

  .win_contacts img {
    width: 70px;
    height: 70px;
  }

  .mod_square {
    margin-bottom: 25px;
  }

  .head_2 {
    font-size: 43px;
  }

  #music_button {
    padding: 15px 36px;
    font-size: 25px;
  }

  .cta {
    width: 90%;
  }

  .cta__text-column,
  .cta a {
    font-size: 1.2rem;
    line-height: 25px;
  }

  .cta__text-column h2 {
    font-size: 1.7rem;
  }

  .footer-column a {
    font-size: 18px;
    line-height: 35px;
    position: relative;
  }
  .footer-column {
    width: 37%;
    margin-bottom: 30px;
    padding: 0 14px;
  }

  .footer-column.logo img {
    width: 116px;
    height: 112px;
  }

  .footer {
    justify-content: space-between;
    margin-top: 175px;
  }

  .footer-column a span {
    display: block;
  }
}