html, body {
    height: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Alike Angular', serif;
    background: url('../images/background1.webp') no-repeat center center fixed;
    background-size: cover;
    color: #d4af37;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: #F54B38;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main {
    flex: 1 0 auto;
    max-width: 80%;
    min-width: 60%;
    margin: 0 auto;
    background-color: #0d0d0d;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: #1a1a1a;
    border-bottom: 3px solid #f5c518;
    border-radius: 0 0 10px 10px;
}

header .logo img {
    max-height: 80px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav ul li {
    position: relative;
}

header nav ul li a {
    color: #faa400;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav ul li a:hover {
    background-color: #e63946;
    color: #ffffff;
}

nav ul li a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: bold;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background-color: #1a1a1a;
    color: #f5c518;
    padding: 20px;
    border-top: 3px solid #f5c518;
    border-radius: 10px 10px 0 0;
    flex-shrink: 0;
    flex-wrap: wrap;
}

footer .footer-section {
    flex: 1;
    text-align: center;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding-top: 10px;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    box-sizing: border-box;
}

footer .footer-section ul,
footer .footer-section p.full,
footer .footer-section p.short {
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer .footer-section p.footer-heading {
    color: #F43A25;
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    line-height: 1;
}

footer .footer-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-direction: row;
    margin-top: 8px;
    margin-bottom: 0;
}

footer .footer-section ul li a {
    color: #f5c518;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

footer .footer-section ul li a img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

footer .footer-section ul li a img:hover {
    transform: scale(1.1);
}

footer .footer-section p.full {
    display: block;
}

footer .footer-section p.short {
    display: none;
}

footer .footer-section.tot {
    position: relative;
}

footer .footer-section.tot::before,
footer .footer-section.tot::after {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: #f5c518;
    border-radius: 1px;
    opacity: 0.8;
}

footer .footer-section.tot::before {
    left: -15px;
}

footer .footer-section.tot::after {
    right: -15px;
}

.footer-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}

@media (max-width: 768px) {

    header {
        padding: 10px 15px;
    }

    header nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    header nav ul li a {
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    header .logo img {
        max-height: 35px;
    }

    footer {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 10px;
    }

    footer .footer-section {
        flex: 1 1 33%;
        margin: 0 5px;
        padding-top: 5px;
    }

    footer .footer-section p.footer-heading {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    footer .footer-section ul {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    footer .footer-section ul li {
        width: max-content;
    }

    footer .footer-section ul li a {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 0.75rem;
        gap: 4px;
        width: 100%;
    }

    footer .footer-section ul li a img {
        width: 16px;
        height: 16px;
    }

    footer .footer-section p {
        font-size: 0.75rem;
    }

    footer .footer-section p.full {
        display: none;
    }

    footer .footer-section p.short {
        display: block;
    }

    footer .footer-icon {
        margin-right: 2px;
        width: 16px;
        height: 16px;
    }

    footer .footer-section.tot::before {
        left: -5px;
    }

    footer .footer-section.tot::after {
        right: -5px;
    }

    footer .footer-section.tot::before, footer .footer-section.tot::after {
        top: 30%;
        bottom: 10%;
    }

    footer .footer-section p.footer-heading::after {
        content: attr(data-mobile-label);
        display: inline;
        margin-left: 4px;
    }

    footer .footer-section p.footer-heading .desktop-label {
        display: none;
    }
}

@media (max-width: 440px) {

    header {
        justify-content: flex-start;
        gap: 30px;
        flex-wrap: wrap;
    }

    header nav ul {
        justify-content: flex-start;
    }

    header .logo {
        flex: 0 0 auto;
    }

    header nav {
        flex: 1;
    }

    header nav ul li a {
        font-size: 0.6rem;
        padding: 4px 6px;
    }
}

@media (max-width: 400px) {

    header {
        justify-content: flex-start;
        gap: 20px;
        flex-wrap: wrap;
    }

    header nav ul {
        justify-content: flex-start;
    }

    header .logo {
        flex: 0 0 auto;
    }

    header nav {
        flex: 1;
    }

    header nav ul li a {
        font-size: 0.6rem;
        padding: 2px 3px;
    }
}