/* Grundläggande reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Amiri Quran', serif;
    background-color: #f5f5f5;
    color: #222;
    line-height: 1.6;
}



/* Header med logga och navigation */
header {
    background-color: #082358;
    color: white;
    font-family: 'Amiri Quran', serif;
    text-align: center;
    padding-bottom: 25px;
}


header .logo {
    height: 100px;
    margin-bottom: -65px;
    margin-right: 80%;
    /* Justera avståndet mellan logga och titel */
}




nav {
    z-index: 1001;
    position: relative;
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: right;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1002;
    position: relative;
}


nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-family: 'Georgia', serif;
    padding: 0.5rem 1rem;
    border-radius: 0;
    position: relative;
    z-index: 1003;
    pointer-events: all; /* Force links to be clickable */
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #0a3d91;
}

/* Centrera navigationen */
header nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 0;
}

header nav ul li {
    margin-left: 1.5rem;
}

header nav ul li:first-child {
    margin-left: 0;
}

/* Toppbild med ryttare */
.top-image {
    width: 100%;
    object-fit: cover;
}

/* Om Lightning Rush */
.about-section {
    max-width: 1000px;
    text-align: center;
}

.about-section h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #000000;
    letter-spacing: 1px;
}

.about-section p {
    font-size: 1.7rem;
    text-align: center;
    color: #000000;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}



/* Avslutande bild */
.end-image {
    width: 100%;
    height: auto;
    margin-top: 1400px;
    margin-bottom: -20px;

}

/* Footer */
footer {
    background-color: #313131;
    color: white;
    padding: 1rem 2rem;
    position: relative;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    border-top: none;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-right a {
    color: #bdbdbd;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* Centrera image 7.png */      
img[alt="line"] {
    display: block;
    width: 100%;
    height: auto;
}

/* Ny sektion för info med bild och text */
.info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.info-row-reverse {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.text-content-reverse {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.text-content-reverse h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #000000;
    text-align: left;
    margin-left: 24rem;
}

.text-content-reverse p {
    font-size: 2rem;
    line-height: 1.6;
    color: #000000;
    text-align: left;
    max-width: 800px;
    margin: 0;
        margin-left: 10rem;
        margin-bottom: 15rem;

}


.text-content h2 {
    font-size: 6rem;
    margin-bottom: 1rem;
    color: #000000;
    text-align: center;
    margin-right: 15rem;
    margin-bottom: 3rem;
    margin-top: 10rem;
}

.text-content p {
    font-size: 2rem;
    line-height: 1.6;
    color: #000000;
    text-align: left;
    max-width: 1000px;
    margin: 0;
    padding-right: 10rem;
}

.logo-big {
    width: 900px;
    height: auto;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 8rem;
    align-self: flex-end;
    top: 95%;
}

.info-row-reverse {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    max-width: 70%;
    flex-direction: row-reverse;
}

.info-row-reverse .logo-big {
    position: absolute;
    right: -100px; /* Move it much further right */
    margin-left: auto;
}

.info-row p {
    font-size: 2rem;
    margin: 0;
    margin-left: 0;
    margin-top: 0;
}


.info-row.reverse img {
    width: 70%;
    height: auto;
}

.info-row.reverse p {
    font-size: 2rem;
    margin: 0;
    max-width: 600px;
    margin-left: 3rem;
    /* Flytta texten lite till höger */
    margin-right: 0;
    margin-top: 0;
    text-align: center;
}

/* Ny klass för centrerade bilder */
.centered-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.centered-image.full-width-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}



.about-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(1.2);

}



.gorgen-background { 
    width: 40%;
    height: auto;
    z-index: 1;
}

.gorgen-character {
    position: absolute;
    width: 60%; 
    height: auto;
    z-index: 2;
    top: 2%;
    left: -4%;
}

/* Make sure the container at the bottom has relative positioning */
.trans {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
    /* Adjust as needed */
}

/* Star Stable image as base layer */
.trans .centered-image.full-width-image {
    position: relative;
    z-index: 1;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
}

/* Background start overlay */
.background-start-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
    opacity: 100%;
}

/* Content overlay on top of background */
.overlay-content {
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
}

/* Text boxes row */
.text-boxes-row {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1600px;
    width: 100%;
}

/* Individual text box */
.text-box {
    flex: 1;
    background-color: #101A2D;
    color: white;
    padding: 4rem;
    border-radius: 2px;
    text-align: center;
}

.text-box h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.text-box p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

/* Images row */
.images-row {
    margin-top: 3%;
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
}

.overlay-image {
    max-width: 1000px;
    height: auto;
    border-radius: 0;
}