body {
    font-family: 'Mystery Quest', cursive;
    font-size: 150%;
    background-color: #1c1b2f;
    color: #e0d9f8;
    text-align: center;
    padding: 20px;
    margin: 0; /* 🔥 Убираем отступы по умолчанию */
    background-image: radial-gradient(circle at top, #2c2a4a 0%, #1c1b2f 100%);
}

#app {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(38, 33, 67, 0.85);
    padding: 48px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(153, 50, 204, 0.4);
}

button {
    margin-top: 10px;
    padding: 12px 24px;
    font-size: 16px;
    background: linear-gradient(45deg, #8e2de2, #4a00e0);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px #8e2de2;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: linear-gradient(45deg, #a4508b, #5f0a87);
    transform: scale(1.05);
}

#question-section,
#table-container,
.keypad {
    margin-top: 20px;
}

.highlight {
    background-color: rgba(255, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 100, 0.4);
}

canvas {
    cursor: crosshair;
}

.flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 999;
}

#flash-success {
    background-color: rgba(144, 238, 144, 0.5);
}

#flash-error {
    background-color: rgba(255, 69, 0, 0.5);
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
}

.keypad button {
    font-size: 18px;
    height: 50px;
    background-color: #311b92;
    color: #fff;
    border: 1px solid #9575cd;
    border-radius: 5px;
    cursor: pointer;
}

.keypad button:hover {
    background-color: #512da8;
}

.keypad button:active {
    background-color: #7e57c2;
}

.hidden, #hiddenContent {
    display: none;
    margin-top: 10px;
}

.option-button {
    margin: 0 2.5px;
}

details[open] summary::before {
    content: "🔮 Скрыть ";
}

details:not([open]) summary::before {
    content: "🔮 Показать ";
}

.seotext_content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(38, 33, 67, 0.85);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(204, 153, 255, 0.2);
    color: #dcd1ff;
}

.seotext_content h2 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #cbaaff;
    text-shadow: 0 0 8px #9c27b0;
}

.seotext_content h3 {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #e1bee7;
}

.seotext_content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.seotext_content ul,
.seotext_content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.seotext_content strong {
    color: #ffd700;
}

.seotext_content li {
    margin-bottom: 10px;
}

.menu_section {
    background-color: #4a148c;
    padding: 17px 0;
    width: 100vw;
    position: fixed;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -21px;
    z-index: 9;
}

.menu {
    max-width: 800px;
    margin: 0 auto;
}

.menu ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 72px;
}

.menu li {
    display: inline;
    margin: 0 15px;
}

.menu a {
    text-decoration: none;
    color: #ffccff;
    font-weight: bold;
    transition: color 0.3s;
}

.menu a:hover {
    color: #ffd700;
}

.menu {
    display: none;
    position: fixed;
    top: -18px;
    right: 0;
    height: 100%;
    width: 298px;
    background-color: #2a1a3a;
    box-shadow: -2px 0 5px rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.menu.active {
    display: block;
    transform: translateX(0);
    z-index: 9999;
    height: 50%;
}

.burger {
    width: 30px;
    height: 25px;
    position: fixed;
    top: 20px;
    right: 20px; /* смещаем вправо */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
}

.close {
    font-size: 64px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    color: #fff;
}

/* Футер */
footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e1e1e1;
    width: 100%;
}

footer .footer-content p {
    margin: 10px 0; /* отступы между абзацами */
    font-size: 14px; /* размер шрифта */
}

footer .footer-content a {
    text-decoration: none; /* убираем подчеркивание */
}

footer .footer-content a:hover {
    text-decoration: underline; /* подчеркивание при наведении */
}
