*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
html {
    font-size: 18px;
}
:root {
    --border-radius: 5px;
    --border-width: 2px;
    --color: #27282d;
    --color2:#b2b2b2;
    --color3: #fbefdf;
    --color4: rgb(116, 62, 50);
    --color5: #8d6852;
    --font-family-1: 'Cinzel', serif;
    --font-family-2: 'Aleo', serif;
    --font-family-3: 'Julius Sans One', sans-serif; 
}
body{
    line-height: 1.3;
    font-size: 1rem;
    text-align: justify;
}
a {
    color: inherit;
    text-decoration: none;
}
nav{
    position: fixed;
    min-width: 290px;
    top: 0px;
    left: 0px;
    height: 100vh;
    width: 350px;
    padding-left: 10px;
}
nav header{
    background-color: var(--color);
    color: var(--color2);
    text-align: center;
    font-family: var(--font-family-2);
    font-size: 1.2rem;
    padding-top: 20px;
}
nav ul{
    list-style-type: none;
    background-color: var(--color);
    color: var(--color2);
    text-align: left;
}
li{
    padding: 10px 0px;
    border-bottom: var(--color3);
}
nav li{
    border-bottom: solid;
    border-color:var(--color2);
    padding: 20px 0px 10px 10px;
}
h1{
    text-align: center;
    color: var(--color4);
    font-family: var(--font-family-1);
    padding: 50px 0px;
}
main{
    position: absolute;
    left: 350px;
    padding: 0px 20px;
    min-height: 100%;
}
p { 
    text-indent: 30px;
}
.main-section{
    margin:20px 0px;
}
.main-section p{
    padding: 10px 0px;
}
h2{
    font-size: 1rem;
    color: var(--color5);
    font-family: var(--font-family-3);
}
section ul{
    padding-inline-start: 20px;
}
.viruela{
    width: 250px;
    height: auto;
}
.cholera{
    width: 240px;
    height: auto;
}
.choleraBox, .viruelaBox{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cells{
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.cells img{
    width: 250px;
}
.lastSection{
    padding-bottom: 80px;
}
footer{
    position: absolute;
    bottom: 0;
    left:0;
    width: 100%;
    background-color: var(--color4);
}
.footer{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px;
}
footer p{
    font-size: 0.5rem;
    color: #f2efea;
    text-indent: 0px;
}
.reference{
    padding: 0px 8px 8px 8px;
}
.icono{
    width: 40px;
}
@media (max-width: 640px){
    nav{
        position: absolute;
        top: 0;
        left: 0;
        width:100%;
        min-width: 270px;
        height: auto;
        padding:0px;
    }
    main{
        position:relative;
        top: 400px;
        left: 0px;
        width: 100%; 
    }
    .cells img{
        width: 50%;
    }
    .viruela{
        width: 50%;
    }
    .lastSection{
        padding-bottom: 130px;
    }
    h1{
        font-size: 1.5rem;
        padding-top: 20px;
    }
}