@import url("https://fonts.googleapis.com/css2?family=Comforter+Brush&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap");
@font-face {
  font-family: fuzzyBubbles;
  src: url("./fonts/FuzzyBubbles.ttf");
}
@font-face {
  font-family: veggy;
  src: url("./fonts/veggy.ttf");
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #222831;
  --primary-color: #00fff5;
  --secondary-color: #393e46;
  --border-color: #4e545c;
}

body {
  background-color: var(--bg-color);
  font-family: fuzzyBubbles;
  color: white;
}

.notification-container {
  z-index: 100;
  position: fixed;
  top: 30px;
  width: 100%;
  text-align: center;
  transform: translateY(-80px);
  transition: transform 400ms ease-out;
}
.notification-container.show-notification {
  transform: translateY(0px);
}
.notification-container .notification {
  width: fit-content;
  background-color: #d4edda;
  border: #c3e6cb 1px solid;
  color: #155724;
  border-radius: 5px;
  padding: 5px 5px;
  font-family: roboto;
  font-weight: 500;
  font-size: 0.9rem;
}

.loader-bg {
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.599);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader-bg img {
  width: 4rem;
}

.room-popup-bg {
  background-color: #000000;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  top: -1000px;
  opacity: 0;
}
.room-popup-bg.show {
  top: 0;
  transition: opacity 400ms;
  opacity: 0.4;
}

.room-popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0);
  z-index: 101;
}
.room-popup-container.show {
  transition: transform 400ms;
  transition-delay: 300ms;
  transform: scale(1);
}
.room-popup-container .popup {
  width: 100%;
  max-width: 500px;
  background: white;
  text-align: center;
  padding: 1rem 3rem 2rem;
  position: relative;
  margin: 0 2rem;
}
.room-popup-container .popup .popup-close-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  border: 2px solid var(--border-color);
  border-radius: 100px;
  font-size: 0rem;
  padding: 7px;
  background-color: white;
}
.room-popup-container .popup .popup-close-btn:hover {
  cursor: pointer;
}
.room-popup-container .popup .popup-close-btn img {
  width: 15px;
}
.room-popup-container .popup .popup-title {
  text-align: center;
  font-size: 1.5rem;
  color: #555555;
  margin-bottom: 2rem;
}
.room-popup-container .popup .create-room {
  padding-bottom: 2rem;
  border-bottom: 1px solid #bfbfbf;
}
.room-popup-container .popup .join-room {
  padding-top: 2rem;
}
.room-popup-container .popup .join-room .join-room-btn {
  margin-top: 1rem;
}
.room-popup-container .popup .join-room .input-warning span {
  font-size: 0.7rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #ff4b4b;
}
.room-popup-container .popup .join-room input {
  border: 1px solid var(--border-color);
  padding: 10px 10px;
  text-align: center;
  width: 100%;
  font-size: 0.9rem;
  font-family: fuzzyBubbles;
}
.room-popup-container .popup .join-room input:focus {
  outline: none;
}

.header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  justify-content: space-between;
  align-items: center;
  padding: 3% 5% 0;
  width: 100%;
}
.header .col-1, .header .col-2, .header .col-3 {
  width: 100%;
}
.header .col-1 {
  display: flex;
  justify-content: start;
}
.header .col-2 {
  display: flex;
  justify-content: center;
}
.header .col-3 {
  display: flex;
  justify-content: end;
}
.header .user-details {
  height: fit-content;
  width: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid lightgray;
  padding: 5px 15px;
  border-radius: 20px;
  position: relative;
}
.header .user-details .player-xo {
  position: absolute;
  bottom: calc(100% + -1.5rem);
}
.header .user-details .player-xo img {
  width: 2.25rem;
}
.header .user-details .player-xo .x-icon, .header .user-details .player-xo .o-icon {
  display: none;
}
.header .user-details .player-xo.show-x .x-icon {
  display: block;
}
.header .user-details .player-xo.show-x .o-icon {
  display: none;
}
.header .user-details .player-xo.show-o .o-icon {
  display: block;
}
.header .user-details .player-xo.show-o .x-icon {
  display: none;
}
.header .user-details.player-details .player-xo {
  left: -0.7rem;
}
.header .user-details.opponent-details .player-xo {
  right: -0.5rem;
}
.header .user-details .whoAreYou {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 10px;
  color: #c9c9c9;
  font-size: 0.7rem;
}
.header .user-details .change-username {
  position: absolute;
  top: calc(100% + 4px);
  right: 10px;
  color: #c8c8c8;
  cursor: pointer;
  font-size: 0.7rem;
}
.header .user-details .user-icon {
  height: 3rem;
  margin-right: 10px;
  background-color: #fff;
  border-radius: 100px;
}
.header .user-details .user-icon svg,
.header .user-details .user-icon img {
  width: 3rem;
  height: 3rem;
}
.header .user-details .username {
  font-size: 0.7rem;
  position: relative;
}
.header .change-username-container {
  position: absolute;
  top: calc(100% + 15px);
  width: 100%;
}
.header .change-username-container input {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 5px 5px;
  font-size: 0.7rem;
  margin-bottom: 10px;
  background: transparent;
  color: white;
}
.header .change-username-container input:focus {
  outline: none;
}
.header .change-username-container button {
  background-color: transparent;
  color: white;
  padding: 0.3rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 1px;
  font-family: "fuzzyBubbles";
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
}
.header .change-username-container button:focus {
  outline: none;
}
.header .change-username-container button:hover {
  color: var(--bg-color);
  background: white;
}
.header .heading-wrapper {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header .heading-wrapper .heading {
  height: fit-content;
  text-align: center;
  color: var(--primary-color);
  font-size: 5rem;
  font-weight: 500;
  word-spacing: -12px;
  font-family: "veggy";
}

.button-primary {
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background-color: transparent;
  color: white;
  font-family: "fuzzyBubbles";
  padding: 0.8rem 0;
  margin: 0.5rem 0;
  width: 100%;
  max-width: 400px;
}
.button-primary:focus {
  outline: none;
}
.button-primary:hover {
  background-color: var(--secondary-color);
  cursor: pointer;
}

.button-secondary {
  background: white;
  color: white;
  background-color: var(--secondary-color);
  font-family: fuzzyBubbles;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 0.7rem 10px;
  width: 70%;
}
.button-secondary:hover {
  cursor: pointer;
}

.container {
  margin: 0rem auto 0;
  max-width: 600px;
}
.container .buttons-wrapper {
  margin-top: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.container .board-container {
  width: 100%;
  margin-top: 3rem;
  text-align: center;
}
.container .board-container .turn-info {
  font-size: 1.3rem;
  color: white;
  width: 100%;
  margin-bottom: 1.5rem;
}
.container .board-container .footer .leave-room-btn {
  text-align: center;
  margin-top: 10px;
  width: fit-content !important;
  padding-right: 2rem;
  padding-left: 2rem;
}
.container .board-container .svg-container {
  padding-bottom: 50px;
}
.container .board-container .svg-container .cross,
.container .board-container .svg-container .circle {
  opacity: 0;
  transition: opacity 300ms;
}
.container .board-container .svg-container .cross.show,
.container .board-container .svg-container .circle.show {
  opacity: 1;
}
.container .board-container .svg-container .frame {
  cursor: pointer;
}

.d-none {
  display: none !important;
}

.hide {
  opacity: 0 !important;
}

@media screen and (max-width: 900px) {
  .header {
    grid-template-columns: 1fr 1fr;
    column-gap: 5px;
    row-gap: 20px;
  }

  .col-2 {
    grid-column: 1/4;
    grid-row: 1/2;
  }

  .col-1 {
    grid-column: 1/2;
    grid-row: 2/3;
  }

  .col-3 {
    grid-column: 3/4;
    grid-row: 2/3;
  }
}

/*# sourceMappingURL=styles.css.map */
