html, body {
    margin: 0;
    height: 100%;
    background-color: black;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;

    animation: griddy 1s linear infinite;

    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
}
:root {
    --topbar-height: 67px;
}

body {
    padding-top: calc(
        var(--topbar-height) +
        env(safe-area-inset-top, 10px) +
        10px
    );
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}


@keyframes griddy {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 40px 40px;
    }
}

.centered {
    min-height: calc(35vh);
    padding: 20px;
    margin-top: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.centeredtext {
    font-size: clamp(26px, 6vw, 40px);
}

.trial-info,
.purchases-unavailable {
    font-size: clamp(14px, 4vw, 20px);
}


.centeredtext {
    font-weight: bold;
}

.trial-info{
    font-weight: normal;
    text-align: center;
    margin-top: 10px;
}

.purchases-unavailable{
    font-weight: normal;
    text-align: center;
    color: rgb(177, 0, 0);
    margin-top: 10px;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
    border: none;
}

.topbar {
    position: fixed;
    top: 10px;
    left: 5%;
    width: 90%;
    height: 67px;
    border-radius: 255px;
    font-size: 25px;
    background-color: rgba(0, 0, 0, 0.7);
    border: white 1px solid;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
}

.topbar a.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 10px;
    margin-right: auto;
}

.topbar .logo {
    height: 50px;
    width: 50px;
}

.topbar .button {
    font-size: clamp(14px, 3vw, 20px);
    margin: 6px;
    white-space: nowrap;
}


.topbar .logo-text {
    font-size: clamp(18px, 4vw, 30px);
    white-space: nowrap;
    margin: 0;
}

.topbar .button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    text-decoration: none;
    margin: 10px;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: clamp(14px, 3vw, 20px);
    margin: 6px;
    white-space: nowrap;
    transition: font-size 0.3s ease;
}

.topbar .button:hover {
    font-size: 22px;
    text-shadow: white 0 0 10px;
}

.submit-button {
    background-color: rgba(29, 29, 29, 0.5);
    color: white;
    border-radius: 10px;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    border: 1px solid white;
    background-color: rgba(66, 66, 66, 0.5);
}

.about-container {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    padding-top: 40px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
}



.about-text {
    font-size: 36px;
    font-weight: bold;
    margin-top: 20px;
}

.about-description {
    font-size: 20px;
    margin: 10px auto;
    max-width: 800px;
    line-height: 1.6;
}

.footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: auto;
}



.payment-grid {
    display: flex;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-box {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 25px 30px;
    width: min(100%, 260px);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.payment-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.payment-price {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 8px;
}

.payment-duration {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 20px;
}

.payment-box .submit-button {
    font-size: 16px;
    padding: 8px 12px;
}

.contact {
    position: fixed;
    inset: auto 50% auto auto;
    top: 50%;
    transform: translate(-50%, -50%);

    width: min(90%, 600px);
    max-height: 90svh;
    overflow-y: auto;

    padding: 20px;
}


.contact .note {
    font-size: 15px;
    color: #595959;
}

.contact .text {
    font-size: 20px;
    color: #ffffff;
}

.contact-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    box-sizing: border-box;
}

.submit-button {
    background-color: rgba(29, 29, 29, 0.5);
    color: white;
    border-radius: 10px;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    border: 1px solid white;
    background-color: rgba(66, 66, 66, 0.5);
}
