/*Body aligns a flex box item to the center, BG color changes the BG color.
Font family chooses the font for the text inside body
margin & padding make margin and padding for body*/
body {
    background-color: #dfd3d3;
    font-family: "Jersey 15", "Arial",  sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: larger;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
/*Scroll behavior smooth in the html tag makes the page scroll smoothly when you click
a ref link to a different part of the page*/
html {
    scroll-behavior: smooth;
}
/*ID Main has a padding
display is set to flex to make it work with different viewport sizes
flex direction column sets it to flex in a column direction/shape */
#Main {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
/*------------------Topbar--------------------*/
.TopBar {
    display: flex;
    align-items: center; /*aligns the logo and the drop down to center in Y axis*/
    /* background-color: #4e008e; */
    background-color: #005281;
    position: relative;
    width: 100%; /*width of the top bar = width of the page*/
}
.TopBarContent {
    display: flex;
    align-items: center;
    max-width: 100%;
    width: 100%;
    height: 90px; 
/*height of the top bar = height of the logo*/
}
#HGlogo {
    margin: 5px 4px;
    height: 82px;
    position: absolute; /*position absolute is used to position the logo in the center of the page*/
    left: 50%; /*aligns the logos left edge to the center of the page*/
    transform: translateX(-50%);
    justify-content: center;
     /*moves the logo to the left by 50% of it's own width so it end up directly to the center*/
}
#GameTitle {
    max-width: 100%;
    width: 100%;
}
h1 { 
    /*30px for top and bottom, 0px for left and right*/
    text-align: center;
    margin: 0px;
    align-self: center;
    width: 100%;
    font-size: 50px;
    text-decoration: underline;
}
/*------------------Dropdown--------------------*/
.hamburgerDropdown {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 0px 10px 10px 0px; /*padding for the drop down*/
    margin-top: auto;
    margin-left: auto; /*moves the drop down to the right side of the page*/  
}
.bar {
    width: 100%;
    height: 4px;
    background-color: rgb(255, 255, 255);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.dropdown-content {
    display: none; /*hides the dropdown content by default*/
    position: absolute;
    background-color: #cccbcb;
    min-width: 120px;
    border-radius: 5px;
    box-shadow: 0px 8px 16px 8px rgba(0, 0, 0, 0.2);
    bottom: -108px;
    right: 10px;
    z-index: 1; /*This makes it apear on top of the normal page as normal page Z index is less than 1*/
}
/*styles for the content that appears when you hover over the drop down*/
.dropdown-content a {
    color: black;
    border: 1px solid black;
    padding: 14px 0px;
    height: 24px;
    text-align: center;
    text-decoration: none;
    display: block; /*block always starts on a new line and takes the full width available*/
}

.dropdown-content a:hover {
    background-color: #f1f1f1
}

.dropdown:hover .dropdown-content {
    display: block; /*shows the dropdown content when you hover over the drop down*/
}
.open .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.open .bar:nth-child(2) {
    opacity: 0; /* Hide middle bar */
}

.open .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
.show-dropdown {
    display: block; /*shows the dropdown content when you click on the drop down*/
}
/*----------------Dialog----------------------*/
.DialogBox {
    width: 100%;
    max-width: 100%;
    position: relative;
    display: flex;
}
/*Using clamp() to make the pictures scale well without the need to have a seperate media query.
Clamp(Min-prefered-Max) So the picture will always be at least 128px and at most 256px*/
.Speaker {
    width: clamp(128px, 10vw, 256px);
    height: clamp(128px, 10vw, 256px);
}
.Dialog {
    overflow-wrap: break-word;
    flex: 1;
    padding-right: 4px;
    font-size: clamp(1.2rem, 2.5vw, 2rem);  /*1rem = 16px by default*/
}
/*Change to original plan so the name of these are a bit goofy now*/
.SpeakerReverse {
    width: clamp(128px, 10vw, 256px);
    height: clamp(128px, 10vw, 256px);
}
.DialogReverse {
    overflow-wrap: break-word;
    flex: 1;
    padding-left: 4px;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
}
/*----------------Main section--------------------*/
/*flexBox class uses flex to adjust to screen size and flex wrap to make the content wrap to lower parts if needed
width is 100vw which means 100% of the viewport width*/
.FlexBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}
.Sub-Title {
    flex: 100%;
    text-align: center;
    font-size: 40px;
    margin: 16px 0px;
    padding: 4px;
    color: #ffffff;
    /* background-color: #b41e1e; */
    background-color: #005281;
}

/*----------------Trailer section--------------------*/
.VideoBox {
    flex: 100%;
    justify-content: center;
    
}
#Trailer {
    width: 90vw;
    height: 50vh;
}
/*----------------Download section------------------*/
/*Text-align center here is to just get the download button to the center of the div*/
.Download {
    max-width: 100%;
    min-height: 250px;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}
/* Makes the download link to be an inline-block instead of the defaul Block.
    with this I can have the link be the size of the googleplay icon instead of the full width of the 
    "Download" div.*/
.Download a {
    display: inline-block;
    
}
.DownloadFlex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /*Makes the content go to the bottom*/
    flex-grow: 1;   /*flexbox will take all the space available since it's the only one.
    With more elements inside, it would take space proportionally*/
    width: 100%;
}
#AndroidOnly {
    margin: 0px;
    font-size: 14px;
    line-height: 1.2;
    color: #2e2e2e;
    font-family: 'Open Sans', sans-serif;

}
.btn {
    display: inline-block;
    background-color: rgb(51, 139, 39);
    border: none;
    padding: 10px 12px;
    margin-bottom: 2px;
    /* margin-top: auto; */
    cursor: pointer;
    font-weight: bolder;
    font-size: 40px;
    font-family: sans-serif;
    text-decoration: none;
    color: black;
    text-align: center;
    
}
.btn:hover {
    background-color: rgb(20, 104, 9);
}
/* Popup div*/
.popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
    
}
/* Popup button*/
.popup-button {
    background-color:  #005281;
    color: rgb(0, 0, 0);
    border: none;
    font-weight: bolder;
    cursor: pointer;
    font-size: 20px;
    padding: 10px 20px;
}
/* Popup button hover changes color*/
.popup-button:hover {
    background-color: #003655;
}
/* After clicking on the button, shows a popup text*/
.popuptext {
    visibility: hidden;
    width: 80vw;
    background-color: #555;
    color: #fff;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;

    /*To get it to be on top of the center of the button
    translateX moves the center point to the middle of the popup text
    left 50% moves the middle point 50% to left aka to the middle of the button*/
    transform: translateX(-50%);
    left: 50%;
    bottom: 110%;
    
}
/* Popup arrow*/
.popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.show {
    visibility: visible;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/*----------------Developers section--------------------*/
/*FlexSplitPfp class changes how the profile pictures behave in the flexbox. Here we use 50% because we want 2 to be side by side*/
.FlexSplitPfp {
    flex: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.pfp {
    border-radius: 50%;
    max-width: 75%;
}
.DevNames {
    flex: 100%;
    text-align: center;
    padding: 0px 10px;
    font-size: clamp(1.5rem, 2vw, 4rem);
}

/*----------------Collaborator Logo section--------------------*/
.Logo {
    max-width: 90%;
    height: auto;
}
.FlexSplitLogo {
    flex: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    margin-top: 12px;
    margin-bottom: 12px;
}
/*----------------Bottom--------------------*/
footer {
    background-color: #005281;
    padding: 10px 0px;
    text-align: center;
}
@media only screen and  (min-width:600px) {
    body {
        background: url("BG_City.png") no-repeat center center;
        background-size: cover;
        padding: 0;
        margin: 0;
    }
    .pfp {
        width: clamp(150px, 15vw, 300px);
        height: clamp(150px, 15vw, 300px);
    }
    .FlexSplitLogo {
        flex: 100%;
        margin: 20px 0px;
    }
    .WholePage {
        max-width: 65%;
        margin: 0 auto;
        background-color: rgb(255, 241, 241);
    }
    #Trailer {
        width: 55vw;
        max-width: 560px;
        height: 40vh;
        max-height: 315px;
    }
}
@media only screen and (min-width:1200px) {
    .FlexSplitLogo {
        flex: 33%;
    }
    .popuptext {
        width: 400px;
    }
}
/*
Round pics
https://www.w3schools.com/howto/howto_css_rounded_images.asp

Meet the team
https://www.w3schools.com/howto/howto_css_team.asp

Autoloop video & mute & fullscreen
https://www.w3schools.com/howto/howto_css_fullscreen_video.asp

Tab gallery
https://www.w3schools.com/howto/howto_js_tabs.asp

https://www.w3schools.com/css/css_align.asp
*/