/* front/style/front.css */

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    position: relative;
}

.container {
    text-align: center;
}

.logo {
    max-width: 50%;
    height: auto;
    margin-bottom: 50px;
}

.top-right-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.login-btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.login-btn:hover {
    background-color: #0056b3;
}

.logout-btn {
    background-color: #6c757d;
}

.logout-btn:hover {
    background-color: #5a6268;
}

#falling-cursors {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.cursor {
    position: absolute;
    font-size: 24px;
    opacity: 0.8;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}

.search-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1000px;
}

.search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 15px 20px;
}

.logo-fixed {
    width: 200px;
    height: auto;
    margin-right: 20px;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 220px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

/* 📱 Адаптация под мобильные устройства */
@media (max-width: 768px) {
    .logo {
        max-width: 80%;
        margin-bottom: 30px;
    }

    .search-wrapper {
        top: 40%;
        width: 90%;
    }

    .search-form {
        flex-direction: column;
        padding: 10px;
    }

    .logo-fixed {
        width: 100%;
        margin: 0 0 10px 0;
    }

    .search-form input[type="text"] {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .top-right-buttons {
        top: 10px;
        right: 10px;
        flex-direction: column;
        gap: 5px;
    }

    .top-right-buttons a {
        width: 130px;
        text-align: center;
    }

    .suggestions {
        left: 0;
        right: 0;
    }
}