@import url("https://fonts.googleapis.com/css2?family=Varela+Round&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.game {
  width: 350px;
  text-align: center;
  font-family: sans-serif;
  color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 5px solid #39017d;
  border-radius: 15px;
  background-color: #02025e;
  margin: auto;
}

body {
  background-color: #020228;
  display: flex;
  height: 60vh;
  flex-direction: column;
  align-content: center;
  justify-content: space-between;
}

.title {
  background-color: #010140;
  padding: 5px;
  margin: 5px;
  font-size: 30px;
  font-weight: bolder;
  font-family: system-ui;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  border: 3px solid blueviolet;
  box-shadow: 10px 10x 20px red;
  color: #fff;
}

span {
  color: #fa0;
  margin-left: 6px;
}

.game .squar {
  background-color: #070738;
  width: 100px;
  height: 100px;
  margin: 5px;
  font-size: 70px;
  padding: 5px;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.5);
}

@keyframes rotateX {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.squar:hover {
  background-color: rgb(70, 56, 56);
  cursor: pointer;
}

.squar:active {
  background-color: rgba(59, 13, 123, 0.279);
  animation: rotateX 1s infinite linear;
}

/* style of score */

.score {
  display: flex;
  width: 97%;
  justify-content: space-between;
  margin: 0 0 20px 20px;

  padding: 10px;

  p {
    font-size: 25px;
    font-family: system-ui;
    font-weight: bold;
    color: brown;
    gap: 30px;
    background-color: rgb(69, 59, 45);
    padding: 10px;
    margin-right: 30px;

    span {
      color: #02025e;
    }
  }
}

.disabled-square {
  pointer-events: none;
}

footer {
  position: absolute;
  bottom: 0;
  text-align: center;
  background-color: #2d3e50;
  width: 100%;
  padding: 20px;
  font-family: swap;
  color: #ddd;
  font-weight: bolder;
}

#button {
  text-align: center;
}

button {
  margin-top: 3rem;
  padding: 20px;
  border-radius: 8px;
  background-color: rgb(35, 35, 1255);
  border-color: rgb(35, 35, 255);
  font-size: 15px;
  font-family: serif;
  font-weight: bold;
  border-width: 8px;
  color: #fff;
  width: 150px;
}

/* box-shawow */

.shadow_x {
  box-shadow: 0 0 10px #004de8, 0 0 40px #004de8, 0 0 40px #004de8,
    0 0 80px #004de8, 0 0 180px #004de8;
}

.shadow_o {
  box-shadow: 0 0 10px #f56b93, 0 0 40px #f56b93, 0 0 40px #f56b93,
    0 0 80px #f56b93, 0 0 180px #f56b93, 0 0 300px #f56b93;
}

/* style on mobile */

@media only screen and (max-width: 600px) {


  #color_win {
    background-color: rgb(12, 12, 168);
  }
}


.end {
  width: 200px;
  height: 200px;
  background-color: #f0f0f0;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #350ba7;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 2px solid brown;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
  opacity: 100%;


  h2 {
    font-size: 20px;
    font-weight: bold;
    color: #ddd;
  }

  button {
    border: none;
    width: 100px;
    height: 50px;
    ;
    align-items: center;
    padding: 0;
  }
}

.none {
  opacity: 30%;
}



