@import url("firefox.css");

@font-face {
  font-family: CreatoDisplayRegular; /* set name */
  src: url(./../fonts/CreatoDisplay-Regular.otf); /* url of the font */
}
@font-face {
  font-family: CreatoDisplayThin; /* set name */
  src: url(./../fonts/CreatoDisplay-Thin.otf); /* url of the font */
}

:root {
  --primary: #9fa6dd;
  --secondary: #505486;
}

/* Body and Wrappers */
.content {
  width: 500px;
}

header {
  margin: 0 0 2em 0;
  position: relative;
}

#header-wrapper {
  /* add color here to change header color*/
  box-shadow: 0px 3px 0px 0px var(--primary);
}

#main-wrapper {
  padding: 1em 0 3em 0;
}

.container {
  margin: 0 auto;
  max-width: 100%;
  width: 1000px;
}

.grid-container div {
  padding: 10px;
  text-align: center;
}

.divider {
  border: 1px solid var(--primary);
}

body {
  background-color: white;
  letter-spacing: 0.15rem;
  font-family: CreatoDisplayRegular;
  font-size: 13pt;
  line-height: 2.25em;
}
p {
  font-family: CreatoDisplayRegular;
}

input,
select,
textarea {
  font-family: CreatoDisplayRegular;
  font-size: 13pt;
  font-weight: 300;
  line-height: 1em;
}

a {
  color: var(--secondary);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

hr {
  border: 0;
  border-top: solid 1px #eee;
}

.booktitle {
  display: none;
}

/* Moblie Menu */
#mobile-menu-btn {
  display: none;
}

.mobile-menu a {
  color: inherit;
  text-decoration: none;
}
.mobile-menu {
  color: black;
  display: none;
}

/* Fonts */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  font-family: CreatoDisplayThin;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none;
  outline: 0;
}

h1 {
  font-size: 3.25em;
  line-height: 1em;
}

h2 {
  font-size: 2.25em;
  line-height: 1em;
}

h3 {
  font-size: 1.35em;
  margin: 0.5em;
}

/* Forms */

form label {
  font-weight: 800;
  margin: 0.5em 0 0.5em 0;
  font-size: 1em;
  color: var(--secondary);
}

form input,
form select,
form textarea {
  border-radius: 8px;
  border: solid 1px var(--secondary);
  width: stretch;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: soild 3px var(--secondary);
}

form input,
form select {
  line-height: 3em;
  padding: 0 1em;
}

form textarea {
  min-height: 9em;
  padding: 1em;
}

/* Button */

input[type="button"],
input[type="submit"],
input[type="reset"],
button,
.button {
  background: var(--secondary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  letter-spacing: 0.15em;
  font-family: CreatoDisplayRegular;
  outline: 0;
  border: 0;
  cursor: pointer;
  padding: 10px;
  margin-top: 20px;
}

/* Nav */

#nav {
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 0.9em;
  font-family: CreatoDisplayThin;
}

#nav ul {
  list-style: none;
  padding-left: 0;
}

#nav ul li {
  float: left;
  line-height: 4.5em;
  padding-left: 1.5em;
}

#nav ul li a,
#nav ul li span {
  font-weight: 800;
  letter-spacing: 0.15em;
  color: black;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.5em 1em 0.5em 1em;
}

#nav ul li > ul {
  display: none;
}

#nav ul li.current a {
  background: var(--secondary);
  color: #fff;
}

/* Footer */

#footer a {
  color: inherit;
}

footer div {
  color: black;
  font-size: small;
}

#footer-wrapper {
  padding: 2em 0 2em 0;
  background-color: var(--primary);
}

/* Logo */

#logo h1 {
  color: black;
  font-weight: 400;
  font-size: 3.25em;
  letter-spacing: 0.05em;
  display: inline-block;
  vertical-align: middle;
}

/* Sizes */

.contact-row {
  gap: 100px;
}
.grid-container {
  display: grid;
  grid-template-columns: auto auto;
  padding: 10px;
}

.container {
  width: 1200px;
}
.row {
  display: flex;
  flex-direction: row;
}

.column {
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 1280px) {
  .grid-container {
    display: grid;
    grid-template-columns: auto auto;
    padding: 10px;
  }

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

  .column {
    display: flex;
    flex-direction: column;
  }
  .contact-row {
    gap: 20px;
  }
  #main-wrapper {
    margin: 20px;
  }
}

/*Moblie view */
@media screen and (max-width: 980px) {
  .row {
    display: flex;
    flex-direction: column;
  }

  .container {
    width: 960px;
  }

  .column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #main-wrapper {
    margin: 20px;
  }

  .grid-container {
    display: grid;
    grid-template-columns: auto;
    padding: 10px;
  }
  body,
  input,
  select,
  textarea {
    font-size: 11pt;
  }

  .contact-row {
    gap: 0;
  }
  /* Wrappers */

  #header-wrapper {
    padding: 3em 0 1em 0;
    text-align: center;
  }

  /* Header */

  #header {
    margin: 0 auto;
  }

  /* Logo */

  #logo span {
    display: block;
    margin: 0;
  }

  /* Nav */

  #nav {
    display: none;
  }

  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  button,
  .button {
    width: 100%;
    text-align: center;
    font-size: 1.25em !important;
  }
  /* Moblie Menu */

  #mobile-menu-btn {
    display: block;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  }
}
