body,
html {
  min-height: 100%;
}

/* FOOTER  https://codepen.io/alvarotrigo/pen/ZExxeRz */
.footer {
  background: #2D3337;
  padding: 5px 0px;
  font-family: 'Play', sans-serif;
  text-align: center;
}

  .footer .row{
    width:100%;
    margin:1% 0%;
    padding:0.2% 0%;
    color:rgb(158, 158, 158);
    font-size:0.8em;
    }

.footer .row a {
  text-decoration: none;
  color: gray;
  transition: 0.5s;
}

.footer .row a:hover {
  color: #fff;
}

.footer .row ul {
  width: 100%;
}

.footer .row ul li {
  display: inline-block;
  margin: 0px 30px;
}

.footer .row a i {
  font-size: 2em;
  margin: 0% 1%;
}

@media (max-width:720px) {
  .footer {
    text-align: left;
    padding: 5%;
  }

  .footer .row ul li {
    display: block;
    margin: 10px 0px;
    text-align: left;
  }

  .footer .row a i {
    margin: 0% 3%;
  }
}

/********************** NAVIGATION BAR ********************/
nav {
  width: 100%;
  margin: 0 auto;
  background: #fff;
}

nav ul {
  list-style: none;
  padding: 0px 0px;
  margin: 2px 2px;
}

nav ul li {
  display: inline-block;
  vertical-align: middle;
}

nav ul li a {
  float: left;
  display: block;
  padding: 15px;
  text-decoration: none;
  text-align: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  line-height: 20px;
  text-transform: uppercase;
  margin: 0 10px;
}

nav ul li a,
nav ul li a:after,
nav ul li a:before {
  transition: all .5s;
}

nav ul li a:hover {
  color: #555;
}

/********************** DROP DOWN NOTIFICATION ********************/
.dropdown {
  float: right;
  overflow: hidden;
}

.dropdown .dropbtn {
  border-radius: 15px;
  background: #3c3c3c;
  border: solid 1px #3c3c3c;
  outline: none;
  color: white;
  padding: 12px 16px;
  font-family: inherit;
  /* Important for vertical align on mobile phones */
}

.dropdown .dropbtn:after {
  display: block;
  position: absolute;
  border-radius: 15px;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 1px;
  content: '.';
  color: transparent;
  background: #089b8a;
  visibility: none;
  opacity: 0;
  z-index: -1;
}
/********************** DROP DOWN CONTENT BOX ********************/
.dropdown-content {
  border-radius: 15px;
  top: 69px;
  display: none;
  position: absolute;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border: 2px #1f1f1f;
  font-family: monospace;
  z-index: 1;
  color: #ffffff;
  background-color:#3c3c3c ;
  
  text-align: center;
}

.dropdown-content a,
.dropdown-search a {
  float: none;
  color: black;
  padding: 12px 50px;
  text-decoration: none;
  display: block;
  text-align: center;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #3c3c3c;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/**************************** DROP DOWN SEARCH BAR *******************/
.dropbtn_search {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Dropdown button on hover & focus */
.dropbtn_search:hover,
.dropbtn_search:focus {
  background-color: #ffffff;
}

/* The container <div> - needed to position the dropdown content */
.dropdown_searchbar {
  float: left;
  /* position: relative;
  display: inline-block;*/
}

/* Dropdown Content (Hidden by Default) */
.dropdown-search {
  display: none;
  position: absolute;
  top: 70px;
  z-index: 1000;
  min-width: 160px;
}

/* Links inside the dropdown */
.dropdown-search input {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-search input:hover {
  background-color: #ddd;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
  display: block;
}


/********************** NAVIGATION BAR CSS, Hover Animation, color and radius ********************/
nav.shift a.logo {
  height: 100%;
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  background-color: #2D3337;
}

nav.shift {
  overflow: hidden;
  background-color: #2D3337;
  padding: 5px 10px;
}

nav.shift ul li a {
  border-radius: 15px;
  background: #3c3c3c;
  position: relative;
  z-index: 1;
  color: white;
}

nav.shift ul li a:hover {
  color: #ffffff;
}

nav.shift ul li a:after {
  display: block;
  position: absolute;
  border-radius: 15px;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 1px;
  content: '.';
  color: transparent;
  background: #089b8a;
  visibility: none;
  opacity: 0;
  z-index: -1;
}
/* Hover animation */
nav.shift ul li a:hover:after {
  opacity: 1;
  visibility: visible;
  height: 100%;
}

/* Float the link section to the right */
.header-right {
  float: right;
  padding: 9px 0;
}

/********************** SEARCH BAR IN NAVBAR ********************/
.search-bar {
  float: left;
  border-radius: 15px;
  z-index: 1;
  padding: 6px;
  border: none;
  font-size: 17px;
  margin-right: 12px;
  position: relative;
  height: 40px;
  text-align: center;
  vertical-align: middle;
}

li {
  display: inline-block;
}

/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
@media screen and (max-width: 500px) {
  .header a {
    float: none;
    display: block;
    text-align: left;
  }

  .header-right {
    float: none;
  }
}

/********************** BACKGROUND IMAGE FOR ALLE THE PAGES ********************/
body {
  background: url("./../images/Background.png");
  /* Center and scale the image nicely */
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #000000;
}

/* SEARCH BAR */
#myInput {
  border-radius: 15px;
  background-image: url('/css/searchicon.png');
  /* Add a search icon to input */
  background-position: 10px 12px;
  /* Position the search icon */
  background-repeat: no-repeat;
  /* Do not repeat the icon image */
  font-size: 16px;
  /* Increase font-size */
  padding: 12px 20px 12px 40px;
  /* Add some padding */
  border: 1px solid #2D3337;
  /* Add a grey border */
  margin-bottom: 12px;
  /* Add some space below the input */
}

/*********** LEADERBOARD ***************/
div.centerdiv {
  margin: 75px 75px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 50px;
  position: relative;
  text-align: center;
  color: white;
}
/********************** GAME COVERS ON FRONT PAGE, they have default lower opacity ********************/
div.games {
  border: 4px solid #1f1f1f;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.75;
  width: 400px;
  height: 525px;
}
/* HOVERING OVER THEM SET OPACITY TO 1 */
div.games:hover {
  cursor: pointer;
  opacity: 1.0;
}
/*Image for middle game cover */
#planetracer {
  background-image: url(../images/Planet_racer.png);
}
/*Image for left SKYFISH game cover*/
#fish {
  background-image: url(../images/Fish.png);
}
/*Image for right game cover*/
#spaceshooter {
  background-image: url(../images/Space_shooter.png);
}
/*CSS For centering the game covers and setting fonts.*/
div.centered {
  opacity: 1.0;
  position: relative;
  font-family: monospace;
  font-weight: bold;
  font-size: 30px;
  -webkit-text-stroke: 1px black;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-transform: uppercase;
}

.image {
  max-width: 100%;
  height: auto
}

img {
  vertical-align: middle
}

a {
  color: inherit;
}

.logo {
  padding: 3px;
}

div.leaderboard {
  text-align: center;
  color: black;
  margin: 20px 20%;
}

/********* Friend page **********/
.friend-grid {
  margin: 5% 2.5%;
  height: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 45px;
}

.friend-block {
  height: 20vh;
  width: 25vw;
  background-color: #2D3337;
  border-radius: 10px 10px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.friend-img {
  height: 80%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.friend-name {
  color: white;
}

/********Profile Pic****************/
.profile-pic {
  width: 50%;
  display: flex;
  gap: 0px 25px;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  transform: translate(2%, 38%);
}
/*AVATAR PROFILE PICTURE SIZE */
.avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}

#pfplink:hover {
  opacity: 0.75;
}
/* CSS AND FONT For the profile username  */
.nametext {
  color: #ffffff;
  font-family: monospace;
  font-weight: bold;
  font-size: 40px;
}

/* CSS for the cover picture for SKYFISH*/
div.cover {
  background-image: url(../images/Fishlandscape3.png);
  width: 100%;
  height: 220px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 1;
}

div.LoggedOutBox {
  height: 67px;
  background-color: #2D3337;
  padding: 5px 10px;
}

/* GENERAL STAT BOX ON PROFILE*/
div.box {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: #2f3335;
  height: 70px;
  margin-top: 30px;
  margin-right: 18%;
  margin-left: 18%;
  margin-bottom: 0px;
  text-align: center;
}
/*Font and color */
#stattext {
  color: #ffffff;
  font-weight: bold;
}

/*Flexbox with stats */
div.flexbox {
  display: flex;
  background: rgb(45,51,55);
background: linear-gradient(180deg, rgba(60,60,60,1) 0%, rgba(60,60,60,1) 70%, rgba(255,255,255,0) 71%, rgba(255,255,255,0) 100%);
  padding: 30px;
  margin-top: 0px;
  margin-right: 18%;
  margin-left: 18%;
  justify-content: space-evenly;
}

.flexbox div {
  border-radius: 15px;
  width: 30%;
  background-color: #2D3337;
  padding: 5px 20px;
  text-align: center;
}

.flexbox div h2{
  margin-bottom: 20px;
  font-size: 30px;
  color: white;
  font-weight: 800;
}


.flexbox div h3{
  font-size: 25px;
  color: white;
  font-weight: 700;
}