
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --border-color: #bd0b0b;
    --logo-color: red;
}

body.light-mode {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #ff6b6b;
    --logo-color: #e50914;
}

body {
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

main {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--logo-color);
    font-size: 28px;
    font-weight: bold;

}

.profiles {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
}

.profile {
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.profile:hover {
    transform: scale(1.1);
    transform: translateY(-10px);

}

.profile a {
    text-decoration: none;
    color: var(--text-color);
}

.profile img {
    border-radius: 10px;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
    width: 150px;
    height: auto;
}

.profile:hover img {
    border-color: var(--border-color);
}

.profile p {
    margin-top: 10px;
    font-size: 1.2rem;
}
.switch {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 70px;
    height: 35px;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    cursor: pointer;
    background-color: #1a1a1a;
    border-radius: 50px;
    width: 70px;
    height: 35px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-color);
}

body.light-mode .slider {
    background-color: #f0f0f0;
}

.slider::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    top: 2px;
    left: 0px;
    background: transparent;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: none;
}

input:checked + .slider::before {
    transform: translateX(40px); */ width: 70px - 28px - 2px (border) * /
}

.icon {
    position: absolute;
    font-size: 16px;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.moon {
    left: 2px;
    opacity: 1;
}

.sun {
    right: 2px;
    opacity: 0;
}

input:checked + .slider .moon {
    opacity: 0;
}

input:checked + .slider .sun {
    opacity: 1;
}

body.light-mode .slider .moon {
    opacity: 0;
}

body.light-mode .slider .sun {
    opacity: 1;
}
/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .logo {
        font-size: 20px;
        top: 10px;
        left: 10px;
    }

    .profiles {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .profile img {
        width: 100px;
    }

    main {
        padding: 10px;
    }
    
}

/* Responsividade para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    h1 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .logo {
        font-size: 24px;
    }

    .profiles {
        gap: 25px;
    }

    .profile img {
        width: 120px;
    }

    main {
        padding: 15px;
    }
}