 /* main hud */

@font-face {
  font-family: headerFont;
  src: url('../assets/fonts/powerful.ttf');
}

@font-face {
  font-family: header2Font;
  src: url('../assets/fonts/matcha.otf');
}

@font-face {
  font-family: P-Font;
  src: url('../assets/fonts/alphakind.ttf');
}

@font-face {
  font-family: Li-Font;
  src: url('../assets/fonts/wildeast.ttf');
}

h1 {
  font-family: headerFont;
  text-align: center;
}

h2 {
  font-family: header2Font;
  text-align: center;
}

p {
  font-family: P-Font;
}

li {
  font-family: Li-font;
  font-size: 20px;
}

/* counter css */

#my-counter {
  display: flex;
  justify-content: center;
  margin: 15px auto;
}
 
 /* main visuals */
 
.homeLogo {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
 
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fefefe;
  border: 5px solid #06444d;
  box-sizing: border-box;
  width: 50%;
  padding: 20px 25px;
  max-height: 80vh;
  overflow-y: auto;
  animation: fadein 0.2s;
}

@keyframes fadein {
  from {opacity: 0}
  to {opacity: 1}
}

.modal-header {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

.modal-body {
  padding: 2px 16px;
}

.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../assets/loopBG.webp');
  background-attachment: fixed;
  background-repeat: repeat;
  background-size: 433px 167px;

  animation: scrollBackground 40s linear infinite;
}

@keyframes scrollBackground {
  from {
    background-position: 0px 0px;
  }

  to {
    background-position: -433px -167px;
  }
}

.boxcontain {
  background-color: white;
  justify-content: center;
  padding: 50px;
  width: 800px;
  border: 5px solid #06444d;
  box-sizing: border-box;
  text-align: center;
}

button {
  border: none;
  outline: none;
  box-shadow: none;
}

/* this the part where the mobile compatability comes in */

@media screen and (max-width: 768px) {

  .modal-content {
    width: 90%;
    max-width: 500px;
    padding: 15px;
    max-height: 85vh;
    overflow-y: auto;
  }

  .homeLogo {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .boxcontain {
    width: 90%;
    max-width: 800px;
    padding: 20px;
    margin: 15px;
  }

  body {
    padding: 15px;
    box-sizing: border-box;
    background-attachment: fixed;
  }

  button {
    max-width: 100%;
    font-size: 16px;
  }

}

@media screen and (max-width: 400px) {

  .modal-content {
    width: 95%;
    padding: 12px;
  }

  .boxcontain {
    padding: 15px;
  }

}