*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Raleway', 'Arial', 'Helvetica', sans-serif;
    color: #303030;
}


header {
    color: #FFFFFF;
    background: #000000;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background-image: url("../img/bg.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (max-width: 800px) {
    header {
        min-height: 50vh;
    }
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    max-width: 960px;
    width: 100%;
    text-align: center;
    z-index: 1;
}

.hero-title-small {
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
    letter-spacing: 0.06em;
    margin: 0;
    opacity: 0.95;
}

.hero-title-large {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin: 0.5rem 0 1.5rem;
    letter-spacing: 0.02em;
}

.scroll-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.scroll-button:hover,
.scroll-button:focus {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.scroll-button svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.hero-subscript {
    font-style: italic;
    width: 100%;
    padding: 0.5em 1em;
    font-size: 75%;
}

main {
    padding: 60px 24px 100px;
}

a, h3, .hero-subscript {
    /* color: #D0B0A0;*/
    color: #d49442;
}

hr {
    color: #303030;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin-top: 0;
    font-size: clamp(2rem, 3vw, 2.7rem);
}

.content-wrapper p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .scroll-button {
        width: 62px;
        height: 62px;
    }
    .hero-title-small {
        font-size: 1.5rem;
    }
}

/* Feature list styles */

.feature-list {
    max-width: 960px;
    margin: 18px auto 36px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
}

.feature-icon {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    /* border: 2px solid #D0B0A0;*/
    border: 2px solid #d49442;
    /* background: rgba(17,17,17,0.04); */
    background: rgba(212, 148, 66, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img,
.feature-icon svg {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
    /*color: #D0B0A0;*/
    color: #d49442;
}

.feature-icon .bs-icon {
    font-size: 36px;
    color: #d49442;
    position: relative;
    top: -3px;
}

.feature-text h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 600;
    /* color: #D0B0A0;*/
    color: #d49442;
}

.feature-text p {
    margin: 0;
    color: #444;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px 8px;
    }
    .feature-text { width: 100%; }
}

/* Further content styles */

.attribution-list {
    font-size:75%;
}

/* Login form styles */

@media (max-width: 800px) {
    .login-form {
        position: relative;
        top: 50vh;
        color: #303030;
    }

    .login-form input[type="submit"] {
        border: 1px solid #303030;
    }
}

@media (min-width: 801px) {
    .login-form {
        font-size:125%;
    }

    .login-form input, .login-form button {
        background-color: rgba(255, 255, 255, 0.08);
        color: #FFFFFF !important;
    }

    .login-form input[type="submit"] {
        border: 1px solid #FFFFFF;
        color: #FFFFFF;
    }
}

.login-form input, .login-form button {
    font-size:inherit;
}

.login-form input[type="checkbox"] {
    float: none;
    margin-right: 1em;
    cursor: pointer;
}

.login-form .mb-6 {
    margin-bottom: 2rem !important;
}

.login-form .form-control,
.login-form input.btn {
    transition: background-color 180ms ease, color 180ms ease;
}

.login-form .form-control:hover,
.login-form .form-control:focus,
.login-form .form-control:active,
.login-form input.btn:hover,
.login-form input.btn:focus,
.login-form input.btn:active {
    background-color: rgba(255, 255, 255, 0.16) !important;
}

.login-form .wrong-pw-msg {
    color: #A00000;
    padding: 0.5em;
    border: 1px solid #A00000;
    background-color: rgba(255, 255, 255, 0.32);
    border-radius: 0.375rem;
}

/* Login form: scale the stayLoggedIn checkbox and align label vertically */
.login-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.login-form .form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin: 0;
    vertical-align: middle;
}

.login-form .form-check-label {
    margin: 0;
}