@font-face {
  font-family: "lobstertwo";
  src: url("/css/lobstertwo-bolditalic-webfont.woff2");
}
@font-face {
  font-family: "oswald";
  src: url("/css/oswald-regular-webfont.woff2");
}

* {
    box-sizing: border-box;
}

a, a:visited, a:focus {
    color: #2f3336;
    text-decoration: none;
}
a:hover {
    color: #6e5c29;
}
p.error {
    display: flex;
    align-items: center;
    background-color: #EC5840;
    padding: 0.5em;
    color: white;
    fill: white;
}
p.error svg {
    margin-right: 0.5em;
}
section.success {
    border: 1px solid #2f3336;
    padding: 1.5em;
    font-size: 1.3em;
}
section.success p:not(:last-child) {
    margin-bottom: 1.5em;
}

section.wifi {
    border: 1px solid #2f3336;
    padding: 1.5em;
    font-size: 1.3em;
}
section.wifi dd {
    font-size: 1em;
    color: #6e5c29;
    margin-bottom: 1em;
}

.is-pop {
    font-family: "lobstertwo", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    width: 100%;
    max-width: 700px;
    margin: auto;
    padding-top: 2em;

    font-size: 16px;
    font-family: "oswald", sans-serif;
}

header {
    display: flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    align-items: center;
}

header nav {
    display: flex;
    align-self: flex-end;
}
header nav .flag, header nav .flag img {
    box-sizing: border-box;
    width: 40px;
}
header nav .flag img.selected {
    border: 1px solid #2f3336;
}
header nav .flag {
    margin: 0 5px;
}

header h1 {
    font-family: "lobstertwo", sans-serif;;
    color: #2f3336;
    font-size: 3.5em;
    font-weight: 400;
    text-align: center;
}

main form {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

main form .form-group {
    display: flex;
    padding: 0.75em;
    font-size: 1em;
}

main form fieldset {
    flex-direction: column;
    -webkit-flex-direction: column;

    border: none;
}

main form fieldset label {
    text-transform: uppercase;
}
main form fieldset input {
    border: 1px solid #2f3336;
    font-size: 1em;
    height: 2.2em;
    padding: 0.3em;
    width: 100%;
}
main form fieldset input.error {
    border: 1px solid #EC5840;
}
main form fieldset p.error {
    margin: 0;
}

main form .controls {
    justify-content: space-between;
    align-items: flex-start;

    margin-top: 1em;
}
main form .controls button {
    cursor: pointer;
    border: none;
    padding: 1em;

    background-color: #2f3336;
    font-size: 1em;
    color: white;
}

footer {
    margin: 3em 0 1em 0;
    display: flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    align-items: center;
}
footer h3 {
    margin: 0;
    font-size: 0.8em;
    color: #2f3336;
}
footer img {
    width: 150px;
}
