:root {
  --primary-bg-color: #230138;
  --primary-color: #FFDDBC;
}


html {
    background-color: var(--primary-bg-color);
    font-family: Futura,Trebuchet MS,Arial,sans-serif; 
}

.mapboxgl-marker.hidden {
    display: none;
}

.mapboxgl-marker-covered {
    display: none; /* Hides the marker completely when on the back side */
}

#content {
    display: block;
    height: 18vh;
    margin-left: 2%;
    margin-right: 2%;
    color: var(--primary-color);
    position: relative;
}

#contentText {
    margin-top: 0;
}

#leftContent {
    display: flex;
    flex-direction: column;
}

.imgTextStyle {
    font-weight: normal;
    font-size: 1.15vh;
}

#myComment {
    color: red;
}

#placeName {
    font-size: 3vh;
    margin-top: 0;
    text-decoration: underline;
    margin-bottom: 0;
}

#underPlaceName {
    display: flex;
    flex-direction: row;
}

.imageText {
    height: 1vh;
    font-size: 1.5vh;
    margin-top: 1vh;
    margin-bottom: 0;
}

#imageCoor {
    position: relative;
    width: 40vw;
}

#coorInfo {
    visibility: hidden;
    background-color: #3D0062;
    font-weight: none;
    font-size: 1.2vh;
}

#imageCoor:hover #coorInfo {
    visibility: visible;
} 

#imageDesc {
    width: 100%;
    overflow-y: auto;
    height: 6vh;
    overflow-x: hidden;
    padding-right: 0.5%;
    margin-right: 0.1%;
}

#startBtn {
    margin: 0;
    position: absolute;
    top: 90%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: var(--primary-bg-color);
    color: var(--primary-color);
    font-size: 1vw;
    pointer-events: none;
    padding-left: 5%;
    padding-right: 5%;
    border: 5px solid var(--primary-color);
    font-family: Futura,Trebuchet MS,Arial,sans-serif;
}

@keyframes startBtnAnim {
  from {background-color: var(--primary-bg-color);
    color: var(--primary-color);}
  to {background-color: var(--primary-color);
    color: var(--primary-bg-color);}
}

#startBtn:hover {
    background-color: var(--primary-color);
    color: var(--primary-bg-color);
    animation-name: startBtnAnim;
    animation-duration: 1s;
}

#updateText {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: var(--primary-bg-color);
    color: var(--primary-color);
    font-size: 1.5vw;
    display: none;
}

#start, #update {
    position: fixed;
    bottom: 0;
    width: 99vw; 
    height: 80vh;
    z-index: -1;
    left: 0;
}

#update {
    display: none;
}

#updatebg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: none;
}

#startbg {
    position: absolute;
    background-color: var(--primary-bg-color);
    opacity: 0.5;
    width: 101%;
    height: 100%;
    z-index: -1;
}

#intro {
    background-color: var(--primary-bg-color);
    border: 2px solid var(--primary-color);
    width: 25vw;
    height: 70vh;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 15%;
    position: absolute;
}

#introHeading {
    top: 10%;
    font-size: 1.5vw;
}

.introText {
    left: 50%;
    color: var(--primary-color);
    width: 90%;
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
}

#introExplain {
    top: 40%;
    font-size: 1.2vw;
}

#introAttribute {
    top: 70%;
    font-size: 1vw;
}

@keyframes animatedBackground {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

#map {
    position: fixed;
    bottom: 0;
    border-top: 2px solid var(--primary-color);
    width: 100dvw; 
    height: 80vh;
    z-index: -2;
    background-image: url('images/stars.png');
    background-size: cover;
    left: 0;
    right: 0;
}

/* .animatedBackground {
    animation: animatedBackground 120s linear infinite;
} */


#mapBtnsOutline {
    display: flex;
    border-top: 2px solid var(--primary-color);
    padding-top: 0.5%;
    position: absolute;
    bottom: 0;
    width: 95vw;
}

.mapBtns {
    width: 2vw;
    height: 2vw;
    background-color: var(--primary-bg-color);
    border-color: var(--primary-color);
    margin-right: 5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
}

.tooltip {
    position: absolute;
    visibility: hidden;
    text-align: center;
    color: var(--primary-color);
    background-color: #3D0062;
    width: 6vw;
    font-size: 0.7vw;
    bottom: -2vh;
    left: -0.5vw;
}

#sourceLink {
    position: relative;
    text-decoration: none;
}

#sourceBtn {
    color: var(--primary-color);
    background-color: var(--primary-bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 0.7vw;
    padding-left: 0.2vw;
    padding-right: 0.2vw;
}


#sourceBtn:hover {
    border-color: #3380cc;
}

.sourceTip {
    position: absolute;
    visibility: hidden;
    background-color: #3D0062;
    font-size: 1vh;
    width: 3vw;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    top: 10%;
}

#sourceLink:hover .sourceTip {
    visibility: visible;
}

#satBtn {
    position: relative;
}

#sat {
    background-image: url("images/satellite.png");
}


#satBtn:hover .tooltip {
    visibility: visible;
}

#standBtn {
    position: relative;
}

#stand {
    background-image: url("images/standard.png");
}



#standBtn:hover .tooltip {
    visibility: visible;
}

#switchBtn {
    position: relative;
}

#switch {
    background-image: url("images/switch.png");
    background-color: #85705e;
    pointer-events: none;
}

#switchBtn:hover .tooltip {
    width: 8vw;
    visibility: visible;
}

#toggleView {
    position: relative;
}

#toggleViewBtn {
    background-image: url("images/view.png");
}

#toggleView:hover .tooltip {
    visibility: visible;
}

#toggleHow {
    position: relative;
}

#toggleHowBtn {
    background-image: url("images/howHide.png");
}

#toggleHow:hover .tooltip {
    visibility: visible;
    width: 9vw;
}

#toggleSpeed {
    position: relative;
}

#toggleSpeedBtn {
    background-image: url("images/superhero1x.png");
}

#toggleSpeed:hover .tooltip {
    visibility: visible;
}

.flyoutBtn {
    height: 95%;
    font-size: 0.7vw;
    color: var(--primary-color);
    background-color: black;
    text-align: center;
    width: auto;
    border: 1px solid var(--primary-color);
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    font-family: Futura,Trebuchet MS,Arial,sans-serif;
}

@keyframes mapBtnsHoverAnim {
  from {background-size: 100%;}
  to {background-size: 80%;}
}

.mapBtns:hover {
    background-size: 80%;
    animation-name: mapBtnsHoverAnim;
    animation-duration: 0.5s;
}

@keyframes flyOutBtnHoverAnim {
  from {text-decoration: none;
    background-color: var(--primary-bg-color);}
  to {
    background-color: #3D0062;}
}

.flyoutBtn:hover{
    background-color: #3D0062;
    animation-name: flyOutBtnHoverAnim;
    animation-duration: 0.5s;
}

#dropdown {
    width: 95vw;
    position: relative;
}

#dropbtn {
    background-image: url("images/marker.png");
    background-position: top;
}

#dropdown:hover .tooltip {
    visibility: visible;
    width: 3vw;
}

#dropdown-content {
    height: 2vw;
    width: 97%;
    display: none;
    position: absolute;
    overflow-x: scroll;
    white-space: nowrap;
    scrollbar-width: thin;
    background-color: black;
    bottom: 0;
    left: 2.2vw;
    margin-right: 2%;
}



.marker {
    width: 38px;
    height: 50px;
    background-image: url("images/marker.png");
    background-size: 100%;
}

.marker:hover {
    background-image: url("images/markerHover.png");
}

.station-marker, .ship-marker, .bridge-marker, .volcano-marker,
.exhibition-marker, .airport-marker, .city-marker, .island-marker, .hole-marker,
.highway-marker, .castle-marker, .village-marker, .pyramids-marker,.industrial-marker,
.lighthouse-marker, .underwater-marker, .NASA-marker {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-bg-color);
    border-radius: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.station-marker{
    background-color: white;
    background-image: url("images/arctic-station.png");
}

.station-marker:hover {
    background-color: rgb(202, 243, 255);
}

.ship-marker{
    background-color: #cb34ad;
    background-image: url("images/cargo-ship.png");
}

.ship-marker:hover {
    background-image: url("images/cargo-ship.gif");
}

.bridge-marker{
    background-color: rgb(239, 164, 184);
    background-image: url("images/bridge.png");
}

.bridge-marker:hover {
    background-image: url("images/bridge.gif");
}

.volcano-marker{
    background-color: #abf8ff;
    background-image: url("images/volcano.png");
}

.volcano-marker:hover {
    background-image: url("images/volcano.gif");
}

.exhibition-marker{
    background-color: rgb(166, 196, 205);
    background-image: url("images/exhibition.png");
}

.exhibition-marker:hover {
    background-image: url("images/exhibition.gif");
}

.airport-marker{
    background-color: #3380cc;
    background-image: url("images/runway.png");
}

.airport-marker:hover {
    background-image: url("images/runway.gif");
}

.city-marker{
    background-color: #d6cfe8;
    background-image: url("images/city-park.png");
}

.city-marker:hover {
    background-image: url("images/city-park.gif");
}

.island-marker{
    background-color: rgb(128, 207, 249);
    background-image: url("images/island.png");
}

.island-marker:hover {
    background-image: url("images/island.gif");
}


.hole-marker{
    background-color: black;
}

.hole-marker:hover{
    background-color: white;
    background-image: url('images/hole.png');
}

.highway-marker{
    background-color: #3380cc;
    background-image: url("images/roadway.png");
}

.highway-marker:hover {
    background-image: url("images/roadway.gif");
}

.castle-marker{
    background-color: rgb(220, 132, 202);
    background-image: url("images/castle.png");
}

.castle-marker:hover {
    background-image: url("images/castle.gif");
}

.village-marker{
    background-color: rgb(120, 202, 245);
    background-image: url("images/village.png");
}

.village-marker:hover {
    background-image: url("images/village.gif");
}

.pyramids-marker{
    background-color: rgb(199, 252, 231);
    background-image: url("images/pyramids.png");
}

.pyramids-marker:hover {
    background-image: url("images/pyramids.gif");
}

.industrial-marker{
    background-color: rgb(68, 220, 167);
    background-image: url("images/factory.png");
}

.industrial-marker:hover {
    background-image: url("images/factory.gif");
}

.lighthouse-marker{
    background-color: rgb(197, 246, 255);
    background-image: url("images/lighthouse.png");
}

.lighthouse-marker:hover {
    background-image: url("images/lighthouse.gif");
}

.underwater-marker {
    background-image: url("images/dunes.png");
    background-color: #ffd993;
}

.underwater-marker:hover {
    background-size: 80%;
}

.NASA-marker{
    background-color: white;
    background-image: url("images/nasa.png");
}

.NASA-marker:hover {
    background-size: 90%;
}

.switchText {
    font-size: 1vh;
    position: absolute;
    margin: auto;
}

@media screen and (orientation: portrait) {
    #content {
        height: 18dvh;
        left: -5px;
    }
    #map, #start {
        height: 80dvh;
        background-size: cover;
    }
    .mapBtns {
        width: 3.5vh;
        height: 3.5vh;
        border-radius: 10px;
    }
    #placeName {
        font-size: 2vh;
    }
    .imageText {
        font-size: 1vh;
        height: 2vh;
    }
    .imgTextStyle {
        font-size: 0.9vh;
    }
    #intro {
        width: 15dvh;
        height: 22dvh;
        top: 18%;
        left: 50%;
    }
    #startBtn {
        font-size: 0.9vh;
        border: 2px solid var(--primary-color)
    }
    #mapBtnsOutline {
        padding-top: 1.5%;
    }
    .flyoutBtn {
        font-size: 0.7vh;
    }
    #dropdown-content {
        height: 3vh;
        width: 150%;
        left: -60%;
        top: 100%;
    }
    #imageDesc {
        height: 8vh;
        margin-left: 2%;
        padding-right: 1%;
        margin-right: 0;
    }
    .imageText {
        font-size: 1vh;
    }
    .imgTextStyle {
        font-size: 0.9vh;
    }
    #introHeading {
        font-size: 1.3dvh;
    }
    #introExplain {
        font-size: 1dvh;
    }

    #introAttribute {
        font-size: 0.7dvh;
    }
    #sourceBtn {
        font-size: 1vh;
        padding-right: 0.2vh;
        padding-left: 0.2vh;
    }
}
