/* CSS for GamesXBlock */

/*Universal styles------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.title-initial {
    display: flex;
    padding: 18px 281px;
    justify-content: center;
    align-items: center;
    gap: 9px;

    border-radius: 4px;
    border: 1px solid var(--light-500, #E1DDDB);
    background: #FFF;

    cursor: pointer;
}

.background-block {
    display: flex;
    height: 533px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;

    border-radius: 8px;
    background: var(--extras-white, #FFF);
    box-shadow: 0px 8px 48px 0px rgba(0, 0, 0, 0.08), 0px 20px 40px 0px rgba(0, 0, 0, 0.08);
}

.game-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
}

.title-persistent {
    display: flex;
    align-items: center;
    gap: 6px;

    color: var(--primary-500, #00262B);

    /* Heading/H3 */
    font-size: 22px;
    font-family: Inter;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
}

.close-button {
    display: flex;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
}

.close-background {
    display: flex;
    width: 36px;
    height: 36px;
    padding: 6px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    border-radius: 9999999px;
}

.close-image {
    width: 24px;
    height: 24px;
    flex-shrink: 0;

    cursor: pointer;
}

.start-block {
    display: flex;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;

    border-radius: 8px;
}

.game-description {
    color: var(--primary-500, #00262B);
    text-align: center;
    font-size: 20px;
    font-family: Inter;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
}

.start-button-flashcards, .start-button-matching {
    display: flex;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;

    background: var(--primary-500, #00262B);

    color: #FFF;
    font-size: 18px;
    font-family: Inter;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;

    cursor: pointer;
}

.flashcard-footer, .matching-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.spacer {
    width: 24px;
    height: 24px;
}

.help {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.help-outline {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.tooltip {
    width: 150px;
    position: absolute;
    bottom: 140%;
    opacity: unset;
    left: -115px;
    float: left;
    right: 0;
    top: -80px;
    background: var(--core-elm, #00262B);
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 85%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--core-elm, #00262B) transparent transparent transparent;
}

.tooltip-text {
    color: var(--extras-white, #FFF);
    text-align: center;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;

    display: flex;
    padding: 4px 8px;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    border-radius: 4px;
    background: var(--core-elm, #00262B);
}

@keyframes confetti {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(0vw, 85vh) rotate(720deg); opacity: 0; }
}

.confetti {
    position: fixed;
    top: 0;
    pointer-events: none;
    opacity: 0;
}

/*Flashcard styles------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.flashcard-block {
    display: flex;
    height: 373px;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    align-self: stretch;

    border-radius: 8px;
    border: 2px solid var(--light-300, #F2F0EF);

    cursor: pointer;
}

.image {
    max-height: 200px;
    flex-shrink: 0;

    /*background: url(<path-to-image>), lightgray 0px -18.962px / 100% 118.363% no-repeat;*/
}

.card-text {
    color: var(--primary-500, #00262B);
    /*leading-trim: both;
    text-edge: cap;
    */
    font-size: 18px;
    font-family: Inter;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
}

.flashcard-navigation {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flashcard-left-button, .flashcard-right-button {
    display: flex;
    width: 36px;
    height: 36px;
    padding: 6px;
    justify-content: center;
    align-items: center;

    border-radius: 999999984306749400px;
    background: #F2F0EF;

    cursor: pointer;
}

.flashcard-left-image, .flashcard-right-image {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.flashcard-navigation-text {
    color: var(--primary-500, #00262B);
    text-align: center;
    /*leading-trim: both;
    text-edge: cap;
    */
    font-size: 20px;
    font-family: Inter;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

/*Matching styles------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.matching-block {
    display: flex;
    height: 610px;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.matching-column-l, .matching-column-r {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1 0 0;
    align-self: stretch;
}

@keyframes incorrect {
    0% {border: 2px solid var(--danger-500, #AB0D02); background-color: #FCF1F4};
    100% {border: initial; background-color: initial};
}

.matching-container, .matching-container-empty {
    display: flex;
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    align-self: stretch;

    flex-direction: column;

    border-radius: 8px;
    border: 2px solid var(--light-300, #F2F0EF);

    color: var(--primary-500, #00262B);
    text-align: center;
    /*
    leading-trim: both;
    text-edge: cap;
    */
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    animation-duration: 1.3s;

    cursor: pointer;
}

@keyframes correct {
    0% {border: 2px solid var(--success-500, #0D7D4D); background-color: var(--success-100, #F2FAF7); color: var(--primary-500, #00262B)};
    100% {border: initial; background-color: initial; color: initial};;
}

.matching-container-empty {
    cursor: initial;
    color: white;
    user-select: none;
    border: 2px solid #ffffff;
}

.matching-progress-container {
    display: flex;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: #fff;
    flex-direction: column;
    align-items: center;
}

.matching-progress-indicator {
    position: relative;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    background: conic-gradient(#0d7d4d 0deg, #f2f0ef 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.matching-progress-indicator::before {
    content: "";
    position: absolute;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: #fff;
}

.matching-progress-text {
    position: relative;
    color: var(--primary-500, #00262B);
    text-align: center;
    /*
    leading-trim: both;
    text-edge: cap;
    */
    font-family: Inter;
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -1.19px;
}

.matching-timer {
    color: var(--primary-500, #00262B);
    text-align: center;
    /*
    leading-trim: both;
    text-edge: cap;
    */
    font-family: Inter;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -1.96px;
}

.matching-end-block {
    display: flex;
    padding: 0px 77px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
}

.matching-end-congratulations {
    color: var(--primary-700, #002121);
    text-align: center;
    /*
    leading-trim: both;
    text-edge: cap;
    */
    font-family: Inter;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 36px; /* 112.5% */
}

.matching-replay-button {
    display: flex;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;

    background: var(--primary-500, #00262B);

    color: #FFF;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 133.333% */

    cursor: pointer;
}

.matching-end-standard-text-block {
    display: flex;
    height: 610px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.matching-end-standard-text, .matching-end-standard-time {
    color: var(--primary-500, #00262B);
    text-align: center;
    /*
    leading-trim: both;
    text-edge: cap;
    */
    font-family: Inter;
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px; /* 127.273% */
}

.matching-end-standard-time {
    font-weight: 700;
}

.matching-end-standard-best-block {
    display: flex;
    padding: 19px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;

    border-radius: 8px;
    background: rgba(240, 204, 0, 0.20);
}

.matching-standard-award {
    width: 28px;
    height: 28px;
}

.matching-end-standard-best-text, .matching-end-standard-best-time {
    color: var(--extras-black, #000);
    text-align: center;
    /*
    leading-trim: both;
    text-edge: cap;
    */
    font-family: Inter;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.matching-end-standard-best-time {
    text-align: right;
}

.matching-record-text-block {
    display: inline-flex;
    height: 610px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.matching-end-record-time, .matching-end-record-message {
    color: var(--primary-500, #00262B);
    text-align: center;
    /*
    leading-trim: both;
    text-edge: cap;
    */
    font-family: Inter;
    font-size: 88px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px; /* 31.818% */
}

.matching-end-record-message {
    font-size: 28px;
    font-weight: 700;
}

.matching-end-record-previous-block {
    display: flex;
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;

    border-radius: 8px;
    background: rgba(242, 240, 239, 0.60);
}

.matching-end-record-previous-text, .matching-end-record-previous-time {
    color: var(--gray-700, #454545);
    /*
    leading-trim: both;
    text-edge: cap;
    */
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.matching-end-record-previous-time {
    text-align: right;
}

.matching-end-record-confetti-block {
    width: 616.382px;
    height: 685.116px;
}