/* Format all elements */
* {
  box-sizing: border-box;
}

/* Format the webpage background */
body {
  background: #fff;
  font-family: Montserrat, Arial, sans-serif;
}

/* Format the game logo */
#logo {
  position: absolute;
  top: 42vh;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fadeIn 0.6s;
}

#logo .laPoste {
  background-image: url('https://www.decodedetroit.com/wp-content/uploads/2021/11/La_Poste_logo.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: #fff;
  width: 25vw;
  height: 9.56vw;
  border: none;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

#logo h2 {
  color: #666;
  font-size: 2.1rem;
  font-family: Montserrat, Times, serif;
  font-weight: 400;
  line-height: 0.7;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
}

/* Format the main content area */
#contentBox {
  width: 84vw;
  position: absolute;
  left: 42vw;
  transform: translateX(-50%);
  margin-top: 3rem;
  margin-left: 8vw;
  margin-right: 8vw;
}

.content {
  display: none;
}

.content .laPoste {
  background-image: url('https://www.decodedetroit.com/wp-content/uploads/2021/11/La_Poste_logo.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: #fff;
  width: 25vw;
  height: 9.56vw;
  border: none;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.content h1 {
  color: #444;
  font-size: 1.7rem;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.2rem;
  text-align: center;
}

.content h2 {
  color: #666;
  font-size: 1rem;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 500;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  text-align: center;
}

.content div {
  color: #003da5;
  font-weight: 500;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0.2rem;
}

.content>div {
  width: 100%;
}

hr {
  width: 80%;
  color: #ecc661;
  border: 3px solid #ecc661;
  margin-top: 3rem;
}

/* Format the inputs and buttons */
input {
  color: #003da5;
  background-color: #f4f4f4;
  font-size: 24px;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  text-align: left;
  height: 56px;
  width: 300px;
  border: 1px solid #003da5;
  border-radius: 10px;
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding: 16px;
  transition: color 0.2s, background .2s ease-in-out;
}

input::placeholder {
  text-transform: initial;
  letter-spacing: 0;
  font-size: 16px;
  line-height: 24px;
}

input:focus {
  border: 1px solid #003da5;
}

input.invalid {
  color: #ff2200;
  background-color: #ffd3cc;
  border: 1px solid #ff2200;
}

input.ready {
  color: #4caf50;
  background-color: #d9eed9;
  border: 1px solid #4caf50;
}

button {
  color: #003da5;
  background-color: #ecc661;
  font-size: 24px;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: bold;
  border: none;
  outline: none;
  border-radius: 10px;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2), 0 0 15px 0 rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease-in-out, background .2s ease-in-out;
}

button:hover {
  background-color: #ebc051;
}

button:disabled {
  background-color: #aaa;
  cursor: auto;
}

button.ready {
  background-color: #4caf50;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

:focus {
  outline: none;
}
::-moz-focus-inner {
  border: 0;
}

/* Format specific items */
#posteMenu {
  animation: fadeIn 0.6s;
}

#alreadyWarning {
  display: none;
}

.content .text {
  display: inline-block;
  max-width: 750px;
}

#intro {
  padding-bottom: 2rem;
}

/* Format the overlay */
#overlay {
  position: fixed;
  display: none;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(255,255,255,0.5);
  z-index: 100;
}

.center {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
}

.loadingCircle {
  border: 10px solid #aaaaaa;
  border-top: 10px solid #003da5;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  position: absolute;
  top: 0;
  left: 0;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile screen adjustments */
@media only screen and (max-width: 800px) {
  #logo .laPoste {
    width: 75vw;
    height: 28.68vw;
  }
  
  #logo h2 {
    font-size: 7vw;
  }

  .content .laPoste {
    width: 50vw;
    height: 19.12vw;
  }
}

/* Very small screen adjustments */
@media only screen and (max-width: 350px) {
  .content h1 {
    font-size: 10vw;
  }
  
  .content h2 {
    font-size: 6vw;
  }
  
  .content button {
    font-size: 6.5vw;
  }

  .content input {
    width: 80vw;
    font-size: 6.5vw;
  }
}

