@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');

html {
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    font-size: 20px;
    background: #000;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-30deg, #1a1510, #0e0d0b);
    background-repeat: no-repeat;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: inherit;
    color: inherit;
    cursor: pointer;
    font-weight: 500;
}

h1 {
    position: relative;
    color: rgb(173, 138, 49);
    line-height: 0.9;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 2.666em;
    text-shadow: 1px 0 rgb(200, 150, 50);
    letter-spacing: 1px;
    margin-bottom: 0px;
}

button {
    font-family: inherit;
}

fieldset {
    display: contents;
}

input[type="date"] {
    appearance: none;
    color: #f0ece0;
}

hr {
    width: 85%;
    background-color: rgba(200, 170, 100, 0.25);
    border: none;
    height: 1px;
}

#mainBox {
    position: relative;
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

#mainBox::before {
    content: "";
    background-image: url('bg.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: -33%;
    opacity: 0.5;
    display: flex;
    background-position: top 25% left 40%;
    z-index: 0;
}

#feedback {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    align-items: start;
    justify-content: start;
    text-shadow: #000 0px 0 1px;
    max-width: 25ch;
}

#feedback.error {
    border: 2px solid #8b2020;
    color: #d46060;
}

#feedback.error::before {
    content: "";
    background-image: url('errorBg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    opacity: 0.1;
    display: flex;
    background-position: top 25% left 40%;
    z-index: -1;
}

#feedback.success {
    border: 2px solid rgba(240, 225, 190, 0.5);
    color: #f0ece0;
}

#feedback.success::before {
    content: "";
    background-image: url('successBg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    opacity: 0.1;
    display: flex;
    background-position: top 25% left 40%;
    z-index: -1;
}

#feedback h3 {
    font-size: inherit;
    margin: auto;
    text-align: left;
}

#feedback span {
    margin: 6px;
    font-size: 16px;
    max-width: inherit;
    text-align: left;
}

.bf {
    font-size: 1.25em;
}

.subBox {
    margin: auto;
    flex-direction: column;
    display: inline-flex;
    align-items: center;
    gap: 1.666em;
    background: linear-gradient(-30deg, rgba(18, 15, 11, 0.82), rgba(28, 24, 18, 0.75));
    background-repeat: no-repeat;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(240, 225, 190, 0.12);
    min-width: 420px;
    z-index: 1;
    flex: 1;
}

.switchText {
    margin: 6px 2em;
    font-size: 16px;
}

.switch {
    border-radius: 10px;
    width: 80%;
    min-width: 300px;
    border: 1px solid rgba(250, 150, 50, 0.3);
    min-height: 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: start;
    overflow: clip;
    user-select: none;
}

.switch .inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    align-content: stretch;
    justify-content: center;
    flex: 1;
    color: #ede5d0;
    cursor: pointer;
}

.switch label {
    position: relative;
}

.inner input {
    appearance: none;
    position: absolute;
    opacity: 0;
}

.inner.selected {
    background: rgba(240, 225, 190, 0.15);
    color: #fff8ee;
}

.formContainer {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-self: stretch;
    align-items: start;
    justify-content: center;
}

.personForm {
    position: relative;
    display: inline-flex;
    min-width: 300px;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    margin: 1em;
}

.personForm .switch {
    width: auto;
}

.member .personalia {
    display: none;
}

.newcomer .memNum {
    display: none;
}

.subHeader {
    color: rgb(178, 138, 49);
    position: absolute;
    top: -28px;
    left: 8px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.subContainer {
    position: relative;
    display: flex;
    min-width: 300px;
    width: 80%;
    margin-top: 1em;
    margin-left: 2em;
    flex-direction: column;
}

.subContainer p {
    margin: 6px;
    font-size: 16px;
    max-width: inherit;
    text-align: left;
}

.select-box {
    position: relative;
    display: flex;
    min-width: 300px;
    width: 80%;
    margin-top: 1em;
    user-select: none;
}

.select-box select {
    padding: 10px 20px 10px 10px;
    cursor: pointer;
    background-color: rgba(18, 15, 11, 0.75);
    appearance: none;
    border-radius: 10px;
    width: 100%;
    border: 1px solid rgba(250, 150, 50, 0.3);
    font-family: inherit;
    font-size: inherit;
    color: #f0ece0;
}

.select-box::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(250, 150, 50, 0.6);
    transform: translateY(-50%);
    pointer-events: none;
}

.personalia {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background-color: rgba(15, 12, 8, 0.65);
    border-radius: 10px;
    overflow: clip;
    width: 100%;
    border: 1px solid rgba(250, 150, 50, 0.3);
    font-family: inherit;
    font-size: inherit;
}

.personalia .field {
    border-radius: 0;
    box-sizing: border-box;
    width: 100%;
}

.personalia .switch {
    border-radius: 0;
    background: rgba(18, 15, 11, 0.5);
}

.field {
    padding: 10px 20px 10px 10px;
    border-radius: 10px;
    border: 1px solid rgba(250, 150, 50, 0.3);
    font-size: inherit;
    font-family: inherit;
    width: auto;
    background-color: rgba(18, 15, 11, 0.75);
    color: #f0ece0;
}

.field::placeholder {
    color: rgba(240, 225, 190, 0.3);
}

.field.invalid {
    border: 1px solid #8b2020;
}

.field:focus {
    outline: none;
}

.field:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.field:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.knapp {
    background-color: rgba(240, 225, 190, 0.12);
    border: 1px solid rgba(250, 150, 50, 0.45);
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4), rgba(255, 245, 220, 0.06) 0 1px 0 inset;
    box-sizing: border-box;
    color: #f8f4ec;
    cursor: pointer;
    display: inline-block;
    line-height: 2.0;
    list-style: none;
    padding: 4px 16px;
    transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
    font-weight: 300;
    font-size: 16px;
    margin-bottom: 10%;
    letter-spacing: 1px;
}

.knapp:hover,
.knapp:focus {
    background-color: rgba(240, 225, 190, 0.22);
    text-decoration: none;
    transition-duration: 0.2s;
}

.knapp:active {
    background-color: rgba(240, 225, 190, 0.06);
    box-shadow: rgba(0, 0, 0, 0.5) 0 1px 0 inset;
    transition: none 0s;
}

.hide {
    display: none !important;
}

.blur {
    filter: blur(2px);
}

.footnote {
    width: 80%;
    font-size: 12px;
    display: block;
    text-align: left;
    color: rgba(240, 225, 190, 0.85);
}