@font-face {
    font-family: 'Minecraft';
    src: url('./fonts/MinecraftDefault-Regular.woff2') format('woff2');
    font-weight: 300;
    font-style: regular;
}

@font-face {
    font-family: 'Minecraft';
    src: url('./fonts/MinecraftDefault-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: regular;
}

* {
    box-sizing: border-box;
    --radius: 16px;
    --minecraft-spacing: 0em;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1e242c;
    color: white;
    margin: 0 1%;
    font-size: 24px;
    margin-top: 50px;
    margin-bottom: 500px;
}

main>* {
    margin: 0;
}

main>p {
    margin-left: 32px;
}

main {
    max-width: 60ch;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.container {
    width: 100%;
    padding: 20px;
    margin-top: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #272f39;
    justify-content: center;
    border-radius: var(--radius);
    /* gap: 12px; */
    box-shadow: 6px 12px 18px #00000040;
}

.warning {
    background-color: rgb(110, 40, 40);
    font-size: 24px;
}

.container.image {
    align-items: center;
}

img {
    max-width: 80%;
}

img.sonic {
    width: 50%;
}

h1.title {
    font-size: clamp(72px, 120px, 15vw);
    font-weight: 750;
}

h1 {
    font-size: 72px;
    margin: 0;
}

h2 {
    font-size: 36px;
    margin: 16px 0;
}

h1:first-child,
h2:first-child,
p:first-child,
.container:first-child {
    margin: 0;
}

p {
    font-size: 24px;
    margin: 12px 0 0 0;
    line-height: 1.3em;
}

p.welcome {
    font-size: 32px;
    margin: 0;
}

a {
    color: #5261e4;
}

a.page-link {
    text-decoration: none;
    color: inherit;
    background-color: #2f41e0;
    font-size: 1.5em;
    padding: 0.5em;
    width: fit-content;
    border-radius: var(--radius);
    box-shadow: 6px 12px 18px #00000040;
    margin-top: 16px;
}

a.page-link:first-child {
    margin-top: 0;
}

#copy-api-key {
    border-radius: calc(var(--radius) - 20px);
}

a.page-link:hover,
#copy-api-key:hover {
    background-color: #5261e4;
    cursor: pointer;
}

a.page-link:active,
#copy-api-key:active {
    background-color: #25319d;
    cursor: pointer;
}


.page-link.small {
    font-size: 24px;
}


/* steps */

.step {
    gap: 16px;
    display: flex;
    flex-direction: column;
    margin: 16px 0;
}

.substep {
    margin-left: 40px;
}

.api-key-box {
    /* text-align: center; */
    overflow-x: auto;
    overflow-y: hidden;
    /* display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left; */
}

button#copy-api-key {
    background-color: #2f41e0;
    outline: none;
    border: none;
    margin-top: 18px;
    color: white;
    padding: 4px;
    border-radius: var(--radius);
    width: fit;
    box-shadow: 6px 12px 18px #00000040;
}

#copy-api-key:disabled {
    background-color: #161a20;
    cursor: not-allowed;
}

#api-key {
    font-size: 0.9em;
}


.centre {
    align-self: center;
    justify-content: center;
}

.circle {
    background-color: white;
    color: #1e242c;
    font-weight: bold;
    text-align: center;
    display: inline-flex;
    border-radius: 0.69em;
    padding: 0.09em 0.4em;
    min-height: 1.4em;
    min-width: 1.4em;
    justify-content: center;
    box-shadow: 6px 12px 18px #00000040;
}

.red {
    color: rgb(244, 66, 66);
}

.red.circle {
    background-color: rgb(244, 66, 66);
    color: white;
}

/* Server status */

.server {
    display: flex;
    flex-direction: row;
    gap: 16px;
    min-width: 80%;
    width: fit-content;
    justify-content: stretch;
}

img.server-icon {
    height: 64px;
    width: 64px;
    max-width: 100%;
    flex-grow: 0;
    flex-shrink: 0;
}

.server-text {
    flex-grow: 1;
}

.server-online,
.server-address {
    color: #ffffff;
    text-shadow: 3px 3px #3F3F3F;
}

.ip-address {
    text-align: center;
    color: white;
}

.whitelist-note {
    color: #555555;
    font-size: 0.8em;
    margin-top: 4px;
}

#version-box {
    display: none;
}

/* ip */

.ip {
    /* justify-content: flex-start;
    flex-direction: row; */
    width: 100%;
    /* gap: 40px; */
    font-family: 'Minecraft', 'Inter', sans-serif;
    background-color: #161a20;
    /* letter-spacing: var(--minecraft-spacing); */
    padding: 20px;
    margin-bottom: 10px;
}

p.ip-label {
    color: #9e9e9e;
    text-shadow: 3px 3px #272727;
    font-size: 32px;
    margin-top: 2px;
}

p.ip-address {
    background-color: black;
    border: 4px solid #a0a0a0;
    padding: 12px 8px;
    text-shadow: 3px 3px #373737;
    font-size: 32px;
}

.minecraft-error {
    font-family: 'Minecraft', 'Inter', sans-serif;
    color: white;
    text-shadow: 3px 3px #373737;
    align-items: center;
    text-align: center;
    /* letter-spacing: var(--minecraft-spacing); */
    margin-top: 48px;
}

.minecraft-error+.minecraft-error {
    /* if two errors next to each
    other, have a smaller margin */
    margin-top: 12px;
}

.minecraft-error>* {
    font-size: 30px;
}

/* modpack */

.modpack {
    padding: 20px;
    background-color: #272f39;
    width: 100%;
}

.modpack-row {
    display: flex;
    flex-direction: row;
    justify-items: flex-start;
    gap: 16px;
}

.modpack-title {
    font-weight: bold;
    width: 10.5rem;
    /* TODO: check if the above 
    should be em or rem */
    white-space: nowrap;
}

.server-widget {
    background-color: #161a20;
    flex-direction: column;
    min-width: 70%;
    width: fit-content;
    padding: 0px;
}

#latest-version,
#update-date,
#update-status {
    color: #9e9e9e;
}