* {
    font-family: 'Rubik', sans-serif;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.bold {
    font-weight: 500;
}

.page-title {
    font-weight: 500;
    font-size: 1.2rem;
}

.set-badge {
    font-size: 1.3rem;
    position: absolute;
    right: 15px;
    top: 10px;
}

.navbar {
    position: fixed;
    width: 100%;
    z-index: 100;
}

.nav-name {
    font-weight: 500;
    color: #000;
}

.content-container {
    padding-top: 50px;
}

.problem-text {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 400;
}

.number {
    font-weight: 500;
    color: #fb8500;
}

.unlock-set {
    cursor: pointer;
}

.pointer {
    cursor: pointer;
}

#keypad, #numberle {
    background-color: #DDDDDD;
    padding: 1rem;
    border-radius: 1rem;
}

#keypad_input {
    margin: 3px;
    font-weight: 500;
    font-size: 2rem;
    color: #fb8500;
}

.keypad-btn {
    flex: 1;
    font-weight: 500;
    font-size: 1.5rem;
}

#numberle .cell {
    background-color: white;
    border-radius: 5px;
    border: 2px solid grey;
    margin: 5px;
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
    font-weight: 500;
}

#numberle .wrong {
    background-color: grey;
    color: white;
}

#numberle .wrong-position {
    background-color: #fb8500;
    color: white;
}

#numberle .right {
    background-color: #75c25a;
    color: white;
}

.puzzle-card {
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.rules-text {
    font-size: 1.2rem;
}

.navbar {
    font-size: 1.2rem;
}

.answer-text {
    font-size: 1.3rem;
}

.locked-problem {
    font-size: 5rem;
    color: #ef233c;
}

.answer-img {
    width: 120px;
    margin-bottom: 1rem;
}

#star_img {
    width: 24px;
    margin-right: 5px;
    margin-bottom: 3px;
}

.star-img {
    width: 20px;
    margin-right: 3px;
    margin-bottom: 2px;
}

.stars-score {
    font-weight: 500;
    font-size: 1.1rem;
    display: inline-block;
}

#stars_score {
    font-weight: 500;
    font-size: 1.3rem;
}


.puzzle-number, .set-number {
    width: 100%;
    font-size: 4rem;
}

.has-solution {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.8rem;
    color: red;
}

.option-img img {
    border-radius: 7px;
    border: 2px dashed lightgrey;
}

.option-btn {
    font-size: 1.75rem;
}

.set-order {
    font-weight: 500;
}

html, body {
    height: 100%;
}

body {
    background-color: #FFE1AF;

    display: flex;
    flex-direction: column;
}

.content {
    flex: 1 0 auto;
}
.footer {
    flex-shrink: 0;
}

.navbar-brand {
    font-weight: 500;
}

.problems-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.close-problem {
    font-size: 1.4rem;
}

.bg-success {
    background-color: #75c25a !important;
}

.bg-warning {
    background-color: #f9ca0a !important;
}

.bg-danger {
    background-color: #ef233c !important;
}

.card {
    border-radius: 10px !important;
    border-width: 0;
}

.card-footer {
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.card-header {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.modal-header, .modal-footer {
    border-width: 0 !important;
    padding: 1rem;
}

.input_block {
    margin-bottom: 0;
}

.img-preview {
    margin: auto;
    height: 200px;
    max-width: 100%;
    display: block;
}

.solution-carousel .slick-arrow:hover {
    color: dodgerblue;
}

#solution_block.hidden {
    height: 0;
    overflow-y: hidden;
}

#add_problem_btn, #add_solution_step_btn {
    min-height: 150px;
}

.solution-step-card {
    position: relative;
}

.delete-step-block {
    display: none;
}

.solution-step-card:hover .delete-step-block {
    display: block;
}

.delete-step-btn {
    flex-shrink: 0;
    color: #F93F17;
    cursor: pointer;
    position: absolute !important;
    right: 10px;
    top: 15px
}

#site_logo {
    height: 45px;
}

#site_logo_mobile {
    height: 40px;
}

#site_logo_mobile {
    display: none;
}

#auth_card .card-body {
    padding: 2rem;
}

#login_img {
    width: 55%;
}

#icons_attribute a {
    font-size: 0.8rem;
    text-decoration: none;
    color: lightgrey;
}

#icons_attribute a:hover {
    color: darkgrey;
}

.card {
    overflow: hidden;
}

#logo_img_block {
    height: 100%;
    background-color: lightgrey;
}

.race-btn {
    position: absolute;
    bottom: 70px;
    left:0;
    right:0;
    margin-left:auto;
    margin-right:auto;
}

.country-img {
    height: 20px;
    border-radius: 3px;
    margin-right: 10px;
    border: 1px solid #fff;
}

#rating_table {
    font-size: 1.1rem;
    border-radius: 0.7em;
    overflow: hidden;
    font-weight: 500;
    vertical-align: middle;
}

#rating_table td {
    padding-top: 15px;
    padding-bottom: 15px;
}

#rating_table tr td:nth-child(1),
#rating-_table tr th:nth-child(1) {
    padding-left: 20px;
}

.set-name {
    font-weight: 500;
    font-size: 1.2rem;
}

.set-progress {
    font-weight: 500;
    font-size: 1.2rem;
}

#login_form_block {
    padding: 2rem;
}

.text-small {
    font-size: 14px;
}

.answer-content {
    border-radius: 10px;
    border-width: 0;
}

#app main {
    min-width: 50vw !important;
}

input[readonly] {
    font-size: 1.5em;
}

#problem_col {
    min-height: 400px;
}

#answer_value {
    display: inline-block;
    background-color: #75c25a;
    border-radius: 0.7rem;
    padding: 0.4rem 1rem;
    margin-left: 1rem;
}

.nav-img img {
    width: 25px;
}

.nav-img {
    display: none;
}

.this-user-rating td {
    background-color: #3d3d5c;
    color: #fff;
}

.page-top-panel {
    font-size: 1.3rem;
    font-weight: 500;
}

.expired .locked-problem {
    color: darkgrey;
}

.active .card-body {
    background-color: #ef233c;
}

.active .locked-problem {
    color: #fff;
}

.expired .bg-warning {
    background-color: darkgrey !important;
}

.btn {
    font-weight: 500;
}

#rating_table .medal .user-points {
    display: inline-block;
    margin: auto;
    border-radius: 5px;
}

#rating_table .gold .user-points {
    background-color: #fee101;
    color: #000;
}

#rating_table .silver .user-points {
    background-color: #d7d7d7;
    color: #000;
}

#rating_table .bronze .user-points {
    background-color: #a77044;
    color: #fff;
}

.modal p {
    font-size: 1.1em;
}

canvas {
    width: 100%;
}

#message_textarea {
    font-size: 1.1rem;
}

.section {
    background-color: #fff;
    padding: 3rem;
    gap: 2rem;
    border-radius: 25px;
    margin-bottom: 2rem;
}

.sets-section {
    background-color: #253254;
    color: #fff;
}

.main-subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.puzzle-amount {
    font-weight: 600;
}

.main-img {
    max-width: 80%;
}

.main-img-mobile {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.main-content, .main-img-container  {
    flex: 1;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.section-text {
    font-size: 1.3rem;
    margin-top: 1rem;
}

.why-choose-item {
    font-size: 1.2rem;
    padding: 1rem 0;
}

.why-choose-title {
    font-weight: 600;
}

.why-choose-container {

}

.why-choose-img {
    max-width: 80%;
}

.why-choose-block {
    flex: 1;
}

.sets-container .card {
    flex: 1;
}

.ready-content {
    text-align: center;
}

.ready-text {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

@media screen and (max-width: 992px) {
    .problems-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .problems-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .problem-text {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    #problem_col {
        min-height: 0;
    }

    #site_logo {
        display: none;
    }

    #site_logo_mobile {
        display: block;
    }

    .nav-img {
        display: block;
    }

    .nav-user-name {
        display: none;
    }

    .nav-name {
        font-size: 0.7rem;
    }

    .nav-user-name {
        font-size: 1rem;
    }

    #rating_table thead td {
        font-size: .9rem;
    }

    #rating_table tbody td {
        font-size: 0.9rem;
    }

    #rating_table .country-img {
        height: 15px;
        margin-right: 10px;
    }

    #rating_table td {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #rating_table tr td:nth-child(1),
    #rating_table tr th:nth-child(1) {
        padding-left: 15px;
    }

    .problem-time {
        font-size: 0.9rem;
    }

    #keypad .keypad-btn {
        font-size: 1rem;
    }

    #keypad_input {
        margin: 0;
        font-size: 1.5rem;
    }

    .race-btn {
        bottom: 50px;
    }

    .set-name {
        font-size: 0.9rem;
    }

    .set-name-section {
        padding-left: 0;
        padding-right: 0;
    }

    .set-progress {
        font-size: 1.0rem;
    }

    .star-img {
        width: 15px;
    }

    .stars-score {
        font-size: 0.9rem;
    }

    .locked-problem {
        font-size: 4rem;
    }

    #rating_table tr td:nth-child(1),
    #rating_table tr th:nth-child(1) {
        padding-left: 10px;
    }

    .page-top-panel {
        font-size: 1.0rem;
    }

    .page-top-panel .card-body {
        padding: 10px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .problem-img {
        padding: 0;
    }

    #stars_score {
        font-size: 1.1rem;
    }

    #star_img {
        width: 18px;
    }

    .set-badge {
        font-size: 1.1rem;
        right: 10px;
        top: 5px;
    }

    .page-title {
        font-size: 1.0rem;
    }

    .rules-text, .answer-text {
        font-size: 1rem;
    }

    .answer-img {
        width: 100px;
    }

    .puzzle-container {
        overflow: hidden;
    }

    #puzzle {
        margin: auto;
        margin-top: -1rem;
        margin-bottom: -1rem;
    }

    .section {
        padding: 1rem;
        border-radius: 15px;
        margin-bottom: 1rem;
    }

    .main-subtitle {
        font-size: 1.2rem;
    }

    .section-text {
        font-size: 1rem;
    }

    .section-heading {
        margin-bottom: 1rem;
    }

    .why-choose-item {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .ready-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .main-title {
        font-size: 1.6rem;
    }

    .set-title {
        font-size: 0.9rem;
    }

    .sets-section .card-header {
        padding: 5px;
    }
}
