body {
    background-color: #fffeec;
    color: #254441;
    font-family: 'Helvetica Neue';
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 10vw;
    font-family: 'Helvetica Neue';
    font-weight: bold;
    border-bottom: 1px solid #254441;
}

nav a {
    color: #254441;
    text-decoration: none;
    margin: 0 15px;
    font-size: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo {
    color: #FF6F59;
    text-decoration: none;
    margin: 0 15px;
    font-size: 20px;
    font-family: "IMPACT";
}

h1 {
    font-size: 25vw;
    margin-bottom: 0;
    text-align: center;
    font-weight: bold;
    margin-top: 0;
    line-height: 1.2;
    color: #FF6F59;
    font-family: 'Rubik Dirt';
    animation: glideinbtm 1s ease-out both;
    transition: font-family 0.3s ease;
}

h2 {
    font-size: 5.3vw;
    margin-bottom: 0;
    text-align: center;
    margin-top: 0;
    line-height: 1;
    font-style: italic;
    animation: glideinbtm 1s ease-out both;
    animation-delay: 0.25s;
}

h3 {
    font-size: 2rem;
    margin-bottom: 0;
    text-align: center;
    margin-top: 40px;
    line-height: 1;
}

.cta-button {
    display: inline-block;
    background-color: #43AA8B;
    border-radius: 180px;
    color: #fffeec;
    text-decoration: none;
    margin: 5vw 0;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    padding: 0.8rem 1.6rem;
    font-weight: bold;
    animation: glideinbtm 1s ease-out both;
    animation-delay: 0.5s;
    width: 240px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-button {
    display: inline-block;
    background-color: #fffeec;
    border-radius: 180px;
    border: 2px solid #43aa8b;
    color: #43aa8b;
    text-decoration: none;
    margin: 5vw 0;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    padding: 0.8rem 1.6rem;
    font-weight: bold;
    width: 240px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#velkommen .secondary-button {
    animation: glideinbtm 1s ease-out both;
    animation-delay: 0.75s;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1vw;
}

#velkommen {
    text-align: center;
}

.hjelp-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
}

.help-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    background-color: #fffeec;
    border: 2px solid #254441;
    border-radius: 25px;
    padding: 1.5rem;
    max-width: 500px;
    margin: 2rem 0;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 68, 65, 0.12);
}

.help-card-toggle {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.help-card-toggle h3 {
    font-family: "Rubik Dirt";
}

.card-plus {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    margin-top: auto;
    margin-left: auto;
    padding-top: 20px;
    box-sizing: border-box;
    color: #FF6F59;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.card-plus svg {
    display: block;
    width: 100%;
    height: 100%;
}

.card-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition:
        grid-template-rows 0.4s ease,
        opacity 0.3s ease,
        visibility 0s linear 0.4s;
}

.card-content.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition:
        grid-template-rows 0.4s ease,
        opacity 0.3s ease,
        visibility 0s;
}

.card-content-inner {
    overflow: hidden;
    min-height: 0;
}

.cta-button:hover,
.secondary-button:hover,
nav a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 68, 65, 0.12);
}

@keyframes glideinbtm {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 500px) {
    h1 {
        margin-top: 2rem;
    }

    h2 {
        margin-top: 1rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    nav {
        padding: 15px 10px;
        flex-direction: column;
    }

    nav a {
        font-size: 4.35vw;
        margin: 0 6px;
    }

    .hjelp-container {
        flex-direction: column;
        padding: 0 20px;
    }

    .help-card {
        width: 100%;
        max-width: none;
        margin: 1rem 0;
    }

    .hero-buttons {
        margin-top: 2rem;
        flex-direction: column;
        gap: 0;
    }

    .cta-button,
    .secondary-button {
        width: min(100%, 280px);
        margin: 0.5rem 0;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
    }
}