@font-face {
    font-family: 'EducationalGothic';
    src: url('fonts/EDUCATIONALGOTHIC-REGULAR.OTF') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Menlo';
    src: url('fonts/Menlo-Regular-01.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* === БАЗОВЫЙ STYLING === */
body {
    background: linear-gradient(135deg, #0e0e0e, #1a1a1a, #000000);
    font-family: 'Menlo', sans-serif;
    color: #fff;
    margin: 0;
    padding: 20px;
}

/* GLASS BLOCK — ЦВЕТНОЙ */
.infoblock, .infoblock2 {
    width: 90%;
    padding: 2%;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-family: 'Menlo', sans-serif;

    background: rgba(165, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow: 0 8px 32px rgba(0,0,0,0.35);

    color: #bfb3d1;
    transition: all 0.5s ease;
}

/* Плавная смена цвета при hover */
.infoblock:hover, .infoblock2:hover {
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;
    border-radius: 30px;
    background: rgba(255, 200, 255, 0.25);
    box-shadow: 0 12px 45px rgba(0,0,0,0.45);
}

/* GLASS BUTTON */
.toggle-button {
    display: inline-block;
    background: rgba(120, 255, 120, 0.25); /* зеленое стекло по умолчанию */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 10px 25px;
    cursor: pointer;
    font-family: 'Gothic', sans-serif;
    font-weight: bold;
    color: #0d0120;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: all 0.4s ease, background 0.6s ease;
}

.toggle-button.red {
    background: rgba(255, 120, 120, 0.35); /* красное стекло */
}

/* hover эффект */
.toggle-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 26px rgba(0,0,0,0.35);
}

/* INPUT */
.expression-input {
    width: 70%;
    height: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0 15px;
    font-size: 1rem;
    margin-top: 10px;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.15);
    color: #0d0120;
    transition: all 0.4s ease;
}

.expression-input:focus {
    outline: none;
    background: rgba(255,255,255,0.25);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}


/* TABLES */
.info_table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 20px;
    overflow: hidden;

    background: rgba(165, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.info_table th,
.info_table td {
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.25);
    color: #0d0120;
    text-align: center;
    transition: background 0.3s ease;
}

.info_table td:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* LOGIC TABLE CELLS */
.tabl {
    margin: 30px;
    background: rgba(165, 255, 255, 0.2);
    color: #0d0120;

    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 10px;

    border: 1px solid rgba(255,255,255,0.25);
    overflow: hidden;

    backdrop-filter: blur(8px);
}

.item {
    text-align: center;
    transition: background-color 0.6s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.correct { background-color: rgba(162, 255, 170, 0.5); }
.incorrect { background-color: rgba(255, 162, 162, 0.5); }
.exp { background-color: rgba(162, 202, 255, 0.5); }

a.link {
    color: chocolate; 
    background-color: cadetblue; 
    border-radius: 20px; 
    text-decoration: none;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(44, 44, 44, 0.3);
}

h3 {
    display: inline-block;
    text-align: center;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(44, 44, 44, 0.3);
    background: #8b8b8b46;
    transition: all 0.4s ease;
    font-family: EducationalGothic, sans-serif;
}
h3:hover {
    background: #b5b5b546;
    box-shadow: 0 5px 20px rgba(44, 44, 44, 0.3);
}


@media (max-width: 768px) { 
    .infoblock, .infoblock2 {
        width:90%;
        padding-left: 5%;
        padding-right: 5%;
    }
}

.formulas_space {
    padding: 25px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(44, 44, 44, 0.3);
    background: #8b8b8b1a;
    transition: all 0.4s ease;
}

.formulas_space li {
    margin: 10px 0;
    padding: 5px 15px;
    background-color: #f8f9fa13;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    border: 1px solid #e9ecef3f;
}

.formulas_space li strong {
    display: inline;
    color: #2980b9;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0.95em;
    margin-right: 8px;
}

.formulas_space li {
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

.formulas_space:nth-child(odd) {
    border-left-color: #3498db;
}

.formulas_space:nth-child(even) {
    border-left-color: #2ecc71;
}