@import url('https://fonts.googleapis.com/css2?family=Comfortaa&display=swap');

.forum-container {
    font-family: 'Comfortaa', cursive;
}

.text-left {
    text-align: left;
}

/*  /////// /////////////////

  Login sign up form CSS Starts

  /////// ///////////////// */


.modal-close-btn {
    display: inline-table;
    margin: 1px 10px;
    /* width: 50px; */
    /* height: 24px; */
    cursor: pointer;
    /* transition: 0.2s; */
    text-align: end;
}

/* .modal-btn { */
.display_popup_form {
    display: block;
    color: #154a3d;
    background: #a4e5d5;
    /* width: 160px; */
    padding: 6px;
    /* height: 50px; */
    /* margin-top: 10px; */
    margin: 10px;
    /* line-height: 50px; */
    /* font-size: 22px; */
    outline: solid #1f6b58 1px;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    transition: 0.1s ease-in;
}

.display_popup_form:hover {
    /* transform: scale(1.3); */
    filter: drop-shadow(3px 7px 4px rgba(0, 0, 0, 0.2));
    /* font-size: 23px; */
}



.modal-close-btn::before,
.modal-close-btn::after {
    /* content: '';
     position: absolute;
     height: 50px;
     width: 1px;
     background: #1f6b58;
     left: calc(50%-1px);
     transform: rotate(-45deg); */
}

.modal-close-btn::after {
    /* transform: rotate(45deg); */
}

.modal-close-btn:hover {
    /* transform: rotate(90deg) scale(1.1); */
}

.modal-container .modal-content,
.modal-container .modal-backdrop {
    height: 0;
    width: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s ease-in;
}

.modal-container #modal-toggle {
    display: none;
}

.modal-container #modal-toggle:checked~.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease-in;
}

.modal-container #modal-toggle:checked~.modal-content {
    opacity: 1;
    text-align: center;
    background-color: #fff;
    width: 500px;
    height: 490px;
    position: fixed;
    top: 5%;
    left: calc(50% - 250px);
    border-radius: 4px;
    /* z-index: 999; */
    z-index: 99999;
    pointer-events: auto;
    cursor: auto;
    visibility: visible;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.6);
}

@media (max-width: 700px) {
    .modal-container #modal-toggle:checked~.modal-content {
        width: 100%;
        /* height: 100%; */
        height: auto;

        overflow: auto;
        top: 0;
        left: 0;
        border-radius: 0px;
        padding: 0;
    }
}

@media (max-height: 500px) {
    .modal-container #modal-toggle:checked~.modal-content {
        overflow: scroll;
        height: 100%;
    }
}

/* BASIC FUNCTIONALITY .tabs */
.tabs {
    margin: 10px 0;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-wrap: wrap;
}

.tabs>.radio {
    display: none;
}

.tabs>.radio:checked+.table+.tabs-content {
    display: block;
}

.tabs>.table {
    order: -1;
    flex-basis: 50%;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tabs .tabs-content {
    width: 100%;
    display: none;
}

/* END BASIC FUNCTIONALITY .tabs */
/* THEME for .tabs with login & sign-in */
.tabs>.table {
    text-align: center;
    padding: 20px 0;
    border-bottom: solid #a4e5d5 5px;
    cursor: pointer;
}

.tabs>.table:hover {
    background: rgba(164, 229, 213, 0.2);
}

.tabs>.radio:checked+.table {
    background: #a4e5d5;
    cursor: auto;
}

.tabs>.radio:checked+.table span {
    display: inline-block;
    transform: scale(1.2);
    font-weight: 500;
    transition: 0.1s;
}

.tabs>.tabs-content {
    padding: 20px 10px;
}

/* END THEME for .tabs with login & sign-in */
/* START style login & sign up */
.tabs>.tabs-content form {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    -o-flex-direction: column;
    flex-direction: column;
}

.tabs>.tabs-content form#forum_registration input,
.tabs>.tabs-content form#forum_registration select {
    /* padding: 10px; */
    /* margin: 5px 10px 2px; */
    border: solid 1px #1f6b58;
    font-size: 14px;
}

.tabs>.tabs-content form#signIn input {

    font-size: 14px;
    /* padding: 10px; */
    margin: 10px 2px;
}

.tabs>.tabs-content form select {
    width: 12rem;
    /* height: 2.9rem; */
}

@media only screen and (max-width: 600px) {

    .tabs>.tabs-content form#forum_registration input,
    .tabs>.tabs-content form#forum_registration select {
        /* padding: 10px 5px; */
        /* margin: 5px 1px 2px; */
        border: solid 1px #1f6b58;
        font-size: 14px;
    }

    .tabs>.tabs-content form select {
        /* width: 11rem; */
    }

}



.tabs>.tabs-content form label {
    /* margin: 10px 10px 0 10px; */
    margin-top: 10px;
    margin-bottom: 0;
    text-transform: capitalize;
    font-weight: 600;
    color: #4a5252;
}

.tabs>.tabs-content .login_socnet {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    justify-content: space-around;
    -ms-align-items: center;
    align-items: center;
}

.tabs>.tabs-content .login_socnet a {
    color: #000;
    padding: 10px;
    font-size: 40px;
    text-decoration: none;
    transition: 0.2s;
}

.tabs>.tabs-content .login_socnet a:hover {
    transform: scale(1.3);
    filter: drop-shadow(1px 5px 2px rgba(0, 0, 0, 0.3));
}

.tabs>.tabs-content .login_socnet .fa-vk {
    color: #45668e;
}

.tabs>.tabs-content .login_socnet .fa-google-plus {
    color: #dd4b39;
}

.tabs>.tabs-content .login_socnet .fa-facebook {
    color: #3b5998;
}

.tabs>.tabs-content input[type="submit"] {
    background: #00b488;
    background: #a4e5d5;
    border: none;
    color: #1f6b58;
    font-size: 18px;
    cursor: pointer;
}




.btn-style-two {
    margin: 10px;
}

p#myElem {
    color: #1a4832;
    background: #d1e7dd;
    padding: 5px;
}

/*  /////// /////////////////

 VIEW ANSWERS TOGGLER

  /////////////////////////// */

.wrapper {
    margin-left: 0.5rem;

    border: none;
    border-radius: 5px;
    padding: 0 !important;
}

.content {
    height: auto;
    /* here is the starting point */
    max-height: 1000px;
    padding: 0;
    background-color: #f3f3f7;
    overflow: hidden;

    transition-property: opacity, max-height;
    transition-duration: 1s, 0.5s;
}

.activator {
    cursor: pointer;
    padding: .5em;
    border-bottom: 1px solid lightgrey;
    color: #025f66;
    font-weight: 600;
    font-size: 16px;
}

.block {
    /* display: block; */
    /* border: 1px dotted grey; */
    /* margin: 0.5em; */
    padding: 0.5em;
    border-radius: 5px;
}

.disclaimer {
    /*font-style: italic;*/
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
    width: 30%;
    color: #386641;
    border: 1px solid #386641;
    border-radius: 5px;
    background-color: #D3E3C9;
}

/* Collapse */
.wrapper .activator:after {
    content: "🔻";
    /* height: 1em; */
    /* width: 1em; */
    display: inline-block;

    transition: transform 0.3s linear;
}

.wrapper.collapsed .activator:after {
    transform: rotate(-0.25turn);
}

.wrapper.collapsed .content {
    max-height: 0;
    opacity: 0;
}

/*  /////// /////////////////
 
FORUM CARDS

  /////////////////////////// */

.media {
    width: 100%;
}

.row .forum_questions .question-data .card-forum {
    /* background-color: #b540c62e !important; */

    border: 1px solid #ffb6a7;
}

.row .forum_questions .question-data .card-forum .card-forum-header,
.row .forum_questions .question-data .card-forum .card-forum-body {

    /* border: 1px solid #ffb6a7; */
    background-color: #fcbf956b !important;
    background-color: #ebd0be6b !important;
}

/* .row .forum_questions .question-data:nth-child(even) .card-forum {
    background-color: #8ec6402e !important;
     border: 1px solid #ffb6a7;
}



.row .forum_questions .question-data:nth-child(odd) .card-forum:nth-child(even) .card-forum-header {

    background-color: #8ec6402e !important;
}

.row .forum_questions .question-data:nth-child(odd) .card-forum {
    background: #ffc10770 !important;
    border: 1px solid #ffc107;
} */

.card-forum-body {
    background-color: white;
}

.content .block .card-forum-header .media {
    background: #ea512e;
    color: white;
}

.content .block .card-forum-body.question_section {
    border: 1px solid #e9a99a;padding: 0.75rem 1.25rem;
}

/* .forum_questions .card-forum:nth-child(even) {
    border: 1px solid #81d907;
} */

/* .forum_questions .card-forum:nth-child(even) .card-forum-body {


    background: #8ec6402e;
} */

/* .media:nth-child(2n+1) {
   border: 1px solid #0dcaf0;
} */

/* .forum_questions .card-forum:nth-child(odd) {
    border: 1px solid #ffc107;
}

.forum_questions .card-forum:nth-child(odd) .card-forum-body {


    background: #ffc10770;
} */

/* .forum_questions .card-forum:nth-child(2n+1) {
    border: 1px solid #0dcaf061;

}

.forum_questions .card-forum:nth-child(2n+1) .card-forum-body {


    background: #0dcaf024; */

/* } */

.media-body {
    display: flex;
    flex-direction: row;
    align-items: center;

}

.mt-100 {
    margin-top: 100px
}

.card-forum {
    max-width: 100% !important;
    padding: 0 !important;
    box-shadow: 0 0.46875rem 2.1875rem rgba(4, 9, 20, 0.03), 0 0.9375rem 1.40625rem rgba(4, 9, 20, 0.03), 0 0.25rem 0.53125rem rgba(4, 9, 20, 0.05), 0 0.125rem 0.1875rem rgba(4, 9, 20, 0.03);
    border-width: 0;
    transition: all .2s
}

.card-forum-header:first-child {
    border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0
}

.card-forum-header {
    display: flex;
    align-items: center;
    border-bottom-width: 1px;
    padding-top: 0;
    padding-bottom: 0;
    /* padding-right: .625rem; */
    /* height: 3.5rem; */
    text-transform: uppercase;
    background-color: #fff;
    border-bottom: 1px solid rgba(26, 54, 126, 0.125)
}

.card-forum-footer {
    display: flex;
    align-items: center;
    /* background: #c1b9b9; */
    padding: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
}


.card-forum-body .question_section h6 {
    color: #c30d59 !important;
    /* font-family: 'Oleo Script', cursive; */
    /* margin-left: 7px; */
    font-family: 'Comfortaa', cursive;
    /* font-size: 18px; */
    letter-spacing: 1px;
    font-weight: 600;
}

.card-forum-body .question_section {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    align-content: center;
}

.btn-primary {
    color: #fff;
    background-color: #3f6ad8;
    border-color: #3f6ad8
}

.btn {
    font-size: 0.8rem;
    font-weight: 500;
    outline: none !important;
    position: relative;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s
}

.card-forum-body {
    flex: 1 1 auto;
    padding: 1.25rem
}

.card-forum-body p {
    font-size: 13px
}

.question_section h5 {
    /* margin: 12px 20px */
}

a {
    color: #E91E63;
    text-decoration: none !important;
    background-color: transparent
}

.media img {
    width: 35px;
    height: auto
}



/* ------------------- */
.filter-questions label {
    color: white;
    margin: 10px 0 0;
}

.filter-questions {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://ot.olympiadx.com/assets/user_assets/images/background/student_background.webp') no-repeat center / cover;
    padding: 20px 9px;
    margin: 2px;
}

/* ------pagination------------ */
.pagination a,
.pagination b {
    margin: 0 5px;
    border: 1px solid #4bc5cb;
    padding: 0 11px;
    background: #4bc5cb;
}

.pagination a {
    color: #f8ffff;
}

.pagination {
    margin: 30px 15px;
}