@font-face {
    font-family: 'BoldsPixels';
    src: url('BoldsPixels.ttf');
  }

:root {
    --font: 'BoldsPixels', monospace;
    --background: white;
    --color: #232333;
}

body{
    background-color: var(--background);
    color: var(--color);
    font-family: var(--font);
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    display: flex;
    min-height: 100vh;
    min-width: 100vw;
    flex-direction: column;
}

.container {
    flex: 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.content{
    display: flex;
    flex-direction: column;
    flex: 1 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
}

footer{
    text-align: center;
    font-size: 0.75rem;
    font-weight: 400;
    padding-bottom: 20px;
}

#userPhoto{
    width: 96px;
    height: 96px;
    display: block;
    margin: 35px auto 20px;
    border-radius: 25%;
    border: solid var(--color) 2px;
    transition: transform 0.3s ease;
}

#userPhoto:hover {
    transform: scale(1.1);
}

#userName{
    width: 100%;
    font-size: 6rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    line-height: 1;
    display: block;
    color: var(--color);
    margin-bottom: 2rem;
}

#userUrl{
    width: 100%;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    line-height: 1;
    display: block;
    color: var(--color);
}

#links{
    max-width: 95%;
    min-width: 75%;
    display: block;
    margin: 27px auto;
    text-align: center;
}

.link{
    display: block;
    margin-bottom: 20px;
    padding: 17px;
    font-size: 2rem;
    font-weight: 500;
    border-radius: 8px;
    border: dashed var(--color) 3px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    text-decoration: none;  
    color: var(--color);  
    word-wrap: break-word;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.link2{
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: dashed var(--color) 2px;
    text-align: center;
    text-decoration: none;  
    color: var(--color);  
    word-wrap: break-word;
    margin-left: 4rem;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.link2:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.linkLogo{
    display: inline-block;
    max-height: 1.5rem;
    max-width: 1.5rem;
    margin-right: 1rem;
}

/* Animation for schedule toggle */
#gancioEvents {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(-20px);
    margin-top: 20px;
}

#gancioEvents.expanded {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #userName {
        font-size: 3rem;
    }
    
    .link {
        font-size: 1.5rem;
        padding: 12px;
    }
    
    .link2 {
        margin-left: 1rem;
        font-size: 0.9rem;
    }
    
    #userPhoto {
        width: 120px;
        height: 120px;
    }
}

/* Invert backgrounds for light theme */
@media (prefers-color-scheme: light) {
    .link {
        background: rgba(0, 0, 0, 0.01);
    }

    .link:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .link2 {
        background: rgba(0, 0, 0, 0.1);
    }

    .link2:hover {
        background: rgba(0, 0, 0, 0.2);
    }
    
    /* Invert SVG for light theme */
    #userPhoto {
        filter: invert(1);
    }
}

@media (prefers-color-scheme: dark) {
    :root {        
        --background: #111113;
        --color: white;
    }
}

/* Live glow */
@keyframes pulse {
    0% { box-shadow: 0 0 5px #00ff00; }
    50% { box-shadow: 0 0 20px #00ff00; }
    100% { box-shadow: 0 0 5px #00ff00; }
}

.live-glow {
    animation: pulse 2s infinite;
}
