@font-face {
    font-family: "Instrument Sans";
    src: url("InstrumentSans-Medium.ttf") format("truetype");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: "Instrument Sans", sans-serif;
    background-color: #1a1a2e;
    background-image: url('background.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: scroll;
    background-size: cover;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: 120px;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-color: #4c39ff8c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2000;
    box-sizing: border-box;
}

.top-nav .logo {
    width: 130px;
    height: auto;
    cursor: pointer;
    border: 0px;
}

.top-nav .challenge-label {
    color: white;
    font-family: "MovieCredit", sans-serif;
    font-size: 2em;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* The city's name in the top-nav banner. --city-title is set by
 * /city/city.css, which the server resolves from STATION_CITY; the fallback
 * here is what shows if that stylesheet is missing. */
.city-title::before {
    content: var(--city-title, "Canal Caper");
}

h1 {
    font-family: "MovieCredit", sans-serif;
    font-weight: normal;
}

button {
    min-width: 160px;
    padding: 0 24px;
    height: 48px;
    background-color: #4c39ff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #e743ef;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Typewriter cursor */
.cursor {
    display: inline;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@font-face {
    font-family: "MovieCredit";
    src: url("moviecredit.otf") format("opentype");
    font-weight: normal;
}

@font-face {
    font-family: "MovieCredit";
    src: url("moviecredit-bold.otf") format("opentype");
    font-weight: bold;
}

/* Civo credit badge */
.civo-credit {
    position: fixed;
    bottom: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    z-index: 100;
    cursor: pointer;
}

.civo-credit-label {
    font-family: "MovieCredit", sans-serif;
    font-size: 1.4625em;
    font-weight: normal;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.civo-credit img {
    height: 54px;
    margin-top: -20px;
    margin-left: -2px;
    width: auto;
}