:root {
  --h1-colour: #2c3e50;
  --button-colour: #d88c9a;
  --lh-color: #d88c9a;
  --rh-color: #f2d0a9;
  --button-hover-color: #f2d0a9;
  --button-hover-text-color: #2c3e50;
}

body {
  margin: 0;
}

#app-container {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  padding: 0;
}

header {
  z-index: 1;
}

header a {
  position: absolute;
  left: 1rem;
  top: 1rem;
}

h1 {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translate(-50%, 0);
  text-decoration: underline;
  font-size: 2rem;
  line-height: 1;
  color: var(--h1-colour);
  margin: 0;
}

.refresh-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  color: var(--button-colour);
  background-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}

.refresh-btn svg {
  width: 100%;
  height: 100%;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.refresh-btn:hover {
  color: var(--button-hover-color);
}

.refresh-btn:hover svg,
.refresh-btn.spinning svg {
  animation: spin 0.5s ease-in-out;
}

.banner-container {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.lh-banner,
.rh-banner {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
}

.lh-banner {
  background-color: var(--lh-color);
}

.rh-banner {
  background-color: var(--rh-color);
}

.copy,
.title {
  font-size: 1.25rem;
  text-align: left;
}

.title {
  font-weight: 600;
}

@media screen and (min-width: 46rem) {
  h1 {
    font-size: 3rem;
  }
  .banner-container {
    flex-direction: row;
    align-items: flex-start;
  }
  .lh-banner,
  .rh-banner {
    flex-grow: 1;
    padding: 0 3rem;
  }
  .copy,
  .title {
    font-size: 1.5rem;
  }
  .refresh-btn {
    width: 4rem;
    height: 4rem;
  }
}
