* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;       
    margin: 0;
    transition: background-color 0.5s ease, color 0.5s ease; 
}

.main-content {  
    width: 100%;
    flex: 1 0 auto;     
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 180px 30px;
    box-sizing: border-box;

    background-image: url("/static/homepage/images/roleta.JPG");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.header {
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #1f1f1f;
    border-bottom: 2px solid #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

h1 {
    font-size: 20px;
    color: #fff;
}

.nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: nowrap;
}

.nav a {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: 1px solid transparent;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.nav a:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    border: 1px solid #007bff;
    box-shadow: 0 8px 15px rgba(0, 86, 179, 0.5);
}

.nav a:focus {
    outline: none;
}

.nav a:focus-visible {
    outline: 2px dashed #007bff;
    outline-offset: 3px;
}

.footer {
  width: 100%;
  flex-shrink: 0;
  background-color: #1f1f1f;
  height: 10 0px;         
  align-items: center;      
  justify-content: center; 
}

.footer p {
  font-size: 12px;
  color: #888;
  margin: 0;          
  text-align: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 50px;
    width: auto;
    border-radius: 12px;      
    border: 2px solid #007bff; 
    box-sizing: border-box;   
    transition: border-color 0.3s ease;
}

.brand img:hover {
    border-color: #0056b3;
}

.footer p {
    margin: 0.5rem 0;
}

.footer a {
    color: #0077cc;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* --- Estilo padrão dos links do nav --- */
.nav a:not(.dropdown-toggle) {
    text-decoration: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: 1px solid transparent;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.nav a:not(.dropdown-toggle):hover {
    background-color: #0056b3;
    transform: scale(1.1);
    border: 1px solid #007bff;
    box-shadow: 0 8px 15px rgba(0, 86, 179, 0.5);
}

.nav a:not(.dropdown-toggle):focus {
    outline: none;
}

.nav a:not(.dropdown-toggle):focus-visible {
    outline: 2px dashed #007bff;
    outline-offset: 3px;
}

/* --- Dropdown de idiomas --- */
.language-dropdown {
    position: relative;
}

.language-dropdown a.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    box-shadow: none;
    cursor: pointer;
}

.language-dropdown a.dropdown-toggle img {
    border-radius: 4px;
    display: block;
    transition: transform 0.2s;
}

.language-dropdown a.dropdown-toggle i {
    font-size: 12px;
    margin-left: 2px;
}

.language-dropdown a.dropdown-toggle:hover img {
    transform: scale(1.1);
}

/* Menu suspenso */
.language-dropdown .dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 30px;
    right: 0;
    background: #1f1f1f;
    padding: 3px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* Bandeiras dentro do dropdown */
.language-dropdown .dropdown-menu a img {
    margin: 2px;
    border-radius: 4px;
    display: block;
    transition: transform 0.2s;
}

.language-dropdown .dropdown-menu a img:hover {
    transform: scale(1.1);
}

/* Desativa o outline/foco apenas para links dentro do dropdown */
.language-dropdown .dropdown-menu a,
.language-dropdown .dropdown-menu a:focus,
.language-dropdown .dropdown-menu a:focus-visible {
    outline: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .nav a {
        width: auto;           
        padding: 6px 12px;     
    }

    h1 {
        font-size: 17px;
        color: #fff;
    }
}