﻿@font-face {
    font-family: 'Onest';
    src: url('/public/fonts/Onest-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Onest-Bold';
    src: url('/public/fonts/Onest-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

a {
	text-decoration: none;
}

body, p, a {
    font-family: 'Onest', Tahoma, Verdana, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Onest-Bold', Tahoma, Verdana, sans-serif !important;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    margin-bottom: 20px;
}

.logo, .site_name__block, .login_menu__block {
    /*flex: 1;*/
}

.logo {
    display: flex;
    align-items: center;
    width: 25% !important;
}

.logo_image {
    height: 50px;
}

.site_name__block {
    width: 100%;
margin-bottom: 20px;
}

h1.site_name {
    text-align: center;
    font-size: 22px !important;
    font-family: 'Onest-Bold', Tahoma, Verdana, sans-serif !important;
}

.login_menu__block {
    display: flex;
    justify-content: center;
    height: 100%;
    margin-bottom: 20px;
}

.login_menu__list {
    display: flex !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.login_menu__list_item_button, .start_button, .next_button, .restart_button {
    background-color: #ff944d;
    color: white;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    text-decoration: none;
}

.login_menu__list_item_button a, .start_button a, .next_button a, .restart_button a {
    color: white;
    text-decoration: none;
    font-family: 'Onest-Bold', Tahoma, Verdana, sans-serif; 
    font-size: 16px;
}

.login_menu__list_item_button:hover, .start_button:hover, .next_button:hover, .restart_button:hover {
    background-color: #0056b3;
}

.highlight {
	background-color: #0056b3;
}

.main {
    width: 80%;
    margin: 0 auto;
}

.text_block {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.text_card {
    flex: 1 1 calc(50% - 20px); /* Две карточки в ряду */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
    align-self: flex-start
}

h2.main_title {
    font-size: 24px !important;
    margin-bottom: 20px;
    text-align: center;
}

.welcome {
    color:#ff944d;  
}

.main_text {
    font-size: 20px !important;
    margin-bottom: 20px;
    color: #808080;
	text-align: justify;
	hyphens: auto;
line-height: 1.4;
}

.button_container {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.start_button {
    text-align: center;
}

.buttons_container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;
}

.table th, .table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tr:hover {
    background-color: #f1f1f1;
}

.about {
    font-size: 16px !important;
    margin-bottom: 20px;
	text-align: center;
}

footer {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.my_site {
    text-decoration: none;
    font-weight: bold;
    color: black;
}

.card_block {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card {
    width:50%;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #808080;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.card_title {
    font-size: 30px;
    margin-bottom: 20px;
}

.form_group {
    margin-bottom: 20px !important;
}

.form_group label {
    display: block;
    margin-bottom: 5px;
}

.form_group input[type="text"] {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border-color: #ff944d;
    font-size: 24px;
    padding-left: 20px;
}

.verb {
    font-family: 'Onest-Bold', Tahoma, Verdana, sans-serif;
    font-size: 36px;
    color: #ff944d;
    margin-bottom: 20px;
    font-weight: bold;
}

.form_group input[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px 25px;
    font-size: 16px;
}

.form_group input[type="submit"]:hover {
    background-color: #0056b3;
}

.result {
    font-family: 'Onest-Bold', Tahoma, Verdana, sans-serif;
    font-weight: bold;
    font-size: 30px;
    margin-bottom: 20px;
}

.correct_answer__title {
    font-size: 30px;
    font-family: 'Onest-Bold', Tahoma, Verdana, sans-serif;
    margin-bottom: 20px;
}

.correct_answer__text {
    font-family: 'Onest', Tahoma, Verdana, sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: #808080;
}

.buttons_block {
	display: flex;
	justify-content: space-around;
}

.buttons_block p{
	display: block;
}

.next_button {
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
}

.restart_button {
    display: block;
    margin: 0 auto;
    background-color: red;
margin-bottom: 20px;
}

.restart_button:hover {
    background-color: #0056b3;
}

.error_container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.error_container h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.error_container p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.home_link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}

.home_link:hover {
    background-color: #0056b3;
}

.error_block {
    text-align: center;
    margin-bottom: 20px;
}

.remain {
    margin-bottom: 20px;
}

@media (max-width: 768px) {

    .header, .main, footer {
        width: 100%;
        padding: 0 20px;
    }

    .header {
        flex-direction: row;
        align-items: center;
    }

    .logo {
        width: auto !important;
    }

    .logo_image {
        height: 40px;
        margin-bottom: 10px;
    }

    .site_name__block {
        width: auto;
    }

    h1.site_name {
        font-size: 24px !important;
        text-align: left;
    }

    .login_menu__block {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .login_menu__list {
        width: 100%;
        flex-direction: row;
        align-items: center;
	justify-content: center;
        margin-bottom: 10px;
    }

    .login_menu__list_item {
        margin-bottom: 10px;
    }

.login_menu__list_item_button {
        font-size: 12px;
padding: 7px 12px;
    }


    .text_card {
        flex: 1 1 100%;
    }

    .main {
        margin-bottom: 20px;
    }

    h2.main_title {
        font-size: 20px !important;
    }

    .main_text {
        font-size: 16px !important;
    }

    .buttons_container {
        flex-direction: column;
    }

    .button_container {
        width: 100%;
        text-align: center;
    }

    .start_button {
        margin-bottom: 10px;
    }

    .card {
        width: 100%;
    }

    .card_block {
        height: 100%;
        margin-bottom: 20px;
    }

    .card_title {
        font-size: 24px;
    }

    .form_group input[type="text"] {
        height: 40px;
        font-size: 18px;
    }

    .form_group input[type="submit"] {
        padding: 10px 20px;
    }

    .verb, .result, .correct_answer__title, .correct_answer__text {
        font-size: 24px;
    }

    .table, .table thead, .table tbody, .table th, .table td, .table tr {
        display: block;
    }

    .table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table tr {
        border: 1px solid #ddd;
        margin-bottom: 5px;
    }

    .table td {
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }

    .table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }

    .about {
        font-size: 16px !important;
    }
}

@media (max-width: 1100px) {

    .header, .main, footer {
        width: 100%;
        padding: 0 20px;
    }

    .header {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        width: auto !important;
    }

    .logo_image {
        height: 40px;
        margin-bottom: 20px;
    }

    .site_name__block {
        width: auto;
        margin-bottom: 20px;
    }

    h1.site_name {
        font-size: 20px !important;
        text-align: center;
        margin-bottom: 20px;
    }

    .login_menu__block {
        width: 100%;
        justify-content: center;
    }

    .text_card {
        flex: 1 1 100%;
    }

    h2.main_title {
        font-size: 20px !important;
    }

    .main_text {
        font-size: 16px !important;
    }

    .buttons_container {
        flex-direction: column;
    }

    .button_container {
        width: 100%;
        text-align: center;
    }

    .card_block {
        height: 100%;
        margin-bottom: 20px;
    }

    .card {
        width: 100%;
    }

    .card_title {
        font-size: 24px;
    }

    .form_group input[type="text"] {
        height: 40px;
        font-size: 18px;
    }

    .form_group input[type="submit"] {
        padding: 10px 20px;
    }

    .verb, .result, .correct_answer__title, .correct_answer__text {
        font-size: 24px;
    }
}

@media (max-width: 376px) {
	.header, .logo_image {
    margin-bottom: 5px;
}

    .logo, .site_name__block, .login_menu__block {
        margin-bottom: 5px;
    }

    .login_menu__list_item_button, .start_button, .next_button, .restart_button {
        background-color: #ff944d;
        color: white;
        border: none;
        padding: 15px 3px;
        cursor: pointer;
        text-decoration: none;
    }

    .card_block {
        height: 100%;
        margin-bottom: 10px;
    }

    .button_container {
        margin-bottom: 10px;
    }

    .table, .table thead, .table tbody, .table th, .table td, .table tr {
        display: block;
    }

    .table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table tr {
        border: 1px solid #ddd;
        margin-bottom: 5px;
    }

    .table td {
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }

    .table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
}

