/*
   Page content

1. CSS Reset
2. Root (colors; font size, letter spacing)
3. Menu bar
4. Main content
5. Logo
6. Minimize, Almost Full Screen, Maximize icons
7. Footer
8.Responsiveness for different devices
*/

/* CSS Reset */

* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  font-family: Roboto;
}

body {
  background: url("GameBG.png") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

/* Root */

:root {
  /* colors */
  --black: #000000;
  --white: #ffffff;
  --blue: #648ec0;
  --dark-blue: #33639d;
  --light-blue: #e2edfb;
  --grey: #6f6f6f;
  /* font size, letter spacing */
  --base-Fsize: 16px;
  --Fsize-18: 18px;
  --Fsize-24: 24px;
  --Fsize-60: 60px;
  --letter-spacing-1: 1px;
  --letter-spacing-05: 0.5px;
}

/* Menu bar */

.navbar {

  display: none;

  overflow: hidden;
  background-color: transparent;
  width: 100%;
  justify-content: center;
  align-items: center;
  height: 60px;
}

.navbar a {
  float: left;
  font-size: var(--base-Fsize);
  color: var(--white);
  text-align: center;
  padding: 21px 20px;
  text-decoration: none;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: var(--base-Fsize);
  color: var(--white);
  padding: 21px 20px;
  background-color: inherit;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
  letter-spacing: var(--letter-spacing-1);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--blue);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  left: 50%;
  transform: translateX(-68%);
}

.dropdown-content a {
  float: none;
  color: var(--white);
  padding: 16px 20px;
  text-decoration: none;
  display: block;
  text-align: center;
}

.dropdown-content a:hover {
  letter-spacing: var(--letter-spacing-1);
}

.dropdown:hover .dropdown-content {
  display: block;
}
/* Menu bar */

.navigation-bar {
  width: auto;
}

.navigation-bar ul {
  height: 60px;
  list-style-type: none;
  overflow: hidden;
  background-color: #749ccc;
  text-align: center;
}

.navigation-bar ul li {
  display: inline-block;
}

.navigation-bar ul li a {
  display: block;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  padding: 19px 20px;
  text-decoration: none;
}

.navigation-bar ul li a:hover:not(.active) {
  background-color: #648ec0;
}

/* Main content */

.main-content {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  padding-top: 50px;
}

.logo-and-btns--grid {
  float: left;
  width: auto;
  max-width: 900px;
}

.webgl {
  width: 100%;
  max-width: 350px;
  overflow: hidden;
  margin-bottom: -90px;
  height: auto;
  position: relative;
}

.forcedLandscape {
  display: inline;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.forcedPortrait {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.forcedOrientation-off {
  display: none;
}

.hideCanvas {
  display: none;
}

/* Logo */

.logo {
  display: grid;
  grid-template-columns: 40px auto;
  grid-column-gap: 15px;
  width: 50%;
  padding-left: 20px;
}

.logo img {
  display: block;
  height: auto;
  width: 150px;
}

.logo p {
  display: block;
  margin-block: 0;
  margin-inline: 0;
  padding: 11px 0;
}

.logo p a {
  text-decoration: none;
  color: #090505;
  outline: none;
}

/* Minimize, Almost Full Screen, Maximize icons */

.btns {
  float: right;
  scale: 70%;
  width: auto;
}

.btns ul {
  float: left;
  list-style-type: none;
  /* padding: 6px 20px 0 0; */
}

.btns li {
  margin-left: 10px;
}

.btns li,
.btns a {
  /* width: 37px; */
  height: 30px;
  /* display: inline-block; */
}

#minimize {
  background: url("btns.svg");
  background-position: 0px 0px;
  background-repeat: no-repeat;
}

#almost_full_screen {
  background: url("btns.svg");
  background-position: -37px 0px;
  background-repeat: no-repeat;
}

#maximize {
  /*background: url("maximize-logo.png");
  background-position: -74px 0px;
  background-repeat: no-repeat; */
  cursor: pointer;
}

/* Footer */

/* Footer */

footer {
  margin-top: 8%;
  width: 100%;
  color: black;
  text-align: center;
}

footer p {
  padding-bottom: 40px;
}

footer p a {
  text-decoration: none;
  color: #6f6f6f;
  outline: none;
}

footer p a:hover {
  color: #749ccc;
  letter-spacing: 0.5px;
}

/*----Responsiveness for different devices----*/

/* Extra small devices (phones, 600px and down) */

@media only screen and (max-width: 600px) {
  .webgl {
    width: 100%;
    max-width: 320px;
    position: relative;
    overflow: hidden;
    height: auto;
  }
  #bottom-container {
    margin-top: 100px;
  }
}

/* Extra small devices (landscape orientation- phones, 600px and down) */

@media only screen and (max-width: 600px) and(orientation:landscape) {
  .webgl {
    width: 100%;
    max-width: 290px;
    position: relative;
    overflow: hidden;
    height: auto;
  }
  #bottom-container {
    margin-top: 100px;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */

@media only screen and (min-width: 600px) {
  .webgl {
    width: 100%;
    max-width: 650px;
    position: relative;
    overflow: hidden;
    height: auto;
  }
  #bottom-container {
    margin-top: 100px;
  }
}

/* Small devices (landscape orientation -portrait tablets and large phones, 600px and up) */

@media only screen and (min-width: 600px) and(orientation:landscape) {
  .webgl {
    width: 100%;
    max-width: 650px;
    position: relative;
    overflow: hidden;
    height: auto;
  }
  #bottom-container {
    margin-top: 100px;
  }
}

/* Medium devices (landscape tablets, 768px and up) */

@media only screen and (min-width: 768px) {
  .webgl {
    width: 100%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    height: auto;
  }
  #bottom-container {
    margin-top: 100px;
  }
}

/* Medium devices (lanscape orientation- landscape tablets, 768px and up) */

@media only screen and (min-width: 768px) and (orientation: landscape) {
  .webgl {
    width: 100%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    height: auto;
  }
  #bottom-container {
    margin-top: 100px;
  }

  .logo img {
    display: block;
    height: auto;
    scale: 100%;
  }
}

/* Large devices (laptops/desktops, 992px and up) */

@media only screen and (min-width: 992px) {
  .webgl {
    width: 100%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
    height: auto;
  }
  #bottom-container {
    margin-top: 100px;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */

@media only screen and (min-width: 1200px) {
  .webgl {
    width: 100%;
    max-width: 1108px;
    position: relative;
    overflow: hidden;
    height: auto;
  }
  #bottom-container {
    margin-top: 100px;
  }
}

@media only screen and (min-width: 1600px) {
  .webgl {
    width: 100%;
    max-width: 1508px;
    position: relative;
    overflow: hidden;
    height: auto;
  }
  #bottom-container {
    margin-top: 100px;
  }
}

/* Add more media */
@media only screen and (min-width: 2160px) {
  .webgl {
    width: 100%;
    max-width: 2000px;
    position: relative;
    overflow: hidden;
    height: auto;
  }
  #bottom-container {
    margin-top: 100px;
  }
}

@media only screen and (min-width: 3840px) {
  .webgl {
    width: 100%;
    max-width: 3500px;
    position: relative;
    overflow: hidden;
    height: auto;
  }
  #bottom-container {
    margin-top: 100px;
  }
}


/* Loading Bar */
#unity-loading-bar {
  position: absolute;
  width: 100%;
  max-width: 1072px;
  left: 50%;
  bottom: 20%;
  transform: translate(-50%, 0);
  display: none
}

/* #unity-logo {
  width: 1068px;
  height: 660px;
  background: url('ArenaDragon_Logo.png') no-repeat center
} */

#unity-progress-bar-empty {
  width: 100%;
  max-width: 1072px;
  height: 40px;
  /* margin-top: 10px;
  margin-left: 6.5px; */
  background: url('progress-bar-empty-dark.png') no-repeat center
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  margin-top: 10px;
  background: url('progress-bar-full-dark.png') no-repeat center
}
