body, html
{
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

nav
{
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 15px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav .logo-container
{
    display: flex;
    align-items: center;
}

nav ul
{
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

nav ul li
{
    margin: 0 5px;
    margin-bottom: 10px;
}

nav ul li a
{
    text-decoration: none;
    color: white;
    font-size: 0.9em;
    padding: 6px 10px;
    border-radius: 5px;
    position: relative;
    transition: color 0.3s;
    text-transform: uppercase;
}

nav ul li a:hover::before, nav ul li a::before
{
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 204, 204, 0.8);
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
    visibility: hidden;
}

nav ul li a:hover::before
{
    transform: scaleX(1);
    visibility: visible;
}

.site-name
{
    color: white;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
}

.menu-container
{
    position: relative;
    display: flex;
    align-items: center;
}

.menu-three-points
{
    cursor: pointer;
    color: white;
    font-size: 1.5em;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.menu-three-points div
{
    width: 20px;
    height: 2px;
    background-color: white;
    margin: 2px 0;
}

.dropdown-menu
{
    position: absolute;
    right: 21px;
    top: calc(100% + 10px);
    background: rgba(0, 0, 0, 0.8);
    list-style: none;
    margin: 0;
    padding: 10px;
    border-radius: 5px;
    animation: fadeIn 0.3s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 150px;
}

.dropdown-menu.hidden
{
    display: none;
}

.dropdown-menu li
{
    margin: 5px 0;
}

.dropdown-menu li a
{
    text-decoration: none;
    color: white;
    font-size: 0.8em;
    padding: 6px 10px;
    display: block;
    transition: background 0.3s;
}

.language-selector
{
    display: inline-block;
    cursor: pointer;
    margin-right: 15px;
}

.language-selector img.current-language
{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    vertical-align: middle;
}

.language-popup
{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    max-width: 90%;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px 20px 20px 20px;
    padding-top: 40px;
}

.language-popup-content
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding-right: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.language-card
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px;
    width: 90px;
    height: 100px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    margin: 5px;
    flex: 1 1 calc(33.33% - 20px);
    box-sizing: border-box;
}

.language-card:hover
{
    transform: translateY(-3px);
}

.language-card img
{
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.language-card span
{
    color: #fff;
    font-size: 0.9em;
    font-weight: bold;
}

.language-popup.show
{
    opacity: 1;
    visibility: visible;
}

.close-button-language
{
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

.close-button-language:hover
{
    color: rgba(255, 255, 255, 0.7);
}

.notification-container
{
    position: fixed;
    top: 50px;
    right: 10px;
    width: 320px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification
{
    position: relative;
    background-color: #2c3e50;
    color: #ecf0f1;
    border-radius: 10px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
    overflow: hidden;
}

.notification-header
{
    background-color: #34495e;
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title
{
    font-size: 15px;
    font-weight: bold;
    color: #ecf0f1;
}

.notification-body
{
    padding: 15px 20px;
}

.notification-progress
{
    height: 4px;
    background-color: #1abc9c;
    width: 0;
    border-radius: 0 0 10px 10px;
    transition: width linear 3s;
    position: absolute;
    bottom: 0;
    left: 0;
}

.notification.visible
{
    opacity: 1;
    transform: translateX(0);
}

.notification.hidden
{
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.container
{
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
    max-width: 800px;
    margin: 60px auto;
    color: white;
    height: calc(100vh - 120px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

.container:hover
{
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
    transition: box-shadow 0.3s;
}

.background-images
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image
{
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.background-image.active
{
    opacity: 1;
}

#customMenu
{
    display: none;
    position: absolute;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
    z-index: 1000;
    min-width: 180px;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
    color: #f5f5f5;
}

#customMenu ul
{
    list-style: none;
    padding: 0;
    margin: 0;
}

#customMenu ul li
{
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s, transform 0.2s, color 0.3s;
    border-bottom: 1px solid #333;
    font-size: 14px;
}

#customMenu ul li:hover
{
    background: #333;
    color: #e0e0e0;
    transform: translateX(2px);
}

#customMenu ul li:last-child
{
    border-bottom: none;
}

#customMenu ul li i
{
    margin-right: 10px;
    color: #bbb;
    font-size: 14px;
}

*::-webkit-scrollbar
{
    width: 10px;
}

*::-webkit-scrollbar-track
{
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

*::-webkit-scrollbar-thumb
{
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8), inset 0 0 3px rgba(255, 255, 255, 0.4);
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border 0.2s ease-in-out;
}

*::-webkit-scrollbar-thumb:hover
{
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.9), inset 0 0 5px rgba(255, 255, 255, 0.6);
}

*::-webkit-scrollbar-thumb:active
{
    background: rgba(255, 255, 255, 0.7);
}

*::-webkit-scrollbar-thumb:before
{
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(200, 200, 200, 0.7));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

*::-webkit-scrollbar-thumb:hover:before, *::-webkit-scrollbar-thumb:active:before
{
    opacity: 1;
}

.hidden
{
    display: none;
}

/* KeyFrames */
@keyframes fadeIn
{
    from
    {
        opacity: 0;
        transform: scale(0.95);
    }
    to
    {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsividades */
@media (max-width: 768px)
{
    body, html
    {
        overflow: auto;
    }

    nav .logo-container
    {
        justify-content: center;
        font-size: 0.9em;
    }

    nav ul
    {
        align-items: center;
        margin: 2px 0;
        font-size: 0.6rem;
    }

    nav ul li
    {
        margin: -15px 0;
    }

    .site-name
    {
        font-size: 0.6em;
    }

    .container
    {
        margin-left: 5%;
        margin-right: 5%;
        padding: 10px;
        font-size: 0.6em;
    }

    .menu-three-points
    {
        font-size: 1.2em;
    }

    .dropdown-menu
    {
        width: 100px;
    }
}

@media (max-width: 480px)
{
    body, html
    {
        overflow: auto;
    }
    
    nav .logo-container
    {
        justify-content: center;
        font-size: 0.4em;
    }

    nav ul
    {
        align-items: center;
        margin: 0px 0;
        font-size: 0.4rem;
    }

    nav ul li
    {
        margin: -15px 0;
    }

    .site-name
    {
        font-size: 0.5em;
    }

    .container
    {
        margin-left: 5%;
        margin-right: 5%;
        padding: 10px;
        font-size: 0.4em;
    }

    .menu-three-points
    {
        font-size: 1em;
    }
                      
    .dropdown-menu
    {
        width: 80px;
    }
}