@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;700&family=Baloo+Thambi+2:wght@400;500;700&family=Fugaz+One&family=Racing+Sans+One&display=swap');

:root {
    --orange: #F1A04B;
    --blue: #69BEC2;
    --lightGreen: #96D4BE;
    --green:#255A4B;
    --gray: #F1EDEE;
    --title: 'Racing Sans One', 'Fugaz One', cursive;
    --body: 'Baloo Thambi 2', 'Baloo 2', cursive;
}

* {
    /* border: solid 1px #000; */
    box-sizing: border-box;
}

html,
body {
    font-family: var(--body);
    line-height: 1.5;
    letter-spacing: 1px;
    padding: 0;
    max-width: 100%;
    max-height:100%;
    margin: 0 auto;
    overflow-x: hidden;
    position: relative;
}
.map-page{
    overflow-y:hidden;
}

main {
    min-height: calc(100vh - 70px);
}

#logo {
    width: 77px;
    height: auto;
    margin-top: 0.8rem;
    margin-left: 1rem;
}

/* header toggle*/
nav {
    display: none;
    position: absolute;
    padding-top: 6.2rem;
    right: -100vw;
    top: 0;
    width: 100%;
    z-index: 1;
    background-color: #255A4B;
    height: 100vh;
    transition: all 300ms cubic-bezier(0.18, 0.05, 0.03, 0.95);
}

nav ul {
    padding: 2rem;
}

nav ul li {
    border-bottom: dashed 7px white;
    margin: 1.8rem 0;
    list-style: none;
    font-size: xx-large;
    padding: 0 1rem .5rem;
}
nav ul li > a {
    text-decoration: none;
    color: white;
}

/* nav toggle */
label[for=toggle] {
    position: absolute;
    right: 18px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    top: 9px;
    max-width: 2rem;
}

label[for=toggle] span {
    background-color: #255A4B;
    z-index: 3;
    width: 2rem;
    height: .15rem;
    display: block;
    margin: 0;
    transition: all 300ms cubic-bezier(0.18, 0.05, 0.03, 0.95);
}

/* hamburger toggle */
label[for=toggle] span:first-child {
    transform-origin: 0% 0%;
}

label[for=toggle] span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

#toggle {
    appearance: none;
    display: none;
    cursor: pointer;
}

#toggle+label {
    cursor: pointer;
    height: 2em;
    color: #255A4B;
    text-align: center;
    transition: all 350ms ease;
}

#toggle:checked~nav {
    display: block;
    right: 0;
}

#toggle:checked~aside {
    right: -40rem;
}

#toggle:checked~label[for=toggle] span {
    opacity: 1;
    transform: rotate(45deg) translate(-.3rem, -.4rem);
    background-color: white;
    
}

#toggle:checked~label[for=toggle] span:nth-last-child(2) {
    transform: rotate(-45deg) translate(-.3rem, .85rem);
}

#toggle:checked~label[for=toggle] span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

/* footer */
footer {
    background-color: var(--green);
}
h4 {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 500;

}
.mention {
    padding-top: 1rem;
    color: white;
    padding: 0 1rem;
    padding: 0.5px 1rem;
}
.mention > ul {
    list-style-type: none;
    font-weight: 400;
}
.mention > ul > li > a {
    color: white;
    font-weight: 400;
}
.media {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}
.contact {
    line-height: 1.5;
    padding: 1rem 0;
    margin-top: 0;
}
.contact > li {
    border-bottom: solid 1px white;
    padding: 0.2rem 0;
    margin: 0.5rem 0;
}
.contact > li > i {
    margin-right: .5rem;
}

.bottomLine {
    background-color: var(--orange);
    width: 100%;
    height: 2vh;
}

/* home page */
.title {
    font-family: var(--title);
    text-align: end;
    margin: 2rem 2.5rem;
}
.orangeT {
    margin: 0;
    color: var(--orange);
    font-size: 1.3rem;
    letter-spacing: 1px;
}
.btwdT {
    margin: 0;
    font-size: 2.4rem;
    color: var(--green);
}
.greenT {
    margin: 0;
    font-size: 1rem;
    color: var(--green);
}

.mapBox {
    display: flex;
    justify-content: center;
    width: 350px;
    height: 250px;
    margin: 0 auto;
    position: relative;
}
.mapBox > img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(64%);
    border: 4px solid #000000;
}
.btnMap {
    text-decoration: none;
    background-color: var(--lightGreen);
    color: white;
    padding: 0 1rem;
    border-radius: 4px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    position: absolute;
    bottom: 119px;
}
.infoIconsBox {
    margin-bottom: -9px;
    margin-top: 3rem;
    overflow-y:scroll;
}



/* hero */

.heroBox {
    text-align: center;
}
.heroBox img {
    width: 100%;
    height: auto;
}

.heroBox2 img {
    width: 47%;
    height: auto;
}
.heroBox2 {
    display: flex;
    justify-content: space-around;
}

/* text general */
.eachTitle {
    font-family: var(--title);
    color: var(--green);
    font-size: 1.8rem;
}
.highlightBC {
    font-weight: 500;
    color: var(--orange);
}
.highlightB {
    font-weight: 700;
}
.subtitle {
    font-size: 1.2rem;
    margin-top: 2rem;
}
.highlightC {
    color: var(--orange);
}

/* all info page general */
.manBack {
    transform: rotate(-26.56deg);
    width: 800px;
    height: auto;
    position: absolute;
    z-index: -1;
    filter: opacity(10%);
    left: -250px;
    top: 500px;
}
.event,
.breakfast,
.win {
    margin: 0 1.5rem;
    position: relative;
}
.noDot {
    padding-left: 0;
}
.noDot > li{
    list-style-type: none;
}
.fa-location-dot,
.fa-clock,
.fa-dollar-sign {
    color: var(--lightGreen);
    margin-right: .5rem;
}

/* event page */
.ODate {
    position: absolute;
    background-color: var(--orange);
    border-radius: 13px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    padding: 0.6rem 1.2rem;
    text-align: center;
    right: 0;
    top: 320px;
    display: flex;
    flex-direction: column;
}
.ODate > span {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.eventNoDot > li {
    width: 300px;
}
.tab {
    margin-left: 1.1rem;
}
.btnRsvp {
    text-decoration: none;
    background-color: var(--lightGreen);
    color: white;
    padding: 0 1rem;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    font-size: 2rem;
    border-radius: 20px;
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}
.eventMapBtn {
    position: unset;
}

/* breakfast */
.breakfastNoDot > li{
    line-height: 2;
}
.comeOn {
    margin: 2rem 0;
}
.doubleLine {
    border-width: 3px 0px;
    border-style: solid;
    border-color: var(--lightGreen);
    text-align: center;
    color: var(--lightGreen);
    font-size: 1.4rem;
    margin-top: 3rem;
}
.doubleLine > span{
    margin: 0;
    font-size: 1.2rem;
    color: var(--orange);
    font-weight: 700;
}
.calendarIconBox {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    filter: drop-shadow(0px .5px .5px rgba(0, 0, 0, 0.25));
}
.btnDoubleLine {
    text-decoration: none;
    border: 2px solid #96D4BE;
    border-radius: 5px;
    font-size: .8rem;
    padding: .4rem;
    background-color: transparent;
}
.btnDoubleLine > img {
    width: 1.5vw;
    height: auto;
    margin-right: .1rem;
}

/* win */
#ticket {
    width: 46%;
    height: auto;
    position: absolute;
    right: 0;
    top: 20.8%;
}
.twoEasy {
    margin-top: 5rem;
}
.small {
    font-size: .8rem;
    color: gray;
}
#prize {
    margin-top: 2rem;
    margin-bottom: 0;
    width: 50%;
    height: auto;
    transform: rotate(10deg);
}
.prizeBox {
    border: 6px solid #F1A04B;
    border-radius: 3px;
    padding: .5rem 1rem;
    margin: 1rem 0;
}
.prizeBox > h3 {
    color: #C82321;
}

/* involved*/

.clickTo {
    text-align: center;
}
.fa-person-biking {
    color: var(--orange);
    font-weight: 500;
}
#golden,
#silver,
#bronze {
    border: 6px solid #255A4B;
    border-radius: 5px;
    padding: .8rem;
    margin-bottom: 2rem;
}
#golden,
#silver,
#bronze,
#showVolunteer {
    display: none;
}
#vs {
    border: 3px solid #F1A04B;
}
#note {
    height: 10vh;
}


/* hero */

.heroBox {
    text-align: center;
}
.heroBox img {
    width: 100%;
    height: auto;
}

.heroBox2 img {
    width: 47%;
    height: auto;
}
.heroBox2 {
    display: flex;
    justify-content: space-around;
}

/* text general */
.eachTitle {
    font-family: var(--title);
    color: var(--green);
    font-size: 1.8rem;
}
.highlightBC {
    font-weight: 500;
    color: var(--orange);
}
.highlightB {
    font-weight: 700;
}
.subtitle {
    font-size: 1.2rem;
    margin-top: 2rem;
}
.highlightC {
    color: var(--orange);
}

/* all info page general */
.manBack {
    transform: rotate(-26.56deg);
    width: 800px;
    height: auto;
    position: absolute;
    z-index: -1;
    filter: opacity(10%);
    left: -250px;
    top: 500px;
}
.event,
.breakfast,
.win {
    margin: 0 1.5rem;
    position: relative;
}
.noDot {
    padding-left: 0;
}
.noDot > li{
    list-style-type: none;
}
.fa-location-dot,
.fa-clock,
.fa-dollar-sign {
    color: var(--lightGreen);
    margin-right: .5rem;
}

/* event page */
.ODate {
    position: absolute;
    background-color: var(--orange);
    border-radius: 13px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    padding: 0.6rem 1.2rem;
    text-align: center;
    right: 0;
    top: 320px;
    display: flex;
    flex-direction: column;
}
.ODate > span {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.eventNoDot > li {
    width: 300px;
}
.tab {
    margin-left: 1.1rem;
}
.btnRsvp {
    text-decoration: none;
    background-color: var(--lightGreen);
    color: white;
    padding: 0 1rem;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    font-size: 2rem;
    border-radius: 20px;
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}

/* breakfast */
.breakfastNoDot > li{
    line-height: 2;
}
.comeOn {
    margin: 2rem 0;
}
.doubleLine {
    border-width: 3px 0px;
    border-style: solid;
    border-color: var(--lightGreen);
    text-align: center;
    color: var(--lightGreen);
    font-size: 1.4rem;
    margin-top: 3rem;
}
.doubleLine > span{
    margin: 0;
    font-size: 1.2rem;
    color: var(--orange);
    font-weight: 700;
}
.calendarIconBox {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    filter: drop-shadow(0px .5px .5px rgba(0, 0, 0, 0.25));
}
.btnDoubleLine {
    text-decoration: none;
    border: 2px solid #96D4BE;
    border-radius: 5px;
    font-size: .8rem;
    padding: .4rem;
    background-color: transparent;
}
.btnDoubleLine > img {
    width: 2.5vw;
    height: auto;
    margin-right: .1rem;
}

/* win */
#ticket {
    width: 46%;
    height: auto;
    position: absolute;
    right: 0;
    top: 20.8%;
}
.twoEasy {
    margin-top: 5rem;
}
.small {
    font-size: .8rem;
    color: gray;
}
#prize {
    margin-top: 2rem;
    margin-bottom: 0;
    width: 50%;
    height: auto;
    transform: rotate(10deg);
}
.prizeBox {
    border: 6px solid #F1A04B;
    border-radius: 3px;
    padding: .5rem 1rem;
    margin: 1rem 0;
}
.prizeBox > h3 {
    color: #C82321;
}

/* involved*/

.clickTo {
    text-align: center;
}
.fa-person-biking {
    color: var(--orange);
    font-weight: 500;
}
#golden,
#silver,
#bronze {
    border: 6px solid #255A4B;
    border-radius: 5px;
    padding: .8rem;
    margin-bottom: 2rem;
}
#golden,
#silver,
#bronze,
#showVolunteer {
    display: none;
}
#vs {
    border: 3px solid #F1A04B;
}
#note {
    height: 10vh;
}

/*GENERAL*/
h2.page-h2{
    font-family:var(--title);
    color:var(--green);
    margin-left:1rem;
}
p.page-p{
    margin:0 1rem;
}

/*RSVP*/
form.rsvp{
    background-color:var(--orange);
    border:6px solid var(--lightGreen);
    border-radius:20px;
    padding:1rem;
    margin:2rem 0.2rem;
}
form.rsvp fieldset{
    border:none;
    padding:0;
}
form.rsvp legend{
    color:white;
    text-align: center;
    font-size:xx-large;
}
form.rsvp input{
    border:none;
    border-radius:20px;
    margin:0.5rem auto;
    font-family:var(--body);
}
form.rsvp input[type=text], form.rsvp input[type=tel], form.rsvp input[type=email]{
    padding:0.5rem 1rem;
    width:100%;
    box-shadow:2px 1px 5px hsla(0,0%,0%,60%);
}
form.rsvp input[type=checkbox]{
    margin-right:0.5rem;
    margin-left:1rem;
}
form.rsvp input[type=submit]{
    color:white;
    background-color:var(--lightGreen);
    font-size:x-large;
    padding:0;
    width:100%;
    box-shadow:2px 1px 5px hsla(0,0%,0%,60%);
}

/*SPONSORS*/
.sponsors{
    width:393px;
    /*max-width:100%;*/
    margin:0 auto;
}
.sponsors-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
}
.sponsors img{
    margin:1rem auto;
}

/*MAP*/
.mapdiv{
    min-height:100%;
    width:auto;
    position: relative;
}
.mapdiv #mapBase{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    cursor:move;
}
.mapdiv svg {
    cursor: move;
    touch-action: none;
}
#lilDude{
    position: absolute;
    right:16px;
    bottom:16px;
}

/*MODALS*/
div.modal-header{
    display:grid;
    grid-template-columns: 9fr 1fr;
}
span.close{
    font-size:2.5rem;
    font-weight:900;
    text-align:right;
}

/*LEGEND*/
div.legend{
    position:absolute;
    left:0;
    bottom:0;
    width:324px;
    overflow:auto;
    /*max-width:100%;*/
    background-color:hsla(0,0%,0%,60%);
    backdrop-filter: blur(2px);
    color:white;
    border-radius:0 20px 0 0;
    padding-bottom:2rem;
}
div.legend div.modal-header{
    margin: 0 1rem;
}
div.legend div.modal-header h2{
    margin-bottom:0;
    font-family:var(--title);
    font-size:xx-large;
}
ul.legend-ul{
    list-style-type:none;
    padding-left:1rem;
}
li.legend-li{
    font-size:xx-large;
    font-weight:400;
    border-bottom: dashed 2px white;
}
li.legend-li>img{
    margin-right:1rem;
}
.legend-os, .legend-ps{
    font-size:1.2rem;
}
#osMenu ul li:nth-of-type(even){
    list-style-type: none;
}
.os-route{
    list-style-type:none;
}
.os-route img{
    padding-right:0.5rem;
    padding-bottom:0.2rem;
}
/*PITSTOP*/
div#pitstopModal{
    position:fixed;
    width:100%;
    top:200px;
    /* left:0; */
    background-color:hsla(0,0%,0%,60%);
    backdrop-filter: blur(2px);
    max-width: 420px;
}
div.pitstop-container{
    width:90%;
    background-color:white;
    border-radius:20px;
    margin:1rem auto;
    padding:0.5rem 1rem;
}
button.route-info{
    margin:2rem 0 1rem 0;
    color:white;
    background-color:var(--lightGreen);
    border:none;
    border-radius:20px;
    font-size:x-large;
    padding:0.2rem;
    width:100%;
    box-shadow:2px 1px 5px hsla(0,0%,0%,60%);
}
p.difficulty img{
    margin-right:1ch;
}
span.bold{
    font-weight:bold;
    padding-right:1ch;
}


/*HIDDEN*/
.hidden{
    display:none;
}

/* fit size in phone */
@media (min-width: 420px) {
    html, body {
        max-width: 420px;
        max-height: auto;
        margin: 0 auto;
        height: 100vh;
    }
   
}



