.container {
    width: 50vw;
    margin: 40px auto;
    color: white;
    font-family: 'Afacad', sans-serif;
}

.heading {
    width: 100%;
    font-family: 'Balthazar', serif;
    font-weight: 400;
    font-size: 48px;
    text-align: center;
    background: linear-gradient(90deg, #494949 0%, #ffffff 50%, #494949 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 64px 0 32px;
}

.sub-container {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    align-items: stretch;
}

.left-side {
    flex: 1;
    background-color: #000000;
    border: 1px solid #494949;
    padding: 32px;
    border-radius: 16px;
}

.position-size-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.position-size-form input {
    background-color: #171717;
    border: 1px solid #494949;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 16px;
    font-family: 'Afacad', sans-serif;
    font-weight: 400;
}

.position-size-form input::placeholder {
    color: #494949;
    font-size: 16px;
    font-family: 'Afacad', sans-serif;
    font-weight: 400;
}

.position-size-form input:focus {
    outline: none;
    border-color: #32FAC1;
    color: #32FAC1;
    font-size: 16px;
    font-family: 'Afacad', sans-serif;
    font-weight: 400;
}

.position-size-form button {
    background-color: #32FAC1;
    border: 1px solid transparent;
    color: black;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Afacad', sans-serif;
    margin-top: 20px;
}

.position-size-form button:hover {
    background-color: black;
    color: #32FAC1;
    border-color: #32FAC1;
    font-weight: 400;
}

/* Right Side - Result + Waitlist */

.right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.result {
    background-color: #000000;
    border: 1px solid #494949;
    border-radius: 16px;
    padding: 8px;
    text-align: center;
    flex: 0 0 30%;
    font-family: 'Afacad', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.result p:first-child {
    font-size: 16px;
    font-weight: 100;
    margin: 0;
}

#output {
    font-size: 32px;
    font-weight: bold;
    color: #32FAC1;
    margin: 0;
}

/* Waitlist */

.waitlist {
    flex: 1;
    background-color: #171717;
    border: 1px solid #494949;
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 28px;
    overflow: hidden;
}

.waitlist h2 {
    font-family: 'Balthazar', serif;
    font-size: 28px;
    font-weight: 400;
    color: white;
    margin: 0;
    background-color: transparent;
    line-height: 32px;
}

.waitlist .early-access-link {
    text-decoration: none;
    color: #32FAC1;
    font-family: 'Afacad', sans-serif;
    font-weight: 400;
    font-size: 18px;
    background-color: transparent;
}

.waitlist .early-access-link:hover {
    color: white;
}

.footer-container {
    margin-top: 48px;
}

.position-size-form input::-webkit-outer-spin-button,
.position-size-form input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.position-size-form input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

@media (max-width: 767px) {
    .container {
        width: 90vw;
        margin: 28px auto; /* Reduce spacing */
    }

    .heading {
        font-size: 32px;
        margin: 48px 0 24px;
    }

    .sub-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 24px;
    }

    .left-side, .right-side {
        width: 100%;
        max-width: 400px;
    }

    .position-size-form {
        width: 100%;
    }

    .result {
        flex: none;
        width: 100%;
        padding: 16px;
    }

    .waitlist {
        width: 100%;
    }
    
    .footer-container {
        margin-bottom: 24px;
        margin-top: 24px;
    }
}
