/* Import fonts */
@font-face {
  font-family: HK Grotesk;
  src: url("/fonts/HKGrotesk-Regular.otf")
    format("opentype");
}
@font-face {
  font-family: HK Grotesk;
  font-weight: bold;
  src: url("/fonts/HKGrotesk-Bold.otf")
    format("opentype");
}

body, input, button {
    font-family: HK Grotesk, sans-serif;
    font-size: 20px;
}

input, button {
    text-align: left;
    /* margin-bottom: 10px; */
    padding: 10px;
}

input + button {
    margin-left: 10px;
}

button {
    background-color: #00ac1c;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

button:hover, button:active {
    background-color: #009d1a;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
  /* background-size: cover;
  background-repeat: no-repeat; */
  background-color: #14181c;
  color: #eceff1;
  text-wrap-style: pretty;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* justify-content: center;
  align-items: center; */
}

body::after {
  content: "";
  /* background: ; */
  opacity: 0.2;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: fixed;
  z-index: -1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

.container {
    max-width: 400px;
    margin: auto;
}

.hide {
    display: none;
}

h1 {
    color: #eceff1;
    margin-bottom: -20px;
    padding-bottom: 10px;
    font-size: 36px;
}

#debug {
    padding: 0 20px;
    /* font-family: monospace; */
    color: #9ab;
}

#debug p:first-child {
    margin-top: 0;
}

#form {
    padding: 20px;
    margin-bottom: 40px;
}

#film {
    padding: 20px;
    margin-bottom: 40px;
}

#film-title {
    color: #eceff1;
    /* margin-bottom: -20px;
    padding-bottom: 10px; */

    font-size: 36px;
    font-weight: bold;
    margin: 0 0 20px 0;
    text-wrap-mode: pretty;
}

#film-poster img {
    /* box-shadow: 0 0 15px #333; */
    border-radius: 2px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15), 0 5px 25px rgba(0, 0, 0, .25);
}

#film-overview {
    font-size: 16px;
    line-height: 1.5;
    margin: 20px 0 0 0;
}

a {
    color: inherit;
    text-decoration: none;
}

#inputs {
    display: flex;
    flex-direction: row;
}

#inputs {
    flex-direction: column;
}
input, button {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
}
input + button {
    margin-left: 0;
}

.again {
    /* position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px; */
    /* text-align: center; */
    font-size: 14px;
    color: #9ab;
    margin-top: 20px;
}

#cheersderek {
    /* position: fixed;
    left: 20px;
    bottom: 20px; */
    padding: 20px;
    /* opacity: 0.7; */
    filter: saturate(1);
    transition: all 0.2s ease-out;
    display: inline-block;
}

#cheersderek:hover, #cheersderek:active {
    opacity: 1;
    filter: saturate(2);
}

#cheersderek img {
    max-width: 64px;
    height: auto;
    border-radius: 100%;
}

footer {
    padding: 20px;
    color: #9ab;
    font-size: 16px;;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    display: inline;
}

footer img {
    height: 1.1em;
    width: auto;
    border-radius: 50%;
    vertical-align: bottom;
    outline: 1px solid rgba(221, 238, 255, .35);
}

footer li:after {
    content: " — ";
    opacity: 0.5;
}

/* mobile stuff */

@media (max-width: 400px) {
    h1 {
        font-size: 30px;
    }
    #film-title {
        font-size: 30px;
        margin: 0 0 20px 0;
    }
    #cheersderek {
        /* left: 10px;
        bottom: 10px; */
        padding: 10px;
    }
    #cheersderek img {
        max-width: 32px;
    }
    footer {
        padding: 10px;
    }
}

@media (max-height: 500px) {
    #cheersderek {
        /* left: 10px;
        bottom: 10px; */
        padding: 10px;
    }
    #cheersderek img {
        max-width: 32px;
    }
}