/*selectors*/

body {
    margin:0;
}
nav {
    background-color: #0e2248;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 1em;
    column-gap: 2em;
    p {
        letter-spacing: 0.5em;
        text-align: center;
        padding:0;
        font-family: "Google Sans Code";
    }
    a {
        color:aliceblue;
        font-family: "quantico";
        text-decoration: none;

    }
    li {
        list-style: none;
    }
    ul {
        display: flex;
        flex-direction: row;
        column-gap: 0.6em;
        padding-left: 0;
    }
}

h1 {
    text-align: center;
    font-family: "stalinist one";
    background-image: url(../images/backgroundA.avif);
    background-attachment: fixed;
    background-size: cover;
    margin:0;
    color: aliceblue;
    padding: 2em;
    letter-spacing: 0.25em;
    text-shadow: 5px 2px 10px rgb(86, 111, 133);
}

h2 {
    text-align: center;
    font-family: "quantico";
    letter-spacing: 0.1em;
}

h3 {
    font-family: "quantico";
    color: aliceblue;
    font-size: 2em;
    margin: 0;
    margin-top: 1em;
    }


p {
    color:aliceblue;
    font-family: "google sans code";
    font-size: 1em;
    }

footer {
    background-color: #0E2148;
    padding: 1em;
    & p {
        text-align: center;
    }
}

section {
    max-width: 70vw;
}

img {
    border-radius: 8px;
    box-shadow: 2px 2px 7px #0e2248;
}

form {
    padding: 0;
}

legend {
    font-family: "quantico";
    color: aliceblue;
    padding: 0.5em;
    background-color:#0E2148;
    box-shadow: 2px 2px 7px #0e2248;
    border-radius: 12px;
    font-size: 1.5em;
}


/*classes*/

.card-index {
    display: flex;
    flex-direction: row;
    margin: 1em;
    background-color: #483AA0;
    border-radius: 12px;
    padding:1.5em;
    column-gap: 1em;
    align-items:center;
    box-shadow: 1px 1px 10px #0e2248;
        img{
            width: 40vw;
            height: 35vw;
            }
        h3 {
            font-size: 1.5em;
        }
        a {
            width: 100%;
        }
}

.button {
    border-radius: 8px;
    padding:0.5em;
    font-family: "quantico";
    width: 100%;
}

.img-and-button {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-vertical {
    display: flex;
    flex-direction: column;
    margin: 2em;
    background-color: #483AA0;
    border-radius: 12px;
    padding:0.5em;
    row-gap: 1em;
    align-items:center;
    box-shadow: 1px 1px 10px #0e2248;
    }
        img{
            width: 45vw;
            margin-bottom: 1em;
            }

.text-divider {
        background-color: #483AA0;
        display: flex;
        margin: 2em;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-radius: 12px;
        box-shadow: 1px 1px 10px #0e2248;
    }

.fun-fact-box {
    display: flex;
    flex-direction: column;
    margin: 2em;
    background-color: #483AA0;
    border-radius: 12px;
    padding:0.5em;
    row-gap: 1em;
    box-shadow: 1px 1px 10px #0e2248;
    align-items: center;
        #funFact {
            padding-left: 1.5em;
            padding-right: 1.5em;
        }
        div {
            align-self: center;
            width:100% ;
        }
    }

.question-box {
    background-color: #483AA0;
    margin:2em;
    padding:2em;
    border-radius: 12px;
    box-shadow: 1px 1px 10px #0e2248;
    label {
        color:aliceblue;
        font-family: "quantico";
    }
    p {
        margin: 0;
        margin-bottom: 1em;
    }
    h3 {
        margin:0;
    }
    
}

label:has(.answer-field) {
    font-size: 1.5em;
    font-weight: 700;
}

.answer-field {
    border-radius: 8px;
    padding:0.5em;
    font-family: "quantico";
    margin-bottom: 1em;
    width: 94%;
}

.options-list {
    display: flex;
    flex-direction: column;
    row-gap: 0.5em;
    }

/*pseudo-classes*/

.button:active {
    background-color: #0e2248;
    color: aliceblue;
}

.hover:hover{ 
    transform: scale(1.03);
    letter-spacing: 5px;
    text-decoration: underline;
    transition: transform 0.3s ease;
}

.button:hover{
    background-color:#193e83;
    color: aliceblue;
}

.card-index:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.card-vertical:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.text-divider:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.fun-fact-box:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/*media-query for bigger screens*/

@media screen and (min-width:1024px) {
    nav {
        column-gap: 10vw;
        p {
            font-size: 2vw;
        }
        li {
        font-size: 2vw;
        padding-top:0.5em;
        }
        ul {
            column-gap: 2vw;
        }
    }  

    h1 {
        font-size: 5vw;
    }
    
    h2 {
        font-size: 4vw;
    }
    
    h3 {
        font-size: 2vw;
       }

    p {
        font-size: 1vw;
       }

    .card-index {
       width: 45vw;
       justify-content: space-around;
       padding: 2vw;
       .img-and-button {
        width: 15vw;
       }
       section {
        width: 20vw;
       }
       h3 {
        font-size:3vw;
        margin: 0;
        margin-bottom: 1em;
       }
       p {
        font-size: 1.5vw;
       }
       img {
        width: 15vw;
        height: 15vw;
       }
       .button {
        font-size: 1vw;
       }
    }

    .card-vertical {
       justify-content: space-evenly;
       margin:0;
       section {
        max-width: 15vw;
       }
       img {
        max-width: 15vw;
        min-height: none;
        margin: 0;
        margin: 1em;

       }
    }

    .container {
        display: flex;
        justify-content: space-around;
        margin: 2vw;
        column-gap: 2em;
    }

    .container-vertical {
        display: flex;
        justify-content: space-evenly;
        margin: 3em; 
        flex-direction: row;
        column-gap: 2vw;
    }

    .text-divider {
        background-color: #483AA0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .fun-fact-box {
        justify-content: space-evenly;
        margin:0;
        margin-left: 5vw;
        margin-right: 5vw;
        margin-bottom: 2vw;
        section {
            text-align: center;
        }
        p {
            text-align: center;
        }
        div {
            display: flex;
            flex-direction: row;
            column-gap: 1vw;
        }
        .button {
            font-size: 1vw;
        }
    }

    .container-question-box {
        display: flex;
        justify-content: space-evenly;
        fieldset {
            flex:1;
        }

    }

    .question-box {
        padding: 2.5vw;
        p {
            font-size: 1.5vw;
        }
        label {
            font-size: 1.5vw;
            width: 100%;
        }
        legend {
            font-size: 2vw;
        }
        .answer-field {
            font-size: 1vw;
            width: 97%;
        }
        .button {
            font-size: 1.5em;
            width: 50%;
            margin-left: 25%;
        }
    }

}

/*dark mode*/

@media (prefers-color-scheme: dark) {
    h1 {
        background-image: none;
    }
    body {
        background-image: url(../images/background-dark-mode.avif);
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    h2 {
        color: aliceblue;
        text-shadow: 5px 2px 10px rgb(86, 111, 133);
    }
}