/* Fonts */
@font-face {
    font-family: 'Computer Modern Roman';
    src: url("cmunrm.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Styling */
body {
    font-family: 'Computer Modern Roman';
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 200px 0;
    padding: 100px;
    color: #80f;
}
main, footer {
    width: 80vw;
    height: fit-content;
    border: 2px solid #80f;
    padding: 20px;
}
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 20px;
    border: 2px solid #408;
}
section section {
    border-color: #fff;
    color: #fff;
}
.cramp {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}
.cramp h2 {text-align: center;}
.cramp > section {
    flex: 0 1 auto;
    width: min-content;
    min-width: 280px;
    max-width: 45vw;
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    align-self: flex-start;
    align-items: stretch;
}
.cramp > section > div,
.cramp > section > form {
    width: 100%;
    box-sizing: border-box;
}
.cramp section,
.cramp section * {
    min-width: 0;
}
fieldset {
    font-family: 'Computer Modern Roman';
    font-weight: lighter;
    margin-top: 25px;
    margin-bottom: 10px;
    display: block;
}
fieldset:not(.purp) {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}
.field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.field-row label {
    white-space: nowrap;
}
.field-row input {
    flex: 1 1 8em;
    min-width: 8em;
}
.purp {
    color: #ecf;
    border-color: #c8f;
}
h1, h2, h3 {margin: 0;}
legend h3 {
    font-weight: normal;
}
h1 {
    font-size: 3em;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 20px;
    text-align: center;
}
h2 {
    font-size: 2em;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 10px;
}
small, big {
    font-family: 'Computer Modern Roman';
    font-style: oblique;
    color: #80f;
    text-shadow: 0.08em 0.08em #408;
}
small {font-size: 90%;}
big {font-size: 111%;}
iframe {
    border: 2px solid #408;
    border-radius: 10px;
    top: 100px;
}
input[type="number"],
input[type="text"] {
    font-family: 'Computer Modern Roman';
    font-style: oblique;
    font-weight: bold;
    font-size: 111%;
    color: #80f;
    width: 12em;
    border: 1px solid #408;
    height: 1.2em;
}
button {
    border: #80f solid 1px;
    border-radius: 5px;
    background-color: #ecf;
    width: 100%;
    font-family: 'Computer Modern Roman';
    font-weight: bold;
    cursor: pointer;
}

small._ORNG, big._ORNG,
small._GREN, big._GREN {
    background-color: #000;
    border-radius: 0.2em;
}
._ORNG {
    color: #f80;
    text-shadow: 0.08em 0.08em #840;
}
._GREN {
    color: #0f0;
    text-shadow: 0.08em 0.08em #080;
}
input._ORNG,
input[type="number"]._ORNG,
input[type="text"]._ORNG {
    color: #f80;
    text-shadow: 0.08em 0.08em #840;
}
input._GREN,
input[type="number"]._GREN,
input[type="text"]._GREN {
    color: #0f0;
    text-shadow: 0.08em 0.08em #080;
}

/* Mobile */
@media (max-width: 900px) {
    .cramp {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}