/* Основные стили */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100dvh;
    transition: background-color 0.3s, color 0.3s;
    touch-action: pan-y;
}

body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

#easterEgg {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#easterEgg.Shown {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Стили для кнопки сообщения */
.message-toggle {
    padding: 10px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a82fb, #fc5c7d);
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    top: 10px;
    right: 60px; /* Смещение от кнопки темы */
    z-index: 10;
    outline: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}


/* Стили для кнопки "поделиться" */
.share-button {
    padding: 10px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a82fb, #fc5c7d);
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    top: 10px;
    right: 110px; /* Смещение от кнопки темы и сообщения */
    z-index: 10;
    outline: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Стили для облачка */
.message-popup {
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: #fff;
        color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

/* Стили для облачка в темной теме */
body.dark-theme .message-popup {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #555;
}

.message-popup.shown {
    display: block;
}

/* Стили для светлой темы */
.icon-light {
    fill: white; /* Цвет заливки для светлой темы */
}

/* Стили для тёмной темы */
body.dark-theme .icon-light {
    fill: #333; /* Цвет заливки для тёмной темы */
}


.container {
    width: 90%;
    max-width: 600px; /* Уменьшенная максимальная ширина для мобильных устройств */
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: background 0.3s, color 0.3s;
    position: relative;
    overflow-y: auto
}

body.dark-theme .container {
    background: #1e1e1e;
    color: #e0e0e0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

h1 {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
    transition: color 0.3s;
    flex: 1;
    font-size: 1.5em; /* Уменьшенный размер шрифта */
}

body.dark-theme h1 {
    color: #e0e0e0;
}

.theme-toggle {
    padding: 10px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a82fb, #fc5c7d);
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    top: 10px;
    right: 10px;
    z-index: 10;
    outline: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.navigation {
    display: flex;
    flex-direction: row; /* Вертикальное расположение кнопок */
    gap: 10px;
    margin-bottom: 20px;
    overflow-y: hidden;
    overflow-x: auto;
}

.Button  {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6a82fb, #fc5c7d);
    color: #fff;
    font-size: 0.9em; /* Уменьшенный размер шрифта */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%; /* Полная ширина для мобильных устройств */
    text-align: center;
}

.Button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.schedule {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Уменьшенные отступы между карточками */
}

.class-item {
    margin: 10px 0; /* Уменьшенные отступы сверху и снизу */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Светлая тема */
.class-item.lecture {
    background: rgba(180, 210, 150, 0.9);
    color: #333;
}

.class-item.practice {
    background: rgba(150, 180, 210, 0.9);
    color: #333;
}

.class-item.lab {
    background: rgba(210, 150, 150, 0.9);
    color: #333;
}

.class-item.no-class {
    background: rgba(200, 200, 200, 0.9);
    color: #333;
    text-align: center;
    font-size: 1em;
}

/* Тёмная тема */
body.dark-theme .class-item.lecture {
    background: rgba(70, 100, 50, 0.9);
    color: #fff;
}

body.dark-theme .class-item.practice {
    background: rgba(50, 80, 100, 0.9);
    color: #fff;
}

body.dark-theme .class-item.lab {
    background: rgba(120, 50, 50, 0.9);
    color: #fff;
}

body.dark-theme .class-item.no-class {
    background: rgba(70, 70, 70, 0.9);
    color: #fff;
}


.class-item h2 {
    margin: 0 0 1px 0;
    font-size: 1.2em; /* Уменьшенный размер шрифта */
}

.class-item p {
    margin: 0;
    font-size: 0.9em; /* Уменьшенный размер шрифта */
}


body.dark-theme .popup-content {
    background: #1e1e1e;
}

#schedule-date {
    font-size: 1.5rem;
    margin: 4px 0 4px 0;
}



.Menu_Item {
    border-radius: 10px;
    padding: 10px;
}

.Menu_Item.Light {
    background: rgba(200, 200, 200, 1.0);
}

.Menu_Item.Dark {
    background: rgba(70, 70, 70, 1.0);
}

.Menu_Item.No_Background {
    background: none;
}


/*
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    .container {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    .class-item.lecture {
        background: rgba(70, 100, 50, 0.9);
        color: #fff;
    }
    .class-item.practice {
        background: rgba(50, 80, 100, 0.9);
        color: #fff;
    }
    .class-item.lab {
        background: rgba(120, 50, 50, 0.9);
        color: #fff;
    }
    .class-item.no-class {
        background: rgba(70, 70, 70, 0.9);
        color: #fff;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background-color: #f0f0f0;
        color: #333;
    }
    .container {
        background: #fff;
        color: #333;
    }
    .class-item.lecture {
        background: rgba(180, 210, 150, 0.9);
        color: #333;
    }
    .class-item.practice {
        background: rgba(150, 180, 210, 0.9);
        color: #333;
    }
    .class-item.lab {
        background: rgba(210, 150, 150, 0.9);
        color: #333;
    }
    .class-item.no-class {
        background: rgba(200, 200, 200, 0.9);
        color: #333;
    }
}*/
