:root {
  --main-color: #1e90ff;
  --white: #ffffff; 
  --link-color: black;
}

body {
   font-family: 'Asap', sans-serif;
   margin:0;
   padding: 0;
}

.center {
  margin: auto;
  width: fit-content;
  text-align: center;
}

a {
  color: var(--link-color);
}

.title {
  font-size: 5rem;
  text-align: center;
  margin: 0;
}

.titlebox {
  margin: auto;
  width: fit-content;
  width: 100%;
  max-width: 500px;
}

.titlebox img{
  width: 100%;
}

.loginform {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.login {
  overflow: hidden;
  background-color: var(--main-color);
  padding: 40px 70px 30px 70px;
  border-radius: 10px;
  max-width: 100%;
}

.login label {
  color: var(--white);
  font-size: 0.8rem;
}

.login > .formField > input[type="text"],input[type="password"] {
  display: block;
  border-radius: 5px;
  font-size: 16px;
  background: white;
  border: 0;
  padding: 10px 10px;
  margin: 5px 0px 5px 0px;
  width: 100%;
  max-width: 500px;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
}

input.error {
  outline: #dc3545 solid 2px;
}

.login input[type="submit"] {
  display: block;
  font-family: 'Asap', sans-serif;
  cursor: pointer;
  color: var(--main-color);
  font-size: 16px;
  text-transform: uppercase;
  width: 80px;
  border: 0;
  padding: 10px 0;
  margin-top: 5px;
  border-radius: 5px;
  background-color: white;
}

.login > input[type="submit"]:hover {
   background-color: lightgrey;
}

.login .formField {
  padding-bottom: 10px;
}

.login small {
  color: #dc3545;
}
 
canvas {
  border: 5px solid #ccc;
}

.container {
  width: 80%;
  margin: 0 auto;
}

.header-control {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.gamewrapper {
  position: relative;
  margin-top: 10px;
  display: inline-block;
}

.inline-block {
  display: inline-block;
}

canvas {
  border: 0;
}

.controls {
  margin: 50px 20px 50px 20px;
}

.controls button {
  font-size: 25px;
  line-height: 120%;
  text-transform: uppercase;
  padding: 10px 20px 10px 20px;
  border-radius: 15px;
  background-color: lightgreen;
}

.logout {
  float: right;
}

.controls input[type="text"],input[type="number"] {
  line-height: 120%;
  font-size: 1rem;
  margin: 0 5px;
}

.canvas-overlay {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  font-size: 2rem;
  /* background-color: #dddddd50; */
  background: repeating-linear-gradient(
    45deg,
    #dddddd50,
    #dddddd50 10%,
    #bbbbbb50 10%,
    #bbbbbb50 20%
  );
  background-size: 50% 75%;
  animation: move-it 2s linear infinite;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.canvas-overlay * {
  position: relative;
}

.canvas-overlay p {
  opacity: 1;
}

.card-container {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: var(--main-color);
  position: relative;
  min-height: 150px;
  color: white;
}

.card a {
  color: white;
}

.card p {
  margin-top: 12px;
  margin-bottom: 12px;
}

.inactive {
  background: repeating-linear-gradient(
    -45deg,
    #5d5dff,
    #5d5dff 10%,
    #8383ff 10%,
    #8383ff 20%
  );
}

.card:hover.inactive { /* TO-DO: fix to work for all sized cards */
  /*background-size: 69% 116%;
  animation: move-it 0.1s linear;
  animation-fill-mode: forwards;*/
}

.card:hover .delete {
  color: var(--white);
}

.show-flex {
  display: flex;
}

.games {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.flex-center-center {
  align-items: center;
  justify-content: center;
}

a {
  text-decoration: none;
  margin: 5px 0px;
}

a.btn {
  display: inline-block;
}

.btn-primery {
  background-image: linear-gradient(-180deg, #5d5dff 0%, #0000ff  100%);
  border-radius: .5rem;
  box-sizing: border-box;
  color: #FFFFFF;
  display: flex;
  font-size: 16px;
  justify-content: center;
  padding: 1rem 1.75rem;
  text-decoration: none;
  width: 100%;
  max-width: 150px;
  border: 0;
  outline: 2px solid #838383;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn-primery:hover {
  background-image: linear-gradient(-180deg, #0000ff 0%, #5d5dff 100%);
}

.btn-secondary {
  background-image: linear-gradient(-180deg, #ffffff  0%, #e9e8e8  100%);
  border-radius: .5rem;
  box-sizing: border-box;
  color: #000000;
  display: flex;
  font-size: 16px;
  justify-content: center;
  padding: 1rem 1.75rem;
  text-decoration: none;
  width: 100%;
  max-width: 150px;
  border: 0;
  outline: 2px solid #838383;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn-secondary:hover {
  background-image: linear-gradient(-180deg, #e9e8e8 0%, #ffffff 100%);
}

@media (min-width: 768px) {
  .btn-primery {
    padding: 1rem 2rem;
  }
}

@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .container {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .card-container {
    grid-template-columns: 1fr;
  }
}

.silent {
  color: #aaa;
}

.small {
  font-size: 10px;
}

.fat {
  font-weight: bold;
}

.dark {
  color: #494949;
}

.accordion {
/*  background-color: #eee;*/
/*  color: #444;*/
  cursor: pointer;
  padding: 18px 0px 10px 0px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
/*  font-size: 15px;*/
  transition: 0.4s;
}

.accordion:after {
  content: '\002B';
  color: #777;
  font-weight: bold;
/*  float: right;*/
  margin-left: 5px;
}

.open:after {
  content: "\2212";
}

.panel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.group {
  margin: 5px 0px;
}

.waves-container {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
}

.waves {
  position:relative;
  width: 93%;
  height:15vh;
  margin-bottom:-7px; /*Fix for safari gap*/
  min-height:50px;
  max-height:50px;
}

.card:hover .parallax > use {
  animation-play-state: paused;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}

@keyframes move-it {
  0% {
    background-position: initial;
  }
  100% {
    background-position: 50% 0px;
  }
}

/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height:40px;
    min-height:40px;
  }
  .content {
    height:30vh;
  }
  h1 {
    font-size:24px;
  }
}