@font-face {
    font-family: 'TradeGothicNextLight';
    src: url('fonts/TradeGothicNext-Light.woff2') format('woff2'),
         url('fonts/TradeGothicNext-Light.woff') format('woff'),
         url('fonts/TradeGothicNext-Light.ttf') format('truetype');
    
    font-weight: normal;
    font-style: normal;
    
}

@font-face {
    font-family: 'TradeGothicNextHeavyItalic';
    src: url('fonts/TradeGothicNext-HeavyItalic.woff2') format('woff2'),
         url('fonts/TradeGothicNext-HeavyItalic.woff') format('woff'),
         url('fonts/TradeGothicNext-HeavyItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'TradeGothicNextLight', Arial, sans-serif;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'TradeGothicNextHeavyItalic', Arial, sans-serif;
}

.hero-section {
    height: 100vh;
    background-color: #4b0082;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-background {
    position: absolute;
    top: 140px;
    left: 70px;
    height: 80%;
    width: 400px;
    background-image: url('../images/sxp-triangel.png');
    background-position: left top;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 80%;
    height: 100vh;
}

.hero-content img.logo {
    width: 100px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 80px;
    color: #fff;
    font-weight: bold;
    margin: 0;
    position: absolute;
    left: 40px;
    top: 190px;
    max-width: 11em;
}

.hero-content p {
    font-size: 18px;
    margin-top: 20px;
    color: #fff;
    position: absolute;
    left: 100px;
    width: 300px;
    bottom: 20px;
}

.hero-image {
    margin-top: 3em;
    position: absolute;
    bottom: 0;
    right: -200px;
    z-index: 2;
    max-width: 65%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-image img {
    max-width: 120%;
    max-height: 92vh;
    height: auto;
}

#sexperterna-logo {
    position: absolute;
    height: 25px;
    top: 56px;
    right: 40px;
}

#language {color:#fff;position: absolute;height: 25px;top: 16px;right: 39px;}
.flag{height:25px;}

@media screen and (max-width: 768px) {
    .hero-section {
        height: auto;

    }

    .hero-background {
        top: 100px;
        left: 20px;
        height: 60%;
        width: 60%;
        background-image: url('../images/sxp-triangel.png');
        background-position: center top;
        background-repeat: no-repeat;
        z-index: 1;
    }

    .hero-content {
        position: absolute;
        padding: 0;
        height: 60px;
        left: 15px;
        top: 15px;
        max-width: 100%;
        height: auto;
    }

    .hero-content h1 {
        font-size: calc(19px + 5vw);
        position: absolute;
        height: 150px;
        top: 120px;
        left: 1vw;
    }

    .hero-content p {
        position: absolute;
        height: 50px;
        left: 0;
        top: 220px;
    }

    .hero-image {
        position: static;
        margin-top: 350px;
        margin-right: -50px;
        max-width: 100%;
        justify-content: center;
    }

    #sexperterna-logo {
        position: absolute;
        height: 20px;
        top: 26px;
        right: 15px;
    }
    #language {color:#fff;position: absolute;height: 25px;top: 2px;right: 16px;}
    .flag {height:15px;}
}



.modules-section {
    padding: 50px 20px;
    background-color: #fff;
}

.row.equal-height {
    display: flex;
    flex-wrap: wrap;
}

.col-md-4,
.col-sm-6,
.col-xs-12 {
    margin-bottom: 20px;
    display: flex;
}

.card {
    display: flex;
    flex-direction: column;
    flex: 1;
    border: none;

}

.card-body {
    flex-grow: 1;
    padding: 0;
    display: flex;
    padding-top: 10px;
    flex-direction: column;
}

.card-title {
    margin-bottom: auto;
    font-size: 1.25rem;
}

.start-button {
    background-color: #e60050;
    color: white;
    padding: 10px 20px;
    border: none;

    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    font-family: 'TradeGothicNextHeavyItalic', Arial, sans-serif;
}

.final-section {
    background-color: #4b0082;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.final-card {
    text-align: left;
    margin-bottom: 20px;
}

.final-card h5 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.final-card p {
    margin-bottom: 15px;
    font-size: 14px;
}

.final-card .btn {
    background-color: #e60050;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-weight: bold;
    font-family: 'TradeGothicNextHeavyItalic', Arial, sans-serif;
}

/* Make the modal dialog take up as much space as possible */
.modal-dialog {
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
}

.modal-content {
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    max-height: calc(100vh - 40px); /* Subtract 20px padding on top and bottom */
    max-width: calc(100vw - 40px); /* Subtract 20px padding on left and right */
    margin: 20px;
}

.modal-body {
    padding: 0;
    height: calc(100% - 56px); /* Adjust for modal header/footer height */
    overflow-y: auto; /* Allow scrolling if content overflows */
}