body {
    background: linear-gradient(to bottom, #1E3A5F 0%, #162A44 550px, #0F1D30 100%);
    font-family: Arial, sans-serif;
    color: #333333;
    margin: 0;
    font-size: 12px; /* Större text som standard */
}

#mainContent {overflow:hidden;}
h1, h2, h3, p, ol li, ul li {
    line-height: 1.6em;
}

h1 {
    font-size: 1.8em;
    color: #1E3A5F;
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.618em;
}

h2 {
    font-size: 1.6em;
    color: #1E3A5F !important;
    text-align: center;
    font-weight: bold;
}

h3:not(.loan-overlay h3) {
    font-size: 1.3em !important;
    margin-bottom: 0;
}

p, ol li, ul li {
    margin-top: 0;
    font-size: 1em !important;
    color: #333333;
	line-height:1.618em !important;
}

/* For toplists */
.box {
    background: #ebf0f5;
    padding: 1.2em;
}

a {
    color: #28A745;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #1E3A5F;
    text-decoration: underline;
}

.submit-button {
    background-color: #28A745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.submit-button:hover {
    background-color: #1E3A5F;
}

#mainContent {
    background-color: #FFFFFF;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* Footer */
footer {
    background-color: #1E3A5F;
    padding: 20px;
    text-align: center;
}

footer * {
    color: white !important;
}

footer a {
    color: #F8F9FA;
}

footer a:hover {
    color: #28A745;
    text-decoration: underline;
}

/* Mobile-first layout */
.menu-container, .second-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Float classes (enligt ursprungliga Bootstrap) */
.float-left {
    float: left !important;
}
.float-right {
    float: right !important;
}

 .ribbon {
      background: #e74c3c; /* röd bakgrund */
      color: #fff; /* vit text */
      padding: 0.3em 0.6em;
      font-size: 0.5em;
      font-weight: bold;
      position: absolute;
      transform: rotate(45deg);
	 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	 text-shadow:1px 1px 1px black;
width:250px;}

#repEx :not(h2) {
  font-style: italic;
font-size:10px;
}

.text-left {text-align:left;}
/* Anpassning för större skärmar */
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
    h1 {
        font-size: 3em;
		line-height:1.2em;
    }
    h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.4em;
    }
    #mainContent {
        padding: 2em;
        max-width: 800px;
        margin: 0 auto;
    }
    .menu-container, .second-menu-container {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
    body {
        background: linear-gradient(to bottom, #1E3A5F 0%, #162A44 700px, #0F1D30 100%);
    }
    #mainContent {
        max-width: 1000px;
    }
}


@media (min-width: 768px) {
    .float-md-left {
        float: left !important;
    }
    .float-md-right {
        float: right !important;
    }
}

@media (min-width: 992px) {
    .float-lg-left {
        float: left !important;
    }
    .float-lg-right {
        float: right !important;
    }
}
