* {
  font-family: system-ui, sans-serif;
  box-sizing: border-box;
}

body {
  font-size: 20px;
  max-width: 1200px;
  margin: 0 auto;
  color: #263238;
}

@media only screen and (max-width: 1200px) {
  body {
    padding: 0 10px;
  }
}

@media only screen and (max-width: 850px) {
  body {
    font-size: 16px;
  }
}

hr {
  border: none;
  border-top: 1px solid #78909c;
}

input {
  border: 3px solid #263238;
  background: none;
}

input:hover {
  border-color: #1976d2;
}

input:active {
  border-color: #2196f3;
  outline: none;
}

input[type='submit'],
button {
  background-color: #263238;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
}

input[type='submit']:hover,
button:hover {
  background: #1976d2;
}

input[type='submit']:active,
button:active {
  background: #2196f3;
}

.awaiting-load,
.hidden {
  display: none !important;
}

#loadingMessage {
  text-align: center;
  padding: 50px;
  background: #eceff1;
}

/************** HEADER **************/

.header {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #b0bec5;
}


#header-links {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.header h1 {
  text-decoration: none;
  margin: 0;
}

.header h1 a {
  color: inherit;
}

.header a {
  color: #607d8b;
  text-decoration: none;
  text-align: center;
  flex-grow: 1;
}

.header a:hover {
  text-decoration: underline;
}

#hamburger {
  display: none;
}

@media only screen and (max-width: 850px) {
  .header {
    height: 60px;
  }
}

@media only screen and (max-width: 600px) {
  #hamburger {
    display: block;
    text-align: right;
    line-height: 0; /* fix for extra space around image */
  }

  #header-links {
    display: none;
  }

  #header-links.expanded {
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    background: #263238;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 30px;
    box-shadow: 0 10px 16px 0px rgba(0, 0, 0, 0.2);
  }

  #header-links a {
    display: block;
    padding: 10px;
    font-weight: 600;
    font-size: 19.2px;
    text-align: right;
    color: #fff;
  }
}

.headerCTA {
}

/************** SEARCH PAGE **************/

.titleCTA {
  text-align: center;
}

#inputBox {
  height: 60px;
  display: flex;
  max-width: 800px;
  margin: 40px auto;
  gap: 10px;
}

#inputBox input {
  flex-grow: 1;
  flex-shrink: 1;
  font-size: 20px;
  border-radius: 10px;
}

#inputBox #username {
  font-weight: 600;
  width: 150px;
  /*not actual width since item will flexbox grow*/
  flex-grow: 2;
  padding: 0 25px;
}

/************** SEARCH PAGE USER DISPLAY **************/

#userStatusWrapper {
  border-radius: 10px;
  padding: 40px;
  background: #e3f2fd;
}

#userStatusWrapper.scammer {
  background: #ffebee;
}

#userStatusWrapper.banned {
  background: #f7f5da;
}

.userStatusTitleRow {
  display: flex;
  flex-direction: row;
}

#userStatusWrapper h3 {
  color: #1976d2;
  margin: 0;
  flex-grow: 1;
}

#userStatusWrapper.scammer h3 {
  color: #d32f2f;
}

#userStatusWrapper.banned h3 {
  color: #dbd03d;
}

.login-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: block;
}

.login-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  background: #111;
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 48px 0 rgba(0,0,0,.26), 0 1px 6px 0 rgba(0,0,0,0.21);
  max-width: 370px; width: 90vw;
  padding: 2.2em 2em 2em 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translate(-50%, -60%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 1.18em;
  width: 100%; align-items: center;
}

#login-form input[type="text"],
#login-form input[type="password"] {
  width: 96%; max-width: 300px;
  font-size: 1.08em;
  border-radius: 12px;
  border: 1.5px solid #444;
  background: #181818;
  padding: 12px 15px;
  color: #fff;
  margin-top: 2px;
  transition: border-color 0.16s, box-shadow 0.19s, background 0.19s;
  box-sizing: border-box;
}
#login-form input[type="text"]:focus, #login-form input[type="password"]:focus {
  border-color: #fff;
  background: #101014;
  box-shadow: 0 0 0 2px #fff8;
  outline: none;
}

#login-form input[type="button"] {
  width: 96%; max-width: 300px;
  border-radius: 13px;
  background: #fff;
  color: #181818;
  border: none;
  font-size: 1.13em;
  font-weight: 700;
  box-shadow: 0 2px 15px 0 #2228;
  padding: 14px;
  margin-top: 7px;
  transition: background 0.17s, color 0.16s;
  cursor: pointer;
}
#login-form input[type="button"]:hover {
  background: #181818;
  color: #fff;
  border: 1px solid #fff;
}

#login-modal h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
}

.login-error {
  width: 94%;
  min-height: 20px;
  margin: 0 auto;
  text-align: center;
  margin-top: -2px; margin-bottom: 0.4em;
  color: #ff7979;
  background: none;
  border-radius: 7px;
}
