/* ------------------------------ BODY & BACKGROUND ------------------------------ */
* {
  box-sizing: border-box;
}

body {
  background: black url(../images/desktop_background.png) no-repeat fixed;
  background-size: cover;
  margin: 0;
  color: white;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
}





/* ------------------------------ NAVIGATION & HEADER------------------------------ */
/* ---------- DESKTOP NAV ---------- */
header nav:nth-of-type(1) {
  background-color: black;
  width: 100%;
  height: 50px;
  position: fixed;
  z-index: 2;
  justify-content: space-between;
}

header nav:nth-of-type(1) > div:nth-of-type(n) {
  margin: auto 40px;
  gap: 20px;
}

header nav:nth-of-type(1) a {
  text-decoration: none;
  color: rgb(0, 150, 255);
  font-size: 16px;
  font-weight: bolder;
  letter-spacing: 1px;
}

header nav:nth-of-type(1) a:hover {
  color: white;
}

/* ---------- MOBILE NAV ---------- */
header nav:nth-of-type(2) {
  display: none;
  background-color: black;
  width: 100%;
  height: 75px;
  position: fixed;
  z-index: 2;
  top: 0;
}

header nav:nth-of-type(2) > div:nth-of-type(1) {
  height: 100%;
}

header nav:nth-of-type(2) h2 {
  margin: auto;
}

header nav:nth-of-type(2) > div:nth-of-type(1) a div {
  width: 75px;
  height: 100%;
}

header img {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

header nav:nth-of-type(2) div:nth-of-type(1) div:nth-of-type(1):hover {
  background-color: darkslategray;
}

#drop-menu {
  display: none;
  background-color: black;
}

#drop-menu a {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: rgb(0,150,255);
  font-size: 18px;
  font-weight: bolder;
  letter-spacing: 1px;
}

#drop-menu a:hover {
  background-color: darkslategray;
  color: white;
}





/* ------------------------------ FOOTER ------------------------------ */
footer {
  background-color: black;
  width: 100%;
  height: 100%;
  padding: 40px;
}

footer > div:nth-of-type(2) a {
  color: rgb(0, 150, 255);
}

footer > div:nth-of-type(2) a:visited {
  color: rgb(0, 0, 200);
}

footer > div:nth-of-type(n):last-child a {
  text-decoration: none;
}





/* ------------------------------ MAIN ------------------------------ */
main {
  width: 100%;
  min-height: 135px;
  padding: 40px 100px;
}

main section {
  position: relative;
  z-index: 1;
}

main section:nth-of-type(1) {
  text-align: center;
}

#page-title {
  font-size: 32px;
}

article {
  text-align: left;
}

/* ---------- TEXT CONTAINERS ---------- */
.text-containers {
  background-color: rgba(0, 0, 0, .5);
  width: fit-content;
  height: fit-content;
  border-radius: 15px;
  padding: 20px;
}

/* ---------- FORMS ---------- */
form {
  background-color: rgba(0, 0, 0, .5);
  width: fit-content;
  height: fit-content;
  border: 2px solid white;
  border-radius: 15px;
  margin: 0 auto 40px auto;
  padding: 20px;
}

input,
textarea {
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
}

/* ---------- BUTTONS ---------- */
form button {
  background-color: transparent;
  width: fit-content;
  height: 40px;
  border: 2px solid white;
  border-radius: 25%;
  color: white;
  font-size: 18px;
  padding: 0 5px;
  cursor: pointer;
}

form button:hover {
  background-color: blue;
}

form button:active {
  background-color: white;
  color: black;
}

/* ---------- TABLES ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  color: white;
  text-align: left;
  margin: auto;
}

table tr:nth-of-type(odd) {
  background-color: darkslategray;
}

table tr:nth-of-type(even) {
  background-color: navy;
}

th {
  background-color: black;
  border: 2px solid black;
  text-align: center;
  padding: 5px 0;
}

td {
  border: 2px solid black;
  padding: 10px;
}





/* ------------------------------ OTHER ------------------------------ */
.center {
  text-align: center;
}

.flexbox {
  display: flex;
}

.button-link {
  background-color: red;
  border: 1px solid black;
  border-radius: 5px;
  padding: 5px 5px;
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.success {
  background: rgba(108, 192, 112, 0.7);
  width: 75%;
  height: fit-content;
  padding: 10px;
  margin: 0 auto;
}

.error {
  background: rgba(255, 102, 51, 0.7);
  width: 75%;
  height: fit-content;
  padding: 10px;
  margin: 0 auto;
}





/* ------------------------------ MOBILE CSS ------------------------------ */
@media only screen and (max-width: 850px) {
  body {
    background-image: url(../images/mobile_background.png);
    background-attachment: fixed;
  }

  header nav:nth-of-type(1) {
    display: none;
  }

  main section:nth-of-type(1) {
    display: none;
  }

  header nav:nth-of-type(2) {
    display: block;
  }  

  main {
    margin-top: 75px;
    min-height: 370px;
    flex-direction: column;
    padding: 20px;
  }

  table {
    width: 100%;
  }

  th,
  td {
    font-size: 12px;
  }
}