/* Make styles for header so it centers the text and creates a min-height 300px background color. It should be centered horizontally and vertically */
body {
  margin: 0;
  /* Use font Gothic A1 */
  font-family: "Gothic A1", sans-serif;
  font-size: 1.2em;
  line-height: 1.5;
  color: hsl(0, 0%, 20%);
}

a {
  color: hsl(210, 45%, 48%);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  text-align: center;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  /* Make the background into img/bg.jpeg and make it cover */
  background-image: url("img/bg_dark.png");
  background-size: cover;
  background-position: top right;
  margin-bottom: 30px;
}

header > p {
  font-size: 0.8em;
  color: hsl(0, 0%, 80%);
  margin: 0;
}

.navbar {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}

.navbar li {
  float: left;
}

.navbar li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  /* font-size: 12px; */
}

.navbar li a:hover {
  background-color: #111;
}

main {
  background-color: white;
}

section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0px 20px;
}

h1 {
  font-size: 2em;
  margin: 0;
}

h2 {
  font-size: 1.5em;
  margin: 0;
  /* color: hsl(210, 45%, 48%); */
}

.sponsors,
.speakers,
.organizers {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
}

.sponsor > img,
.speaker > img,
.Organizer > img {
  width: 150px;
  height: 150px;
  margin-right: 20px;
  /* Cover the square */
  object-fit: cover;
}

.sponsor,
.speaker,
.Organizer {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  margin-right: 20px;
  width: 40%;
}

.sponsor > div > h3,
.speaker > div > h3,
.Organizer > div > h3 {
  margin: 0;
}

.sponsor > div > p,
.speaker > div > p,
.Organizer > div > p {
  margin: 0;
  font-size: 0.8em;
  color: hsl(0, 0%, 50%);
}

table.schedule {
  width: 100%;
  border-collapse: collapse;
}

table.schedule td {
  padding: 10px;
  border: 1px solid hsl(0, 0%, 80%);
}

table.schedule td:first-child {
  width: 100px;
  text-align: right;
  font-weight: bold;
  color: hsl(0, 0%, 50%);
}

table.schedule td:nth-child(2) {
  width: 70%;
  text-align: left;
}

/* Style for minimum width of first column of 100px */
@media (min-width: 600px) {
  table.schedule td:first-child {
    width: 150px;
  }
}

/* Add animation to everything of fade-in from the bottom */
.fade-in {
  animation: fade-in 0.5s ease-in-out;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Make width of speakers and organizers full width if screen is smaller than 600px */
@media (max-width: 900px) {
  .sponsors,
  .speakers,
  .organizers {
    width: 100%;
  }
  .sponsor,
  .speaker,
  .Organizer {
    width: 100%;
  }
}
