/* 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;
}

/* 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;
}

/* Rules page specific styles */
.rules-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px); /* Take full height minus header/footer */
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.rules-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
}

.rules-content h1 {
    text-align: center;
    font-size: 3rem;
    color: #082358;
    margin-bottom: 3rem;
}

.rules-section {
    margin-bottom: 3rem;
}

.rules-section h1 {
    text-align: center;
    font-size: 2.5rem; /* For your NÄRVAROKARV heading */
    color: #082358;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.rules-section h2 {
    font-size: 2rem;
    color: #0a3d91;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #0a3d91;
    padding-bottom: 0.5rem;
}

.rules-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

/* Updated styles for rule items with bigger text */
.rule-item {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #444;
    padding-left: 0.5rem;
    font-size: 1.2rem; /* Increased from default to make text bigger */
}

/* Responsive design */
@media (max-width: 768px) {
    .rules-main {
        min-height: auto;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .rules-content {
        padding: 1.5rem;
    }
    
    .rules-content h1 {
        font-size: 2rem;
    }
    
    .rules-section h1 {
        font-size: 2rem;
    }
    
    .rules-section h2 {
        font-size: 1.5rem;
    }
    
    .rule-item {
        font-size: 1.1rem; /* Slightly smaller on mobile but still bigger than default */
    }
}
