@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400..600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

:root {--eggshell: #F4F1DE;}

#home {
    --main: #81B29A;
    --shade: #53826C;
}

#analysis {
    --main: #64495A; 
    --shade: #392131;
}

#resources {
    --main: #F2CC8F;
    --shade: #BE9B61;
}

#error {
    --main: #AD4865;
    --shade: #7A163B;
}

body {
    background-color: var(--eggshell);
    margin: 0;
    font-family: "Roboto", sans-serif;
}

#logo {
    width: auto;
    height: 60px;
    display: block;
    margin: 10px auto;
}

h1 {
    color: var(--shade);
    font-family: "Quicksand", monospace;
    font-weight: 400;
    text-align: center;
    margin-top: 4px;
    padding: 4px;
    margin-bottom: 4px;
}

h2  {
    color: var(--main);
    font-family: "Quicksand", monospace;
    font-weight: 500;
    margin-bottom: 0;
}

h3 {
    margin: 5px;
    font-size: 2vh;
}

nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
}

nav ul {
    list-style-type: none;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0;
    background-color: var(--main);
    font-weight: 500;
}

ul, h3 {
    font-family: "Quicksand", monospace;
    font-weight: 600;
}

nav a {
    color: var(--eggshell);
    text-decoration: none;
    padding: 5px 15px;
    display: block;
}

#nav-main, nav a:hover {
    color: var(--main);
    background-color: var(--eggshell);
}

main {margin-bottom: 40px;}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px;
    background-color: var(--main);
}

small {
    font-size: 15px;
    display: block;
    color: var(--eggshell);
    text-align: center;
    margin: 0;
    padding: 10px;
    font-family: "Quicksand", monospace;
}

#home main {
    width: 100vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#home h2 {
    color: var(--shade);
    text-align: center;
}

#home p {
    color: var(--main);
    text-align: center;
    font-size: 18px;
}

#sitemap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.location {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    padding: 2px 16px;
    margin: 15px;
    width: 20%;
    text-decoration: none;
}
  
.location:hover {box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);}

#analysis main {
    display: flex;
    flex-direction: row;
}

#menu {
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    margin: 50px;
    width: 15vw;
    position: fixed;
    top: 19%;
}

.card {
    text-align: center;
    border-radius: 6px;
    color: var(--main);
    border: 3px solid var(--shade);
    margin-bottom: 25px;
}

.card:hover, .card-active {
    background-color: var(--main);
    color: var(--eggshell);
}

main a {color: var(--inherit);}

.info-c {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 25px 50px 10px 25vw;
    max-width: 50vw;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    border-bottom: var(--shade) solid 5px;
}

#intro {
    margin-top: 10px;
    padding: 0;
}

.description {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 10px;
}

.info-p {
    margin-top: 10px;
    color: var(--shade);
}

#overviews {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(2, auto);
    grid-gap: 0px 30px;
    width: 80%;
    margin: 10px auto;
}

#overviews h3 {
    color: var(--main);
    font-weight: 500;
    margin: 0;
    text-align: center;
}

table {
    border-collapse: collapse;
    width: 80%;
    margin: auto;
    color: var(--shade);
}

th, td {
    border: 1px solid var(--main);
    padding: 8px;
    text-align: center;
    width: 50vw;
}

tr:nth-child(even) {background-color: #DDD;}

#tooltip {
    border-bottom: 2px dotted var(--shade);
}

.analysis-s {
    border: 3px solid var(--main);
    padding-bottom: 10px;
    width: 80%;
    margin: 20px auto auto auto;
}

.analysis-s > * {margin: 10px 10px 0px;}

.sim-s {margin: 20px 0 0;}

.sim-s > * {margin-bottom: 10px;}

.sim-s img {
   width: 80%;
   height: auto;
   -moz-box-shadow: 0px 0px 30px 3px var(--shade);;
   -webkit-box-shadow: 0px 0px 30px 3px var(--shade);;
   box-shadow: 0px 0px 30px 3px var(--shade);
   margin: 20px 10%;
}

#ballot {
    margin: 120px 10px 10px 50px;
    position: fixed;
    top: 19%;
    left: 78vw;
    width: 15vw;
    height: auto;
}

#resources main {
    margin: 20px auto 50px;
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px 50px;
    height: auto;
    justify-content: center;
}

#resources h1 {
    color: var(--main);
}

.resource {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#resources main img {
    width: 200px;
    border-radius: 10px;
}

.desc {
    margin-left: 10px;
    color: var(--shade);
    width: 25vw;
}

#error main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

#error-text {
    display: flex;
    flex-direction: column;
    margin-left: 50px;
    width: 50%;
}

#error-line {
    text-align: left; 
    width: max-content;
}

#return-link {
    text-decoration: none;
    color: var(--main);
    width: max-content;
    padding: 4px;
}

#return-link:hover {color: var(--shade);}