/* index.css
   Version 1.02 2026-10-13
   - Bakgrund, yttre ram, sidtitel, meny och rubrikruta flyttade till weather_common.css.
   - Här finns bara startsidans innehållsruta, rutorna och footern.
*/

body.index-page {
    margin: 0;
    padding: 0;
}

/* Innehållsruta */
.index-content {
    box-sizing: border-box;
    width: 100%;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.index-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.index-content p {
    line-height: 1.6;
    margin: 20px 0;
}

/* Rutor */
.boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.box {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.box h2 {
    margin-bottom: 15px;
}

.box p {
    font-weight: normal;
    line-height: 1.4;
}

.box.large {
    grid-column: span 3;          /* Täck 3 kolumner på stora skärmar */
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 bild, 2/3 text */
    align-items: center;
    gap: 20px;
}

.box.large .content {
    padding: 10px;
    align-self: start;
}

/* Footer */
.footer {
    margin-top: 20px;
    background: black;
    color: gray;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
}

.footer .version {
    margin-top: 10px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .boxes {
        grid-template-columns: 1fr;
    }

    .box.large {
        grid-column: span 1;
        grid-template-columns: 1fr; /* Bild överst och text under på mobil */
    }
}

@media (max-width: 700px) {
    .index-content {
        padding: 14px;
    }
}