body {
        font-family: 'Roboto', arial; 
        text-align: justify;
        width: 80%;
        margin: 0 auto;
        margin-top: 15px;
}


h1 {
        font-family: Brush Script, cursive; 
        color: white; 
        text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black
}


h3 { 
        text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
        font-family: 'Roboto', arial; line-height:20px;
        text-align: left;
        color: #ff6b81
}


p { 
        font-family: 'Roboto', arial;
        line-height:1.5;
        font-weight: 100;
        text-align: justify;
}


nav {
        border-radius: 150px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
}


ul {
        display: flex;
        gap: 80px;
        list-style-type: none;
        padding: 0;
        margin: 0;
}


li { 
        margin: 10px 0;
}


a {
        text-decoration: none; /* Убираем подчеркивание */
        color: #ff6b81; /* Цвет текста */
        font-family: Arial, sans-serif; font-weight: 550; /* Шрифт */
        padding: 7px; /* Поля вокруг текста */
        border-radius: 5px; /* Закругление углов */
        transition: all 0.55s ease;
        text-shadow: 0px 0px 20px #ff6b81;
}


a:hover {
            background-color:#ff6b81;  /* Цвет фона при наведении */
            color: white; /* Цвет текста при наведении */
            text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
            box-shadow: 0 0px 10px rgba(0,0,0,0.4);
}


table {
        width: 100%;
        border-collapse: collapse;
        margin: 25px 0;
        border-radius: 10px;
}


th {
        background-color: #b8b8b8;
        color: white;
        padding: 12px;
        text-align: center;    
        transition: all 0.5s ease;
}


td {
        padding: 12px;
        text-align: center;
        border-bottom: 1px solid #ddd;
        transition: all 0.5s ease;
}


tr:hover {
        background-color: #f5f5f5; 
}


td:hover {
        background-color: #ffcce3;
        cursor: pointer;
        transform: scale(1.08);
}



/* Основные стили */

.link {
    font-family: Arial, sans-serif; 
    font-weight: 300; /* Шрифт */
    padding: 3px; /* Поля вокруг текста */
    transition: all 0.55s ease;
    text-shadow: 0px 0px 2px #ff6b81;
    color: #ff6b81
}

.link-with-bg {
    display: inline-block; 
    width: 500px; 
    height: 300px;  
    background-size: cover; 
    background-position: center; 
    color: white; 
    font-size: 24px; 
    text-align: center; 
    line-height: 300px; 
    text-decoration: none; 
    border-radius: 15px; 
    text-shadow: 2px 2px 4px rgba(127, 127, 127, 0.7);
}

.rounded-img {
    border-radius: 15px;
    box-shadow: 0px 0px 20px #cfcfce;
}

.code {
    border-radius: 10px;
    width: 95%; /* Ширина контейнера */
    padding: 15px; /* Отступы внутри рамки */
    margin: left; /* Центрирование */
    background-color: #e0e0e0; /* Светло-серый фон */
    font-family: monospace; /* Монospace шрифт */
    text-align: left; /* Выравнивание текста */
    font-size: 15px
}

.figure {
    text-align: center;
    margin: 20px 0;
}

.figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.figure-caption {
    font-style: italic;
    margin-top: 5px;
}

.faculty-logo {
    top: 20px;
    left: 20px;
    width: 50px;
    height: 40px;
    cursor: pointer;
    z-index: 1000;
}

.container {
            display: flex;
            flex-direction: column;
}

.box {
            border-radius: 5px;
            opacity: 0; /* Сначала объекты скрыты */
            transform: translateY(20px); /* Сначала объекты смещены вниз */
            animation: appear 1s ease-out forwards;
}


/* Анимация появления */

@keyframes appear {
   from {
                opacity: 0;
                transform: translateY(20px);
            }
   to {
                opacity: 1;
                transform: translateY(0);
            }
        }

.box:nth-child(1) { animation-delay: 0s; }
.box:nth-child(2) { animation-delay: 0.5s; }
.box:nth-child(3) { animation-delay: 1s; }
.box:nth-child(4) { animation-delay: 1.5s; }
.box:nth-child(5) { animation-delay: 2s; }


.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}