@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Open+Sans:wght@400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Open Sans', 'Lato', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: bold;
}

html, body {
    height: 100%;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1rem 0; /* Отступы сверху и снизу */
}

.site-logo img {
    height: 4rem;
    margin-left: 6rem;
}

#main-navigation {
    position: sticky;
    top: 0;
    width: 100%;
    height: 6rem;      /* Высота хедера */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4.5%;
    z-index: 1000;
    font-size: 20px;
    font-weight: bold;
    background-color: #FFFFFF22;
    backdrop-filter: blur(8px);
}

#main-navigation a {
    text-decoration: none;
    color: #48406e;
    font-weight: bold;
    margin-left: 2rem;
}

#main-navigation a:hover,
#main-navigation a:active {
    color: #8653ed;
}

#main-navigation h1 a:hover,
#main-navigation h1 a:active {
    color: #8653ed;
}

/* Убираем маркеры списков в навигации */
.navbar-nav {
    list-style-type: none; /* Убираем маркеры */
    padding: 0; /* Убираем отступы */
    margin: 0; /* Убираем отступы */
}

.navbar-nav .nav-item {
    list-style-type: none; /* Убираем маркеры */
}

.navbar-nav .nav-link {
    list-style-type: none; /* Убираем маркеры */
}

/* MESSAGE */
.messages {
    position: fixed;
    top: 55px;
    right: 20px;
    width: auto;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.messages li {
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 15px;
    color: #fff;
    background-color: rgb(100, 85, 126);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    transition: all 0.3s ease-in-out;
}

.messages li a {
    color: #fff;
    text-decoration: underline;
}

.messages li:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Auto-hide message */
@keyframes fadeout {
    from { opacity: 0.9; }
    to { opacity: 0; }
}

.messages li.fadeout {
    animation: fadeout 15s ease forwards;
}

/* FOOTER */
#footer {
    background-color: #E8E8E8;
    margin-top: auto;
}

.container-fluid {
    display: grid;
    grid-template-columns: auto auto auto;
    place-items: center;
}

.logo {
    margin: 0.5rem;
}

.logo a {
    text-decoration: none;
    color: #48406e;
}

.menu ul {
    list-style-type: none;
    color: #453030;
    margin: 0.5rem;
    font-weight: bold;
}

/* Для планшетов и мобильных */
@media (max-width: 768px) {
    .site-logo {
        margin: 0.8rem 0; /* Отступы сверху и снизу */
    }

    .site-logo img {
        height: 3rem;
        margin-left: 6rem;
    }

    #main-navigation {
        padding: 0 1rem;  /* Меньшие отступы на мобильных */
        height: 5rem;           /* Высота хедера */
    }

    #mainNavLinks {
        position: static;  /* Изменение позиционирования */
        background-color: transparent; /* Убираем фон */
        padding: 0;
        box-shadow: none;
        display: flex;
        font-size: 15px;
        list-style-type: none; /* Убираем маркеры */
    }

    #mainNavLinks .nav-link {
        padding: 0.75rem 1rem;  /* Корректируем отступы для ссылок */
        color: #48406e;
        list-style-type: none; /* Убираем маркеры */
        text-decoration: none; /* Убедитесь, что текстовая линия не отображается */
    }

    #mainNavLinks .nav-item {
        list-style-type: none; /* Убираем маркеры */
    }
}

/* Media Query for small screens (mobile) */
@media (max-width: 500px) {
    .container-fluid {
        display: grid;
        grid-template-columns: auto auto auto;
        place-items: center;
    }
}
