@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root {
  --primary-color: #00133F;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", serif;
  background-color: var(--primary-color);
  color: #4B4F58;
}

h1,
h2,
h3,
h4 {
  color: black;
}

a {
  text-decoration: none;
}

.container {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  max-width: 1024px;
  margin: auto;
}

.content {
  flex: 1;
  padding: 20px;
}

.content h1 {
  margin-bottom: 20px;
}

#item-step {
  padding: 20px;
  display: flex;
  justify-content: space-between;
}


#prev-item {
  margin-top: 50px;
  align-self: flex-start;
}

#next-item {
  margin-top: 50px;
  align-self: flex-end;
}

.note {
  font-size: smaller;
}

.center {
  text-align: center !important;
}


/* MENU */

#navbar-mobile,
#navbar-mobile-links {
  display: none;
}

#menu {
  padding: 0 20px;
  border-bottom: solid 1px black;
  position: sticky;
  z-index: 10;
}

.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner i {
  color: black;
  font-size: 1.5rem;
}

#navbar {
  overflow: hidden;
}

#navbar a,
#navbar-mobile-links a {
  float: left;
  font-size: 16px;
  color: black;
  font-weight: 600;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

#navbar-mobile-links a {
  border-right: 1px solid #00133F;
  padding: 5px 16px;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropdown-button {
  font-size: 16px;
  border: none;
  outline: none;
  color: black;
  font-weight: 600;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  cursor: pointer;
}

#navbar a:hover,
.dropdown:hover .dropdown-button {
  color: cornflowerblue;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 15;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.social-media-icons i {
  padding-left: 20px;
  width: fit-content;
}

/* POST LISTS */

#posts-container {
  margin: 10px auto;
}

.post {
  margin: 10px auto;
  display: flex;
  flex-direction: column;
}


.post img {
  max-width: 100%;
  width: fit-content;
  margin: auto;
}

.post h2 {
  margin: 20px 0;
}

.post p {
  margin-bottom: 20px;
}

.post .button {
  width: fit-content;
}

.post hr {
  margin: 40px 0;
  color: whitesmoke;
  background-color: whitesmoke;
  height: 1px;
  border: none;
}

#pagination {
  width: fit-content;
  margin: auto;
  padding: 20px;
}

#pagination .button {
  margin: 5px;
}

#pagination .button.active {
  background-color: cornflowerblue;
}

/* POST CONTENT */

.post-content * {
  max-width: 100%;
}

.post-content p {
  margin: 15px 0;
  text-align: justify;
}

.post-content img {
  display: block;
  margin: auto;
}

.post-content ul {
  padding: 0 30px;
}

.post-content h3 {
  margin-top: 30px;
}

.two-column {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 20px;
  padding: 20px;
}

.two-column img {
  width: 100%;
}


/* MEMBERS */

.member-content {
  background-color: var(--primary-color);
  text-align: center;
  color: white;
  padding: 20px;
  margin-bottom: 40px;
}


.member-content h1 {
  margin-bottom: 50px;
  color: white;
}

.members {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 40px;

}

.member {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member img {
  width: 100%;
  border-radius: 50%;
}

.member h3 {
  padding: 10px 0;
  color: white;
}

.member div {
  padding: 20px 0;
}

.issi {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 20px;
  padding: 20px;
}

.issi p {
  margin: 40px 0;
}

.grey {
  color: #4B4F58;
}

.fb-blue {
  color: #1778F2;
}

.li-blue {
  color: #0D66C2;
}

.insta-pink {
  color: #EC0074;
}


/* ABOUT */

.about p {
  margin: 20px 0;
  text-align: justify;
}

.about-highlight {
  padding: 40px 0;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
  font-size: x-large;
  font-style: italic;
  text-align: center;
}

/* PUBLICATIONS */

.publications h1,
.publications h2 {
  margin: 10px 0;
}

.publications ul {
  padding: 20px;
}

.publications ul li {
  margin-bottom: 10px;
}

.pub-title {
  text-decoration: underline;
  font-weight: 700;
  display: block;
  color: black;
}

.button {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 20px;
  border-radius: 5px;
}

.post-content .button {
  background-color: white;
  color: #00133F;
  border: 1px solid #00133F;

}

button {
  padding: 10px;
  margin-bottom: 10px;
}

/* GALLERY */

.green {
  color: green;
}

.blue {
  color: blue;
}

.red {
  color: red;
}

#gallery-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.gallery-item img {
  border-radius: 10px;
  width: 100%;
}

#media-container ul {
  padding: 0 40px;
  margin-bottom: 20px;
}

#media-container p,
#media-container a,
#media-container h2 {
  margin: 10px 0;
}

#media-container .note {
  font-style: italic;
}

#media-container hr {
  margin: 40px 0;
}

/* FOOTER */

.h2020 {
  padding: 20px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 20px;
  background-color: whitesmoke;
}

.footer-links {
  display: flex;
  justify-content: center;
  background-color: var(--primary-color);
  padding: 10px;
}

.footer-links a {
  margin: 0 10px;
  text-decoration: none;
  color: white;
}

@media screen and (max-width: 480px) {
  #item-step {
    padding: 60px 0px 20px 0px;
  }


  /* MENU */
  #navbar {
    display: none;
  }

  #navbar-mobile {
    display: block;
  }


  .banner-icons {
    margin: 10px 0 0 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .banner img {
    max-width: 100%;
  }

  .banner {
    flex-direction: column-reverse;
  }

  /* POST CONTENT */

  .post-content {
    padding: 0px;
  }

  .two-column {
    grid-template-columns: auto;
  }

  /* MEMBERS */

  .members {
    grid-template-columns: 1fr 1fr;
  }

  .issi {
    grid-template-columns: 1fr;
  }

  .issi * {
    max-width: 100%;
  }

  /* GALLERY */

  #gallery-container {
    display: grid;
    grid-template-columns: auto;
  }


  /* FOOTER */

  .h2020 {
    grid-template-columns: auto;
    text-align: justify;
  }

  .h2020 img {
    display: block;
    margin: auto;
  }

}