*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --codeface-blue: #297EF4;
  --codeface-blue-light: #5AA5F7;
  --codeface-blue-lightest: #BCE6FD;
  --codeface-blue-dark: #1E63C3;
  --codeface-blue-darker: #154A93;
}

body {
  margin: 0;
  padding: 0;
  background: url(images/banner-bg.gif) repeat-x top left;
  font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
  color: #666;
}

.header {
  display: flex;
  margin-top: 15px;
  align-items: center;
  justify-content: center;
}

.header img {
  display: block;
}

.main-outer {
  padding: 50px 0;
  background-image: url("./images/ruby-on-rails.svg");
  background-repeat: no-repeat;
  background-position: 0 calc(100% + 1em);
  background-size: 50%;
}

.main {
  width: 800px;
  margin: 0 auto;
}

.main-heading {
  position: relative;
  height: 61px;
  margin-left: 7px;
  background: url(images/title-speaker.gif) no-repeat top left;
}

.main-heading h1 {
  font: normal 20px/42px "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
  position: absolute;
  left: 58px;
  height: 50px;
  margin: 0;
  padding: 0 20px 0 0;
  background: url(images/speech-bubble-bg.gif) no-repeat top right;
  color: #0a63ca;
}

.main h3 {
  color: #0a63ca;
  font-size: 16px;
}

.main p {
  font-size: 13px;
  line-height: 18px;
}

.hero-image {
  float: right;
  width: 250px;
  margin: 0 0 1em 1em;
  border: 3px solid var(--codeface-blue);
  border-radius: 4px;
}

.cta a {
  display: inline-block;
  width: 100%;
  padding: 10px;
  background: var(--codeface-blue);
  color: #FAFAFA;
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
}

.cta a:hover {
  background: var(--codeface-blue-dark);
}

.footer {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--codeface-blue-light);
  padding: 50px 0 94px;
  background-color: var(--codeface-blue-darker);
  background-image: url(images/footer/codeface-logo.png);
  background-position: 0 50%;
  background-repeat: no-repeat;
  background-size: auto 200%;
  color: var(--codeface-blue-lightest);
  text-align: center;
}

.footer-copyright {
  margin-top: 50px;
  font-family: monospace;
  font-size: 12px;
  color: var(--codeface-blue-light);
}

@media screen and (max-width: 959px) {

  .main-outer {
    padding: 2rem 1rem;
    background-size: 80%;
    background-position: center bottom;
  }

  .main {
    width: 100%;
  }

  .main-heading {
    margin: 50px 0 0 0;
  }

  .main-heading h1 {
    font-size:15px;
  }

  .hero-image {
    float: none;
    width: 100%;
    margin: 0 0;
  }

  .footer {
    background-position: -10% 50%;
    background-size: auto 200%;
    padding: 2rem 1rem;
  }

}

