body {
    background-color: #1c2c36;
    padding: 0;
    margin: 0;
}

main {
    width: 1200px;
    height: 750px;
    background-color: #1d2336;
    margin: 0 auto;
    color: #e3e8f7;
    position: relative;
    font-family: "Quicksand", sans-serif;
    font-weight: 300;
}

section {
    background-color: #1c2c36;
    position: absolute;
    width: 650px;
    height: 450px;
    left: 100px;
    top: 50px;
    overflow: hidden;
}

#routes img {
    /* position: absolute; */
    transform-origin: top left;    
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards 0.4s;
    /* transition: transform 0.5s ease-in-out; */
}

#map {
    /* position: absolute;   */
    transform-origin: top left; 
    transition: transform 0.5s ease-in-out;
    /* animation: fadeIn 1s ease-in-out forwards 1s; */
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.map0, .map1, .map2, #firstMotion {
    transform: scale(3.5) translate(-120px,-50px);
}

.map3, #secondMotion {
    transform: scale(1.6) translate(-50px, -50px);
}

.map4 {
    transform: scale(3) translate(-250px, -200px);
}

.map5, #thirdMotion {
    transform: scale(2.8) translate(-350px, -200px);
}

.map6, #fourthMotion {
    transform: scale(1.5) translate(-30px, -30px);
}

.map7, #routeSummary {
    transform: scale(1.32) translate(-30px);
}

#routes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* #firstMotion {
    left: -150px;
    top: 0;
    transform: scale(1.8);
} */

article {
    box-sizing: border-box;
    position: absolute;
    background-color: #261c36 ;
    border: solid 3px #c58ede;
    right: 100px;
    top: 50px;
    width: 300px;
    height: 450px;
    border-radius: 15px;
    padding: 15px;
}

h1 {
    font-family: "Science Gothic", sans-serif;
    font-weight: 400;
    text-align: center;
    margin-top: 40px;
}

article p {
    text-align: center;
    font-size: 1.4em;
}

#textContainer {
    height: 120px;
    display: grid;
    align-items: center;
    /* border: solid 1px  white; */
}

#buttons {
    position: absolute;
    bottom: 50px;
    display: flex;
    width: 90%;
    left: 5%;
    gap: 20px;
}

button {
    background: none;
    border: none;
    color: #e3e8f7;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    width: 70px;
    flex: 1;
    height: 50px;
    font-size: 1.3em;
}

button:hover {
    background-color: #e2c7ef;
    color: #261c36;
    cursor: pointer;
}

#total {
    box-sizing: border-box;
    position: absolute;
    top: 520px;
    width: 1000px;
    height: 200px;
    left: 100px;
    /* background-color: #aabae6; */
}

#total p {
    text-align: center;
    font-family: "Science Gothic", sans-serif;
    font-weight: 400;
    font-size: 1.6em;
}

#bar {
    position: absolute;
    width: 100%;
    height: 100px;
    /* background-color: #e2c7ef; */
    bottom: 20px;
    border: #e2c7ef solid 2px;
    display: flex;
    gap: 0;
}

.routeBar {
    height: 100%;
    width: 100%;
    transition: 1s flex ease-in-out;
}

#route1 {
    background-color: #b072b0;
    flex: 0;
}

#misc {
    background-color: #d1d1d1;
    flex: 0;
}

#route2 {
    background-color: #c7dfef;
    flex: 0;
}

#route3 {
    background-color: #e5d79b;
    flex: 0;
}

#route4 {
    background-color: #e85d7e;
    flex: 0;
}

#invis {
    flex: 1;
}

.hidden {
    display: none;
}

