* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #102019;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.25), transparent 35%),
        linear-gradient(135deg, #102019, #1f3d2c);
}

.portal-wrapper {
    width: min(900px, 100%);
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 4vh, 36px);
    margin-top: auto;
    margin-bottom: auto;
    position: relative;
    z-index: 1;
}

.portal-button {
    position: relative;
    height: clamp(150px, 28vh, 240px);
    min-height: 150px;
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    background-size: cover;
    background-position: center;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

.portal-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.18)
        );
    z-index: 1;
}

.portal-button span {
    position: relative;
    z-index: 2;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-shadow: 6px 6px 6px rgb(0, 0, 0);
    padding: 24px;
}

.portal-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    filter: brightness(1.05);
}

.portal-button:active {
    transform: translateY(-1px);
}

.portal-button:focus-visible {
    outline: 4px solid rgba(255, 255, 255, 0.9);
    outline-offset: 6px;
}

.sunbiosys {
    background-image: url("images/sunbiosys.jpg");
}

.ecotuin {
    background-image: url("images/ecotuin.jpg");
}

@media (max-width: 700px) {
    body {
        padding: 16px;
        align-items: flex-start;
    }

    .portal-wrapper {
        width: 100%;
        gap: 16px;
    }

    .portal-button {
        width: 100%;
        height: clamp(115px, 25dvh, 170px);
        min-height: 115px;
        border-radius: 22px;
    }

    .portal-button span {
        font-size: clamp(1.5rem, 8vw, 3rem);
    }
}