@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

:root {
    --body-font-family: 'Roboto', sans-serif;
    --body-text-color: black;
    --primary: #FDE8E9;
    --primary-light: lavender;
    --primary-hover: #A37F38;
    --secondary: dodgerblue;
    --secondary-hover: darkblue;
    --light: #f8f8ff;
    --border-radius: 5px;
    --card-background: white;
    --card-box-shadow: 0 0 12px var(--primary-light);
}

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

body {
    background: var(--light);
}

header {
    position: sticky;
    display: grid;
    grid-template-columns: 150px 1fr;
    background: var(--primary);
    padding: 20px;
    align-items: center;
    z-index: 100;
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: 700;
    font-family: "Roboto", serif;
}

header a {
    color: #B1181D;
    text-decoration: none;
}

header>a::before {
    cursor: default;
    content: "";
    display: inline-block;
    width: 245px;
    height: 93px;
    background: url('../../img/Logo.png') no-repeat;
    background-size: contain;
    margin-right: 10px;
}

header .has-submenu {
    position: relative;
}

header .has-submenu:hover .submenu {
    display: block;
}

header ul {
    list-style: none;
    display: flex;
    justify-content: end;
    padding: 0;
}

header ul.submenu {
    display: none;
    position: absolute;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    white-space: nowrap;
    padding: 10px;
    border-radius: 0 0 5px 5px;
}

header .menu a {
    display: block;
    padding: 10px;
}

header .menu a:hover {
    background: var(--primary-hover);
    border-radius: 5px;
    color: white;
}

header .toggle-menu,
header .toggle-menu+label {
    display: none;
    cursor: pointer;
}

@media(max-width:1010px) {
    header {
        gap: 20px 0
    }

    header .menu {
        grid-column: span 2;
        display: none;
    }

    header .menu ul {
        flex-direction: column;
    }

    header .menu ul li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    header .menu ul li:last-child {
        border: none;
    }

    header ul.submenu {
        position: static;
        display: block;
        padding: 0 0 0 30px;
    }


    header .toggle-menu+label {
        display: flex;
        width: 30px;
        gap: 7px;
        flex-direction: column;
        justify-self: end;
    }

    header .toggle-menu+label span {
        cursor: pointer;
        display: block;
        background: black;
        height: 3px;
        border-radius: 1px;
    }

    header .toggle-menu:checked~.menu {
        display: block;
    }

}

.box-container {
    position: fixed;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-50%);
    animation: slide-in 1s forwards;
    z-index: 102;
}

.box {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    animation: fade-in 1s forwards;
    display: flex;
    align-items: center;
    z-index: 102;
}

.box::before {
    content: "✔";
    font-size: 20px;
    margin-right: 10px;
    color: #155724;
}

@keyframes slide-in {
    from {
        left: -100%;
    }

    to {
        left: 50%;
        transform: translate(-50%, -50%);
    }
}


.classkep {
    width: 3%;
    height: auto;
    right: 10px;
    cursor: pointer;
}

.nyelv {
    position: absolute;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    top: 10px;
    margin-right: 25px;
}

.toggle-menu {
    position: relative;
}


.nyelv1 {
    display: none;
}

.ua,
.hun {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    align-items: center;
    padding: 10px 20px;
    color: white;
    background-color: var(--primary-hover);
    font-size: 1.2rem;
}

.footer a {
    color: white;
    text-decoration: none;
     font-size: 1.2rem;
    font-family: "Roboto", serif;
}


.footer .p {
    font-family: "Roboto", serif;
}

.footer p a {
    font-family: "Lobster", sans-serif;
    line-height: 1.2rem;
}

.footer img {
    width: 10%;
    padding-right: 5px;
}

@media screen and (max-width: 600px) {
    .nyelv {
        display: none;
    }

    .nyelv1 {
        display: flex;
        margin: 0 auto;
        gap: 15px;
        justify-content: center;
        align-items: center;
        background-color: #597081;
        margin-bottom: 20px;
    }

    .classkep {
        width: 28%;
    }

    header {
        margin-bottom: 10px;
    }

    .ua {
        border-right: 5px solid gray;
    }
}