* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: white;
  height: 100%;
}

body {
  font-family: "Roboto Slab", serif;
  min-height: 100%;

  display: flex;
  flex-direction: column;
}

.page-wrapper {
  background: #fff;
  max-width: 1200px;
  margin: 0 auto 0 auto;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

header img {
  width: 250px;
}

.heading {
  text-align: center;
  padding: 3em;
  border-top: 1px solid navy;
  border-bottom: 1px solid navy;
  color: #b2282d;
}

.heading h1 {
  font-size: 3em;
}

.container1 {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  max-width: 1200px;
}

.sidebar {
  background: rgba(0, 0, 100, 0.3);
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex-basis: 300px;
  min-width: 250px;
  color: rgb(0, 0, 100);
  min-height: 100%;
  margin-top: 30px;
}

.sidebar div {
  text-align: left;
  line-height: 1.5rem;
  margin-bottom: 20px;
  margin-left: 50px;
}

.main-content {
  justify-content: center;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 20px;
  align-self: flex-end;
}

.main-content img {
  width: 200px;
}

.main-content p {
  margin-top: 10px;
  text-align: left;
  padding: 2em;
  line-height: 1.7em;
  font-size: 1.3em;
}

p.resume-tagline {
  padding: 2rem;
  text-align: center;
}

.video-container {
  border: 2px solid navy;
}

.iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

footer {
  margin-top: auto;
  background-color: #b2282d;
  color: white;
  padding: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .main-content img {
    width: 300px;
  }

  .main-content p {
    font-size: 1.8em;
  }

  .sidebar {
    order: 2;
    align-items: stretch;
    flex-basis: 100%;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
    border-radius: 10px;
  }

  .sidebar div {
    flex-basis: 40%;
    font-size: 1.2rem;
  }

  a.apply-btn {
    border-radius: 10px;
  }
}

a.apply-btn {
  display: block;
  padding: 20px;
  background-color: rgb(0, 22, 137);
  margin-top: 40px;
  width: 100%;
  color: white;
  font-size: 2rem;
  text-decoration: none;
}

.apply-btn:active {
  transform: scale(0.99);
  box-shadow: inset 3px 3px rgba(0, 0, 0, 0.4);
}
