/* @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');

:root {
    --bg-color: rgb(36, 16, 56);
    --primary-color: rgb(209, 223, 252);
    --primary-color-08: rgba(209, 223, 252, 0.8);
    --secondary-color: rgb(243, 184, 246);
    --secondary-color-08: rgba(243, 184, 246, 0.8);
    --max-width: 1024px
}

body {
    margin: 0;
    background: var(--bg-color);
    font-family: "Michroma", "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: var(--primary-color);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-flow: column;
}

#logo {
    display: block;
    height: 8em;
    width: 16em;
    margin: 0 auto;
    background-image: url(./assets/logo.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center center;

    &:hover {
        background-image: url(./assets/logo_hover.png)
    }
}

header, footer {
    padding: 0.5em;
}

nav::before {
  content: "";
  display: block;
  background-image: url(./assets/logo_hover.png)
}



main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2em;
    display: flex;
    align-items: center;
    gap: 3em;

    &.column {
        flex-direction: column;
    }

    img {
        display: block;
        width: 20em;
        height: 20em;
    }
}

a {
    color: var(--secondary-color);
    text-decoration: none;

    &:hover {
        animation: glow-secondary 1s ease-in-out infinite alternate;
    }
}

.question {
    p {
        margin-bottom: 0.5em;
    }

    .answers {
        display: flex;
        justify-content: space-between;
        margin-bottom: 2.5em;
        
        label {
            cursor: pointer;
            &:hover {
                animation: glow-primary 1s ease-in-out infinite alternate;
            }
    
            &:has(input[type="radio"]:checked) {
                color: var(--secondary-color);
            }
    
            input {
                display: none;
            }
        }
    }
}

button {
    background: none;
    border: none;
    color: currentColor;
    appearance: none;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid currentColor;
    border-radius: 0.5em;

    &:hover {
        animation: glow-primary 1s ease-in-out infinite alternate;
    }
}

footer {
    button {
        background: none;
        border: none;
        color: currentColor;
        appearance: none;
        font-size: inherit;
        font-family: inherit;
        cursor: pointer;

        &:hover {
            animation: glow-primary 1s ease-in-out infinite alternate;
        }
    }

    #contact {
        padding: 1.5em;
        border: 2px solid var(--secondary-color);
        background: var(--bg-color);
        color: var(--primary-color);
        max-width: var(--max-width);
    }
    
    [popover] {
        padding: 5em;
    }

} 

@media (max-width: 768px){
    main {
        gap: 1.5em;

        img {
            width: 10em;
            height: 10em;
        }
    }
}


@media (max-width: 580px){
    #logo {
        height: 4em;
        width: 8em;
    }
    main {
        flex-direction: column;
    }
}

@keyframes glow-secondary {
    0% {
        text-shadow: 0 0 10px var(--secondary-color-08);
    }
    100% {
        text-shadow: 0 0 5px var(--secondary-color-08);
    }
}

@keyframes glow-primary {
    0% {
        text-shadow: 0 0 10px var(--primary-color-08);
    }
    100% {
        text-shadow: 0 0 5px var(--primary-color-08);
    }
}