* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    background-image: url(../assets/img/backgorund-1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    color: #000000;
}

.container {
    width:  90%;
    max-width: 1440px;
    margin: 0 auto;
}

.app__tic-tac {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 24px;
    font-family: cursive;
}

.header {
    flex: 0 0 auto;
    margin-top: 10px;
}

.header__wrapper {
    text-align: center;
}

.header__menu-btn {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu__btn {
    width: 250px;
    height: 50px;
    font-size: 20px;
    border-radius: 10px;
    border: 2px solid #000;
    background-color: rgba(255, 255, 255, 0.445);
    cursor: pointer;
    font-family: cursive;
    transition: 1s;
}

.menu__btn:first-child {
    margin-bottom: 10px;
}

.menu__btn:hover {
    background-color: #17d4ff8f;
}

.main {
    flex: 1 0 auto;
    transition: 1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main__wrapper {
    width: 460px;
    margin: 0 auto;
}

.main__area {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.area__cell {
    background-color: rgba(0, 80, 90, 0.315);
    box-sizing: border-box;
    border-radius: 10px;
    width: 150px;
    height: 150px;
    font-size: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}  

.area__cell.active {
    transition: 0.5s;
    background-color: #f32876;
    color: rgb(163, 163, 163);
    animation: shakeWin 3s infinite ease-out;
}

@keyframes shakeWin {
    from {
        transform:translateY(0);
    }
    10% {
        transform: translateY(5px);
    }
    20% {
        transform: translateY(-30px);
    }
    30% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-40px);
    }
    50% {
        transform: translateY(0);
    }
    60% {
        transform: translateY(-30px);
    }
    70% {
        transform: translateY(0);
    }
    80% {
        transform: translateY(-20px);
    }
    85% {
        transform: translateY(0);
    }
    90% {
        transform: translateY(-10px);
    }
    to {
      transform: translateY(0);
    }
}

.current__player {
    text-align: center;
    font-size: 20px;
    height: 30px;
    padding: 5px 0;
}

.main__pop_up {
    width: 100%;
    height: 100%;
    position: fixed;
    top:0;
    right: 0;
    bottom: 0;
    left:0; 
    display: none;
}

.main__pop_up.active__on__pop,
.main__pop_up.active__on__table,
.main__pop_up.active__on__setting {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pop_up__wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top:0;
    right: 0;
    bottom: 0;
    left:0;
    background-color: rgba(0, 0, 0, 0.438);
    backdrop-filter: blur(2px);
}

.main__pop_up.active__on__pop .pop_up__view,
.main__pop_up.active__on__table .menu__table__view,
.main__pop_up.active__on__setting .setting__view {
    display: flex;
}


.pop_up__view,
.menu__table__view,
.setting__view {
    z-index: 2;
    width: 350px;
    height: 350px;
    border: 2px solid rgba(255, 255, 255, 0.589);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.438);
    backdrop-filter: blur(2px);
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.pop_up__view p {
    margin: 24px 0;
}

.pop_up__close__btn {
    padding: 14px 24px;
    font-size: 20px;
    border-radius: 10px;
    border: 2px solid #000;
    background-color: rgba(255, 255, 255, 0.445);
    cursor: pointer;
    font-family: cursive;
    transition: 1s;
}

.pop_up__close__btn:hover {
    background-color: #17d4ff8f;
    transform: scale(1.2);
}

.menu__table__view,
.setting__view {
    width: 550px;
    height: 650px;
}

.setting__view {
    width: 750px;
    height: 650px;
}

.menu__table__view h3, 
.setting__view h3 {
    padding: 10px;
    flex: 0 0 auto;
}

.menu__table__content,
.setting__content {
    flex: 1 0 auto;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.table__content__list {
    display: flex;
    justify-content: space-around;
}

.list__item {
    border-radius: 6px;
    padding: 2px 5px;
    text-align: center;
}

.table__content__list:nth-child(odd) .list__item{
    background-color: #57089742;
}

.table__content__list:nth-child(even) .list__item{
    background-color: #0b399e4b;
}

.list__item:first-child {
    width: 36px;
    padding: 2px 0;
}

.list__item:nth-child(2) {
    flex-basis: 50%;
    text-align: left;
}

.list__item:last-child {
    width: 154px;
}

.menu__table__close__btn,
.setting__close__btn {
    flex: 0 0 auto;
    margin: 10px 0;
}

.setting__add__name,
.setting__change {
    border: 2px solid #000;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    text-align: left;
    font-size: 20px;
}

.setting__add__name p,
.setting__change p {
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 10px;
}

.name__player-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 25px;
}

.name__player-item input {
    padding: 5px;
    flex-basis: 50%;
    border: transparent;
    border-radius: 5px;
    font-family: cursive;
    font-size: 18px;
    background-color: #ffffffad;
    text-align: center;
}

.setting__add__name label,
.audio__item label {
    cursor: pointer;
}

.setting__add__name label:hover,
.audio__item label:hover {
    color: #ffffffb9;
}

.change__audio {
    display: flex;
    justify-content: space-between;
}

.change__audio p {
    font-size: 20px;
}

.audio__item {
    padding: 10px;
    width: 300px;
    text-align: center;
}

.audio__item__input {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.audio__item label {
    margin-right:20px;
}

.audio__item input {
    width: 20px;
    height: 20px;
    padding-top: 10px;
    cursor: pointer;
}

.setting__reset {
    max-width: 600px;
    width: 90%;
    margin-top: 20px;
}

.setting__reset:hover {
    background-color: #7a01309f;
    color: #fff;
}

.footer {
    flex: 0 0 auto;
    font-family: cursive;
}

.footer__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__author-copy span {
    padding: 0 20px;
}

.footer__author-copy a {
    color: rgb(0, 0, 0);
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
    transition: 0.6s;
}

.footer__author-copy a:hover {
    color: #ffffff;
}

.footer__school-logo {
    width: 135px;
    height: 50px;
    transition: 0.6s;
    padding: 10px 0;
}

.footer__school-logo:hover {
    background-color: rgba(255, 255, 255, 0.281);
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.confetti.active {
  display: flex;
}

.confetti {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  width: 100%;
  height: 800px;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 12px;
  height: 24px;
  background: #ffd300;
  top: 0;
  opacity: 0;
}
.confetti-piece:nth-child(1) {
  left: 7%;
  transform: rotate(-59deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 129ms;
          animation-delay: 129ms;
  -webkit-animation-duration: 985ms;
          animation-duration: 985ms;
}
.confetti-piece:nth-child(2) {
  left: 14%;
  transform: rotate(-56deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 200ms;
          animation-delay: 200ms;
  -webkit-animation-duration: 1144ms;
          animation-duration: 1144ms;
}
.confetti-piece:nth-child(3) {
  left: 21%;
  transform: rotate(42deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 68ms;
          animation-delay: 68ms;
  -webkit-animation-duration: 999ms;
          animation-duration: 999ms;
}
.confetti-piece:nth-child(4) {
  left: 28%;
  transform: rotate(2deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 424ms;
          animation-delay: 424ms;
  -webkit-animation-duration: 787ms;
          animation-duration: 787ms;
}
.confetti-piece:nth-child(5) {
  left: 35%;
  transform: rotate(-59deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 196ms;
          animation-delay: 196ms;
  -webkit-animation-duration: 1062ms;
          animation-duration: 1062ms;
}
.confetti-piece:nth-child(6) {
  left: 42%;
  transform: rotate(36deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 25ms;
          animation-delay: 25ms;
  -webkit-animation-duration: 983ms;
          animation-duration: 983ms;
}
.confetti-piece:nth-child(7) {
  left: 49%;
  transform: rotate(49deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 431ms;
          animation-delay: 431ms;
  -webkit-animation-duration: 729ms;
          animation-duration: 729ms;
}
.confetti-piece:nth-child(8) {
  left: 56%;
  transform: rotate(-20deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 16ms;
          animation-delay: 16ms;
  -webkit-animation-duration: 749ms;
          animation-duration: 749ms;
}
.confetti-piece:nth-child(9) {
  left: 63%;
  transform: rotate(7deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 363ms;
          animation-delay: 363ms;
  -webkit-animation-duration: 949ms;
          animation-duration: 949ms;
}
.confetti-piece:nth-child(10) {
  left: 70%;
  transform: rotate(-76deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 402ms;
          animation-delay: 402ms;
  -webkit-animation-duration: 1194ms;
          animation-duration: 1194ms;
}
.confetti-piece:nth-child(11) {
  left: 77%;
  transform: rotate(-79deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 223ms;
          animation-delay: 223ms;
  -webkit-animation-duration: 1101ms;
          animation-duration: 1101ms;
}
.confetti-piece:nth-child(12) {
  left: 84%;
  transform: rotate(60deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 423ms;
          animation-delay: 423ms;
  -webkit-animation-duration: 1013ms;
          animation-duration: 1013ms;
}
.confetti-piece:nth-child(13) {
  left: 91%;
  transform: rotate(-68deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
          animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 193ms;
          animation-delay: 193ms;
  -webkit-animation-duration: 874ms;
          animation-duration: 874ms;
}

.confetti-piece:nth-child(13n + 1) {
    left: 91%;
    transform: rotate(-68deg);
    -webkit-animation: makeItRain 1000ms infinite ease-out;
            animation: makeItRain 1000ms infinite ease-out;
    -webkit-animation-delay: 193ms;
            animation-delay: 193ms;
    -webkit-animation-duration: 874ms;
            animation-duration: 874ms;
  }

.confetti-piece:nth-child(odd) {
  background: #17d3ff;
}
.confetti-piece:nth-child(even) {
  z-index: 1;
}
.confetti-piece:nth-child(4n) {
  width: 5px;
  height: 12px;
  -webkit-animation-duration: 2000ms;
          animation-duration: 2000ms;
}
.confetti-piece:nth-child(3n) {
  width: 3px;
  height: 10px;
  -webkit-animation-duration: 2500ms;
          animation-duration: 2500ms;
  -webkit-animation-delay: 1000ms;
          animation-delay: 1000ms;
}
.confetti-piece:nth-child(4n-7) {
  background: #ff4e91;
}

@-webkit-keyframes makeItRain {
  from {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  to {
    transform: translateY(800px);
  }
}

@keyframes makeItRain {
  from {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  to {
    transform: translateY(800px);
  }
}