@import 'style.css';

.heading {
    color: var(--body-text-color);
    margin-bottom: 16px;
}

.sub_heading {
    /* text-align: center; */
    color: var(--body-text-color);
    font-size: 18px;
    font-weight: 500;
}

.seo_content {
    color: var(--body-text-color);
    font-weight: 500;
}
.divider{
    height: 1px;
    background-color: var(--light-grey-color);
    margin-top: 32px;
}
/* riddles */

.riddles-wrapper {
    display: grid;
    grid-auto-flow: column;
    position: relative;
    gap: 32px;
    grid-template-columns: 2fr 1fr;
}

.riddles-left {
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 5px;
}

.riddles-right {
    top: 32px;
    max-height: max-content;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}


.riddles {
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
}

.riddle {
    border-radius: 5px;
    display: grid;
    height: max-content;
    gap: 16px;
}

.riddle .icons {
    display: flex;
    justify-content: space-between;
}

.riddle .question {
    font-weight: 600;
    color: #282f3a;
}

.riddle .answer-area {
    border-radius: 5px;

}

.riddle.active .answer-area {
    border: 1px solid #a3ded9;
}

.riddle .answer {
    display: none;
    line-height: 1.5;
    font-weight: 700;
    color: #1289A7;
    border-radius: 5px;
    padding: 12px;
    letter-spacing: 0.4px;
}

.riddle.active .answer {
    display: block;
}

.riddle.active .theme-btn {
    border-radius: 5px 5px 0px 0px;
}

.riddle .explanation {
    font-size: 15px;
    margin-top: 16px;
}

.other-locales-area {
    padding: 16px;
    border-radius: 5px;
}

.other-locales {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.other-locale {
    width: 100%;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px 16px;
    gap: 8px;
    color: var(--theme-color);
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.other-locale img {
    height: 16px;
}


.other-locale:hover {
    background-color: var(--light-grey-color);
}

@media (min-width: 768px) and (max-width: 991px) {
    .riddles-left {
        padding: 24px;
    }

    .riddles-right {
        top: 24px;
    }
}

@media (max-width: 768px) {
    .heading {
        text-align: center;
    }

    .riddles-wrapper {
        grid-auto-flow: row;
        grid-template-columns: none;
    }

    .riddles-left {
        padding: 0;
        border: none;
    }

    .riddle {
        gap: 12px;
    }

    .riddles-right {
        top: 16px;
    }

    .other-locales-area {
        padding: 16px;
    }

    .other-locales {
        justify-content: start;
    }
}

/* pagination css */

.pagination {
    margin: 32px auto 0px auto;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.page-item.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.page-link {
    position: relative;
    display: block;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    min-width: 38px;
    line-height: 38px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

.page-link.page-icon {
    font-size: 30px;
    border: none;
    margin-bottom: 4px;
}

.page-link:hover {
    z-index: 2;
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.page-link.page-icon:hover {
    background-color: transparent;
}

.page-item {
    display: inline-block;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.page-item.active .page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
}