body {
    background-color: #17293A;
    height: 100vh;
    margin:0;
}

.main_section{
    text-align: center;
}

#main_heading img{
    width:50vw;

}

#dropdown_container{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    padding-left:  10%;
    padding-right:  10%;
}

.tipping_points{
    display: flexbox;
    flex-direction: row;
    justify-content: space-evenly;
}

.tipping_point{
    display: inline-block;
    position: relative;
    text-align: center;
    margin-left: 1vw;
    margin-right: 1vw;
}

.tipping_point p{
    position: absolute;
    padding: 5px 2px;
    bottom: 85%;
    z-index: 1;
    font-size: 14px;
    font-family: Montserrat, Trebuchet, Arial;
    width: 6vw;
    min-width: 100px;
    border-radius: 6px ;
    background-color: black;
    color:black;
    background-color: #FFF5B0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s;
}

.tipping_point p::after{
    content: " ";
    position: absolute;
    top: 100%; 
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color:  #FFF5B0 transparent transparent transparent;
}

.tipping_point img{
    display: block;
    position: relative;
    max-height: 130px;
    max-width: 130px;
    min-width: 90px;
    min-height: 90px;
    width: 10vw;
}

/* The container <div> - needed to position dropdown content */
.dropdown{
    position: relative;
    display: flexbox;
    flex-wrap: wrap;
    margin-top: 4vh;

}

/* Dropdown Button */
.dropdown_btn {
    background-color:#5CC1CA;
    width: 17vw;
    max-width: 268px;
    min-width: 148px;
    height: 7vh;
    max-height: 68px;
    min-height: 38px;
    font-size: 1vw;
    font-family: Bungee, Impact;
    text-align: center;
    border-radius: 0.5vw;
    border: none;
    outline: none;
    word-wrap: break-word;
    overflow: hidden;
    cursor: pointer;
    position: relative;

    box-shadow: 0.3vw 0.3vw #8AC758;
    transition: 0.3s all;	
}

/* Dropdown button on hover and focus */
.dropdown_btn:hover, #play_btn:hover {
    opacity: 80%;
    box-shadow: none;
}

/* Dropdown Content (Hidden by Default) */
#image_dropdown, #slot_dropdown, #sdt_dropdown{
    max-height: 20vw;
}
.dropdown_content {
    display: none;
    position: absolute;
    font-family: Montserrat, Trebuchet, Arial;
    font-size: 0.9vw;
    text-align: left;
    background-color: #5CC1CA;
    width: 17vw;
    max-width: 268px;
    min-width: 148px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 1;

    border-radius: 0.5vw;
    border:none;
    overflow-y: auto;
}

.dropdown_content p {
    color: black;
    padding: 1em 1.5em;
    text-decoration: none;
    cursor:pointer;
    display: block;
    word-wrap: break-word;
}

/* Change color of dropdown options on hover */
.dropdown_content p:hover{background-color:white}

.selection{
    display: inline-block;
    width: 13vw;
}
.arrow{
    display: inline-block;
    font-size: 1vw;
}
/* Image and caption */
.image {
    position: absolute;
    margin-top: 1.5vw;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);

}

.image img {
    width: auto;
    height: auto;
    max-width: 18vw;
    max-height: 18vw;  
}

.caption {
    visibility: hidden;
    font-size: 1vw;
    font-family: Montserrat, Trebuchet, Arial;
    color: #5CC1CA;
    text-align: left; 
    word-wrap: break-word;
}


#sdt_caption_container{
    position: absolute;
    margin-top: 1vw;
    width: 15vw;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
#no_sound_options{
    position: relative;
    font-family: Montserrat, Trebuchet, Arial;
    font-weight: lighter;
    font-size: 1vw;
    margin-top:2vh;
    color:#FFF5B0;
    white-space: nowrap;  
}
#button_unit{
    position: fixed;
    transform: translateY(6.5vw);
}
#play_btn {
    position:relative;
    background-color: #5CC1CA;
    font-size: 2vw;
    font-family: Bungee, Impact;
    width: 17vw;
    max-width: 370px;
    min-width: 205px;
    height: 7vw;
    max-height: 100px;
    min-height: 60px;
    border-radius: 0.5vw;
    border:none;
    cursor: pointer;
	box-shadow: 0.3vw 0.3vw #8AC758;
    transition: 0.3s all;	
}

.extra_btns{
    position: relative;
    margin-top: 1vw;
    display: flexbox;
    flex-direction: row;
    justify-content: space-between;
}

#learn_btn, #credits_btn{
    width: 7.5vw;
    height: 2.5vw;
    font-size: 0.8vw;
    font-family: Bungee, Impact;
    color:#5CC1CA;
    margin: 0 0.5vw;
    background-color: transparent;
    border-color: #5CC1CA;
    border-radius: 0.5vw;
    cursor: pointer;
    outline: none;
}

#learn_btn:hover, #credits_btn:hover{
    background-color:#5CC1CA;
    color:#17293A
}



/* Show the dropdown menu (use JS to add this class to the .dropdown_content container when the user clicks the dropdown_btn */
.show { display: block; }

@media screen and (max-width: 1024px){
    h1{
        font-size: 4vw; 
    }
     .main_section{
        -webkit-transform: translateY(5%);
        transform: translateY(5%);
    }

    .dropdown_btn {
        font-size: 1.5vw;
        width: 22vw;
        
    }
    .dropdown_content {
        font-size: 1.5vw;
        width: 22vw;
    }

    .image img {
        width: auto;
        height: auto;
        max-width: 22vw;
        max-height: 22vw;  
    }

    #slot_display{
        width:20vw;
    }

    #sdt_caption_container{
        width: 180px;
    }
    
    .caption {
        font-size: 14px;
    }

    #no_sound_options{
        font-size: 1.25vw;
    }
    
    #button_unit{
        margin-top:2.5vw;
    }

    #learn_btn, #credits_btn{
        width: 8.5vw;
        height: 3vw;
        font-size: 0.9vw;
    }

 
    #play_btn{
        width: 22vw;
    }
    


@media screen and (max-width: 768px){
    h1{font-size: 30px;}
    body{
        padding-left: 10%;
        padding-right: 10%;
    }
    .main_section{
        transform: translateY(1%);
    }

    .tipping_point img{
        display: block;
        position: relative;
        max-height: 70px;
        max-width: 70px;
        min-width: 70px;
        min-height: 70px;
        width: 4vw;
    }
    
    
    .dropdown_btn {font-size: 1.75vw; box-shadow: 0.5vw 0.5vw #8AC758;}
    .dropdown_content {font-size: 12px; }
    .caption {font-size: 11px;}

    .image img {
        width: auto;
        height: auto;
        max-width: 20vw;
        max-height: 20vw;  
    }

     #sdt{padding-top: 22vh;}

    #sdt{
        display: block;
        padding-top: 20vh; 
    }

    #sdt_caption_container{
        width: 180px;
        margin-top: 10px;
    }

    #no_sound_options{
        margin-top: 10px;
        font-size: 1.5vw;
    }
    
    #play_btn{
        margin-top:20px;
        box-shadow: 0.5vw 0.5vw #8AC758;
    }

    .extra_btns{
        margin-top: 2vw;
    }
    #learn_btn, #credits_btn{
        width: 12vw;
        font-size: 9px;
        height: 4vw;
    }
}

@media screen and (max-height: 650px){

    .tipping_point p{font-size:1vw;}
    .tipping_point img{
        display: block;
        position: relative;
        max-height: 60px;
        max-width: 60px;
        min-width: 60px;
        min-height: 60px;
    }
    #main_heading img{
        width:30vw;
    }

    .dropdown_btn{
        width: 8vw;
        font-size: 1vw;
    }

    .dropdown_content{
        font-size: 0.8vw;
        width: 8vw;
    }

    .image img {
        width: auto;
        height: auto;
        max-width: 15vw; 
    }

    .caption{font-size: 1vw;}

    #play_btn{
        width: 18vw;
        max-width: 18vw;
        min-width: 18vw;
        height: 6vw;
        max-height: 6vw;
        min-height: 6vw;
        font-size: 1.5vw;
    }

    #no_sound_options{
        font-size: 1vw;
    }

    }
}