main {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#help {
    position: absolute;
    right: 74px;
    top: 5px;
    cursor: pointer;
    font-size: 20px;
    color: #03062a;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
}

.helpButton {
    color: #414141;
    text-decoration: underline;
    cursor: pointer;
    width: fit-content;
}

#leaderboardIcon {
    position: absolute;
    right: 115px;
    top: 5px;
    cursor: pointer;
}

#leaderboardIcon svg {
    height: 32px;
    width: auto;
}

.intro, .switch, #help, #leaderboardIcon {
    z-index: 3;
}

.intro svg {
    width: 100%;
}

#introText path:nth-child(2) {
    stroke-dasharray: 529;
    stroke-dashoffset: 529;
    animation: intro-anim 2s ease forwards;
}

#introText path:nth-child(3) {
    stroke-dasharray: 497.67;
    stroke-dashoffset: 497.67;
    animation: intro-anim 2s ease forwards 0.3s;
}

#introText path:nth-child(4) {
    stroke-dasharray: 527;
    stroke-dashoffset: 527;
    animation: intro-anim 2s ease forwards 0.3s;
}

#introText path:nth-child(5) {
    stroke-dasharray: 249;
    stroke-dashoffset: 249;
    animation: intro-anim 2s ease forwards 0.6s;
}

#introText path:nth-child(6) {
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    animation: intro-anim 2s ease forwards 0.9s;
}

#introText path:nth-child(7) {
    stroke-dasharray: 571.94;
    stroke-dashoffset: 571.94;
    animation: intro-anim 2s ease forwards;
}

#introText path:nth-child(8) {
    stroke-dasharray: 536;
    stroke-dashoffset: 536;
    animation: intro-anim 2s ease forwards 0.2s;
}

#introText path:nth-child(9) {
    stroke-dasharray: 527;
    stroke-dashoffset: 527;
    animation: intro-anim 2s ease forwards 0.3s;
}

#introText path:nth-child(10) {
    stroke-dasharray: 415;
    stroke-dashoffset: 415;
    animation: intro-anim 2s ease forwards 0.4s;
}

#introText path:nth-child(11) {
    stroke-dasharray: 328;
    stroke-dashoffset: 328;
    animation: intro-anim 2s ease forwards 0.5s;
}

#introText path:nth-child(12) {
    stroke-dasharray: 249;
    stroke-dashoffset: 249;
    animation: intro-anim 2s ease forwards 0.6s;
}

#introText path:nth-child(13) {
    stroke-dasharray: 451;
    stroke-dashoffset: 451;
    animation: intro-anim 2s ease forwards 0.7s;
}

#introText path:nth-child(14) {
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    animation: intro-anim 2s ease forwards 0.8s;
}

@keyframes swing {
    from, to, 50% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(5px);
    }
}

.availableRow .unhide {
    animation: availableAlphabet 1s linear infinite;
}

@keyframes availableAlphabet {
    from {
        transform: scale3d(1, 1, 1);
    }
    50% {
        transform: scale3d(1.15, 1.15, 1.15);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}

@keyframes intro-anim {
    to {
        stroke-dashoffset: 0;
    }
}

.glass {
    background: white;
    width: 70%;
    min-height: 80vh;
    border-radius: 20px;
    background: linear-gradient(to right bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
    z-index: 2;
    backdrop-filter: blur(2rem);
    display: none;
}

.circle1, .circle2 {
    background: white;
    height: 15rem;
    width: 15rem;
    border-radius: 50%;
    position: absolute;
}

.circle1 {
    top: 5%;
    right: 10%;
    height: 20rem;
    width: 20rem;
    animation: animateCircle1 30s ease infinite;
}

@keyframes animateCircle1 {
    from, to {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-30px, 10px);
    }
    50% {
        transform: translate(-20px, 50px);
    }
    75% {
        transform: translate(5px, 20px);
    }
}

.circle2 {
    bottom: 5%;
    left: 10%;
    animation: animateCircle2 20s ease infinite;
}

@keyframes animateCircle2 {
    from, to {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-10px, -40px);
    }
    50% {
        transform: translate(-5px, -60px);
    }
    75% {
        transform: translate(-3px, -30px);
    }
}

.mainDisplay {
    text-align: center;
    margin: 0;
    min-height: 80vh;
}

.scoreBoard {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: linear-gradient(to right bottom, rgb(103 222 209 / 0%), rgb(255 255 255 / 41%));
    border-radius: 0 20px 20px 0;
}

.control {
    padding: 100px 0px 0 0;
}

.displayBox {
    background-size: 25px 25px;
    display: flex;
    justify-content: center;
}

#GameOn {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

table {
    border-collapse: separate;
    border-spacing: 4px 20px;
}

table td {
    min-width: 50px;
    height: 60px;
    border: 1px solid #ffffff;
    font-size: 35px;
    font-family: monospace;
    text-transform: uppercase;
    cursor: pointer;
}

#leaderboard table tr {
    text-align: center;
}

#leaderboard .modal-body tbody td {
    font-size: 16px;
    text-transform: capitalize;
    cursor: default;
    height: initial;
}

#leaderboard .newrecord {
    background: linear-gradient( 45deg, #ff00eb, red);
    color: #ffffff;
    margin-left: 5px;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
}

.unsolved td {
    color: transparent;
}

.solved td {
    background: linear-gradient(227deg, #00b0a8, #4273ff);
}

.controlPanel, .nextButton, .scoreBoard {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.controlPanel {
    margin: auto;
}

.nextButton {
    font-weight: 600;
    font-size: 2rem;
    opacity: 0.8;
    cursor: pointer;
    display: none;
    position: absolute;
    right: 10px;
}

.endGame {
    cursor: pointer;
    display: none;
    opacity: 0.8;
    position: absolute;
    right: 15px;
    bottom: 5px;
    font-size: 18px;
}

.nextButton:active {
    font-size: 1.9rem;
}

.controlPanel input, .controlPanel button {
    width: 70%;
    padding: 8px 15px !important;
}

.controlPanel input:focus {
    outline: none;
}

.controlPanel button, #startGameBtn button {
    text-transform: uppercase;
    outline: none;
    border: none;
}

.controlPanel button:active {
    width: 68%;
}

.controlPanel input {
    font-size: 19px;
    border-radius: 3px;
    border: none;
    color: #0073aa;
    text-transform: uppercase;
    font-weight: bold;
}

.unhiddenCard {
    color: rgb(255, 255, 255) !important;
}

.lastBox {
    background: linear-gradient(45deg, #da12ff, #ff3131) !important;
    -webkit-animation: lastBoxAnimate 1s ease infinite;
    animation: lastBoxAnimate 1s ease infinite;
}

@keyframes lastBoxAnimate {
    0% {
        -webkit-transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.2);
    }
    100% {
        -webkit-transform: scale(1);
    }
}

.wrongAnswer {
    -webkit-animation: wrongAnswerAnimate 1s ease;
    animation: wrongAnswerAnimate 1s ease;
}

@keyframes wrongAnswerAnimate {
    from, to {
        transform: translate3d(0, 0, 0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translate3d(-10px, 0, 0);
    }
    20%, 40%, 60%, 80% {
        transform: translate3d(10px, 0, 0);
    }
}

#team {
    margin-top: 40px;
}

.teamMsg h2, .teamSelect {
    display: inline-block;
}

.teamSelect {
    margin-left: 45px;
}

.teamSelect input {
    height: 25px;
    width: 25px;
}

.teamSelect label {
    font-size: 30px;
    margin-right: 30px;
    margin-left: 5px;
}

#teamName, #teamName #startGameBtn {
    margin: 30px auto;
}

div#teamName input {
    border-radius: 25px;
}

#teamName div {
    width: 70%;
    margin: 15px auto;
}

#teamName div>span {
    font-size: 30px;
    margin-right: 20px;
}

#startGameBtn button {
    width: 79%;
    margin-left: 60px;
}

.team2, .team3, .team4, .controlPanel, #GameOn, .scoreBoard, #checkWordBox {
    display: none;
}

.displayFlex {
    display: flex !important;
}

.scoreBoard div {
    font-size: 16px;
    margin: 20px 0;
    padding: 10px;
    border-radius: 35px;
    width: fit-content;
    text-transform: capitalize;
    font-weight: bold;
}

.scoreBoard {
    text-align: right;
}

.scoreBoard div span {
    margin-right: 5px;
}

#teamTurn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background: linear-gradient(to left top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
    padding: 65px 0;
    font-size: 20px;
    border-radius: 10px;
    text-transform: capitalize;
}

#checkWordBox div:nth-child(1) {
    margin-bottom: 20px;
    font-weight: bold;
}

#teamGuessWord {
    text-transform: capitalize;
    font-size: 18px;
}

.currentRow {
    -webkit-animation: currentRowAnimate 2s ease infinite;
    animation: currentRowAnimate 2s ease infinite;
}

@keyframes currentRowAnimate {
    from {
        transform: scale3d(1, 1, 1);
    }
    50% {
        transform: scale3d(1.05, 1.05, 1.05);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}

.fullChainForm tr:nth-child(1) {
    animation: lastBoxAnimate 1s ease;
}

.fullChainForm tr:nth-child(2) {
    animation: lastBoxAnimate 1s ease;
    animation-iteration-count: 2;
}

.fullChainForm tr:nth-child(3) {
    animation: lastBoxAnimate 1s ease 1s;
    animation-iteration-count: 2;
}

.fullChainForm tr:nth-child(4) {
    animation: lastBoxAnimate 1s ease 2s;
    animation-iteration-count: 2;
}

.fullChainForm tr:nth-child(5) {
    animation: lastBoxAnimate 1s ease 3s;
    animation-iteration-count: 2;
}

.fullChainForm tr:nth-child(6) {
    animation: lastBoxAnimate 1s ease 4s;
}

@keyframes fullChainAnimate {
    from, to {
        transform: scale3d(1, 1, 1);
    }
    50% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
}

.switch {
    position: absolute;
    display: inline-block;
    width: 60px;
    height: 34px;
    right: 5px;
    top: 5px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #03062a;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #ffc487;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #3caea9;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#leaderBoardWarnMsg {
    text-align: center;
    font-size: 14px;
    padding: 5px;
    background: #fff9ae;
    border-radius: 5px;
    color: #7f4000;
}

#timer {
    height: 20px;
    width: 35px;
}

#timerInput {
    display: none;
}

#timerVal {
    width: 90px;
    margin: auto;
    border-radius: 2px !important;
    text-align: center;
}

#curTimer span {
    background: #ffffff9c;
    padding: 10px;
}

@media only screen and (max-width: 480px) {
    .glass {
        width: 100%;
        margin-top: 55px;
    }
    .teamSelect input {
        height: 20px;
        width: 20px;
    }
    .teamSelect label {
        margin-right: 20px;
    }
    table td {
        min-width: 35px;
        height: 50px;
        font-size: 30px;
    }
    .controlPanel {
        margin-bottom: 80px;
    }
    .endGame {
        left: 10px;
    }
    .nextButton {
        bottom: 0;
    }
}

@media only screen and (min-width: 480px) and (max-width: 768px) {
    .glass {
        width: 90%;
        margin-top: 55px;
    }
    table td {
        min-width: 44px;
        height: 50px;
        font-size: 30px;
    }
    #teamTurn {
        width: 70%;
        margin: auto;
    }
    .controlPanel {
        margin-bottom: 80px;
    }
    .endGame {
        left: 10px;
    }
    .nextButton {
        bottom: 0;
    }
    .controlPanel input, .controlPanel button {
        width: 50%;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .glass, .mainDisplay {
        margin-top: 55px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1440px) {
    .glass {
        width: 95%;
        margin: 0 15px;
    }
}

@media only screen and (min-width: 1440px) {
    .glass {
        width: 1150px;
    }
}