/*
*
*   mainstyle.css - History project
*
*       Created 2023 by Janis Hutz
*
*/

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: calc(16pt + 0.4vw);
}

body {
    background-color: gray;
    background-image: url("/assets/bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#nav {
    height: 15vh;
    position: relative;
    z-index: 1;
}

#footer {
    height: 50vh;
}

::selection {
    background-color: cadetblue;
}

.content {
    margin-top: 2%;
    margin-bottom: 2%;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    width: 90%;
    padding: 2.5%;
    margin-left: 2.5%;
}

.title {
    font-size: 2rem;
}

.title::first-letter {
    font-size: 200%;
}

.subtitle {
    font-size: 1.5rem;
}

.subsubtitle {
    font-size: 1.3rem;
} 

.text {
    font-size: 1.2rem;
}

.wrap-image {
    width: 100%;
    height: auto;
}

.explanations {
    color: rgb(97, 97, 97);
    font-style: italic;
}

.cross-reference {
    color: rgb(29, 29, 29);
}

.stack {
    display: inline-flex;
    flex-direction: column;
}

.caption {
    color: rgb(97, 97, 97);
    font-style: italic;
    font-size: 0.8rem;
    margin: 0;
    padding: 0;
    margin-top: 1%;
}

.sources-link {
    margin: 0;
    font-size: 0.7rem;
    padding: 0;
    color: black;
}

.image {
    width: 40vw;
}

/* 
    Media queries to optimise for desktop
*/
@media only screen and (min-width: 999px) {
    #footer {
        height: 30vh;
    }

    .title {
        font-size: 1.8rem;
    }
    
    .title::first-letter {
        font-size: 200%;
    }
    
    .subtitle {
        font-size: 1.4rem;
    } 
    .subsubtitle {
        font-size: 1.2rem;
    } 
    
    .text {
        font-size: 0.9rem;
    }

    .content {
        padding: 5%;
        width: 70%;
        margin-left: 10%;
    }

    .wrap-image {
        float: left;
        width: 40vw;
        height: auto;
        margin-right: 2%;
    }

    .small {
        width: 30vw;
    }

    .smaller {
        width: 25vw;
    }
}