html { 
    font-family: 'Open sans', sans-serif;
    color: #000000;
    font-size: 14px;
}

body { 
    margin: 0; 
    padding: 0; 
    background-color: lightgray;
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

button {
    background-color: #94D58E;
    border: 1px solid gray;
    border-radius: 10px;
    color: black;
    font-size: 24px;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

button:hover {
    background-color: darkgreen;
    color: white;
    cursor: pointer;
}

h1 { 
    font-weight: 300;
    font-size: 38px;
    margin: 0px;
    line-height: 120%;
}

a { 
    color: white;
    text-decoration: none;
}

.credits{
    color: blue !important;
}

a:hover { 
    color: #D80649;
    text-decoration: none;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

.relativotey-container {
    background-color: rgba(50, 50, 255, 0.8);
    border: 1px solid black;
    border-radius: 25px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 80vh;
    width: 30vw;
    min-width: 400px;
    z-index: 10;
    padding: 20px;
    text-align: center;
}

.relativotey-container form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.relativotey-container form label {
    padding: 20px 0;
}

.relativotey-container form select {
    font-size: 24px;
}

.relativotey-container form input {
    font-size: 18px;
    padding: 10px 0;
}

.relativotey-container form button {
    margin-top: 20px;
}

.caption-container button {
    margin-top: 15px;
}

#load-data-auto {
    justify-content: center;
    display: none;
}

#load-data-auto button {
    margin-top: 50px;
}

#load-data-manual {
    display: none;
}

#loading-screen {
    display: none;
}

#bottom-container {
    display: none;
}

#people {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#people img {
    width: 80px;
}

.people-crop {
    overflow: hidden;
    margin: 0;
}
.people-crop img {
    display: block;
    margin: 0;
}

.buttons button {
    margin-top: 10px;
}

#another-district {
    display: none;
}

#map { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    width: 100%;
    z-index: -1;
}


#legend {
    justify-content: center;
    font-size: 11px;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    background-color: #0a0a0a;
    color: #eeeeee;
    position: absolute; 
    top: 0; 
    bottom: 0; 
    width: 200px;
    height: 85px;
    opacity: 0.8;
    z-index: 12;
    display: none
}
    
#vote-encourage-desktop {
    background-color: lightgreen;
    position: absolute;
    bottom: 10px;
    left: 10px;
    height: 120px;
    width: 300px;
    z-index: 10;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vote-box-text {
    margin: 0;
    padding-bottom: 10px;
    text-align: center;
}

.vote-box-icons {
    display: flex;
    margin-top: 10px;
}

.vote-box-icons i {
    margin: 0 10px;
    font-size: 24px;
}

#vote-power-share-desktop {
    background-color: lightgreen;
    position: absolute;
    bottom: 10px;
    right: 10px;
    height: 100px;
    width: 300px;
    z-index: 10;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.explanation-container {
    background-color: #eeeeee;
    text-align: center;
    padding: 20px;
    width: 80vw;
}

.explanation-header-container {
    margin: 10px;
}
.explanation-header {
    font-size: 2em;
}
h2.explanation-header {
    margin: 0;
    line-height: 1.5;
}

.explanation-group-block {
    display: flex;
    flex-direction: row;
}

.explanation-group {
    display: flex;
    flex-direction: column;
}

.explanation-text {
    font-size: 2em;
    padding: 0 5%;
}

.explanation-number {
    color: blue;
    font-size: 3em;
    font-weight: bold;
}

.explanation-number p {
    margin: 0;
}

.explanation-button {
    margin: 20px 0;
    padding: 10px;
}

.vote-encourage-form {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.vote-encourage-form * {
    padding-right: 5px;
}

.vote-encourage-form button {
    font-size: inherit;
}

#vote-encourage-mobile, #vote-power-share-mobile {
    display: none;
}

.about-container {
    background-color: #eeeeee;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    width: 80vw;
    display: inline;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-container h2 {
    font-size: 2em;
    font-weight: bold;
}

.button-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.button-row button {
    width: 40%;
}

/* INTERACTIVE MENU */
#menu {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: white;
    margin-right: 10px;
    padding: 8px;
    border-radius: 4px;
    border: rgb(221, 221, 221);
    box-shadow: 0px 0px 0px 2px rgb(221, 221, 221);
    color: #222;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Tablet Landscape */
/* @media screen and (max-width: 1060px) {
    #primary { width:67%; }
    #secondary { width:30%; margin-left:3%;}  
} */
/* Tablet Portrait */
/* @media screen and (max-width: 768px) {
    #primary { width:100%; }
    #secondary { width:100%; margin:0; border:none; }
} */

@media only screen and (max-width: 960px) { 
    body {
        font-size: 1rem;
    } 
} 

@media only screen and (max-height: 750px) {
    #people img {
        width: 60px;
    }
}

/* Responsive on mobile */
@media only screen and (max-width: 600px) {
    body {
        min-height: calc(100vh - 50px);
    }
    button {
        font-size: 1.2em;
        padding: 5px;
    }
    .container {
        min-height: calc(100vh - 50px);
        height: 100%;
    }
    .relativotey-container {
        height: 90%;
        width: 90%;
        min-width: auto;
        padding: 5px;
    }
    .relativotey-container img {
        max-width: 80vw;
    }
    #vote-encourage-desktop, #vote-power-share-desktop {
        display: none !important;
    }
    #people img {
        width: 60px;
    }
    .explanation-group-block {
        flex-direction: column;
    }
    #vote-encourage-mobile {
        background-color: lightgreen;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 10px;
    }
    #vote-power-share-mobile {
        background-color: lightgreen;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 10px;
    }
    .vote-box-icons a {
        font-size: 1.4em;
    }
}

