body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #141414;
    background-image: url('./black_back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    transition: background 0.3s, color 0.3s;
    position: relative;
    overflow: hidden;
}

@media (prefers-color-scheme: light) {
    body {
        background-color: #fff;
        background-image: url('./write_back.jpg');
    }
}
body.light {
    background-color: #f5f5f5;
    background-image: url('./write_back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #222;
}

/* Removido body::before para não sobrescrever o background principal */

header {
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px 0 48px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
}

.logo {
    height: 96px;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: inherit;
    transition: color 0.3s;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

h1 {
    margin-bottom: 32px;
    font-size: 2rem;
    font-weight: 600;
}

.profiles {
    display: flex;
    gap: 32px;
}


.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border-radius: 0;
    padding: 0;
    transition: background 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: none;
}

body.light .profile {
    background: none;
}


.profile img {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
    background: #fff;
    box-sizing: border-box;
    transition: box-shadow 0.3s, border 0.3s;
}

.profile:hover img {
    box-shadow: 0 0 0 4px #fff, 0 2px 8px rgba(0,0,0,0.3);
    border-radius: 12px;
}


/* Nomes dos perfis estilizados como links elegantes */
.profile span, .profile a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s, text-shadow 0.2s;
    display: block;
    margin-top: 0.5rem;
    text-align: center;
}

.profile a:visited {
    color: #e5e5e5;
}

.profile a:hover, .profile a:focus {
    color: #ff2a2a;
    text-shadow: 0 2px 8px #000a;
}

.profile a,
.profile a:visited,
.profile a:hover,
.profile a:focus,
.profile a:active {
     text-decoration: none !important;
}

@media (max-width: 700px) {
    .profiles {
        flex-direction: column;
        gap: 20px;
    }
    header {
        padding: 16px 16px 0 16px;
    }
}
