@import url("https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

:root {
  --gradient: lin;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: teal;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  user-select: none;
}

details {
  margin-top: 1rem;
  font-family: sans-serif;
  font-size: 0.9rem;
  background-color: #f9f9f9;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  max-width: 200px;
}
summary {
  cursor: pointer;
}
.title {
  text-align: center;
  padding: 10px;
  margin: 10px auto;
  border-radius: 5px;
  color: teal;
  font-weight: 600;
  font-size: 1.5rem;
  background: #fff;
}
#board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.square {
  width: 120px;
  height: 120px;
  background: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  cursor: pointer;
}
h1 {
  font-weight: 500;
}

.info {
  font-family: "Poppi", sans-serif !important;
  position: fixed;
  top: 10%;
  right: 10%;
  /* height: 30px; */
  width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.7rem;
  background: #fff;
  user-select: none;
  transition: all 0.5s;
  padding: 10px;
  color: teal;
  opacity: 0;
  transform: translateX(120%);
  font-weight: 600;
  border-radius: 5px;
}

.active {
  transition: 0.3s;
  transform: translateX(0%);
  opacity: 1;
}

.box {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-top: 10px;
}

.status h1 {
  font-size: 1rem;
  text-align: center;
}
.status {
  width: 100%;
  color: #fff;
  /* font-weight: bold; */
  background: #000;
  margin-right: 5px;
  padding: 4px 0;
  border-radius: 4px;
}
.rst-btn {
  padding: 5px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  background: yellow;
  color: #000;
  font-weight: bold;
  outline: none;
  border: none;
  width: 160px;
  cursor: pointer;
}

.square:hover {
  background: #dadada;
}
#board .square {
  font-family: "Luckiest Guy", cursive !important;
  font-size: 1.6rem !important;
}

.grid-con {
  display: flex;
  justify-content: space-between;
  column-gap: 10px;
}
.grid-con > details {
  width: 50% !important;
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 5px;
}
.social-links a {
  font-size: 1.6rem;
  border-radius: 50%;
  color: #000;
}

.social-links a:first-child {
  color: blue;
}

@media screen and (max-width: 560px) {
  .info {
    top: 1%;
    left: 50%;
    right: auto;
    transform: translate(-50%, 0) translateX(120%);
    font-size: 1.4rem;
  }
  .info.active {
    transform: translate(-50%, 0) translateX(0%);
  }
}
