/* Grundinställningar */
body {
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Top-header */
#top-header {
    position: fixed;
    width: 100%;
    background-color: #e0f7f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    height: 75px;
}

#top-header.shrink {
    height: 50px;
    padding: 5px 30px;
    font-size: 0.9em;
}

#top-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #004d40;
}

/* nav i topheader */
nav {
    display: flex;
        gap: 20px;
        margin-right: 50px;
}

.headerpunkt a {
    text-decoration: none;
    color: #004d40;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
    
}

.headerpunkt a:hover {
    color: #00796b;
    transform: scale(1.05);
}

/* Bilden överst */
#bild1 {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Rubrikruta ovanpå bilden */
#bildruta {
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

#rubrik {
    font-size: 28px;
    margin: 0;
}

/* allt under bilden */
#under {
    margin-top: 0px;
    padding: 30px 15%;
    background-color: #f0fbfb;
    border-top: 4px solid #cde;
}

#textunder {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-top: 75px;
}
/* bildlänkar till tvätt o pool */
#info-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px auto;
    max-width: 1200px;
    gap: 30px;
}

.info-card {
    width: 220px;
    background-color: #e9fafa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    color: #004d40;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background-color: #d7f0ef;
}

.info-card img {
    width: 100%;
    height: 140px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    object-fit: cover;
}

.info-card h3 {
    margin: 10px;
    font-size: 18px;
}

/*Bild till kontakt*/
#james{
    width: 150px;
    
    
}
#jamesbox{
    background-color: #d7f0ef;
    width: 160px;
    float: right;
    text-align: center;
    padding: 10px;
}   
/* nyhetslänkar och lite sånt */
#extra-info {
    background-color: #f8fdfd;
    padding: 40px 15%;
    border-top: 3px solid #cce;
    margin-top: 40px;
    text-align: center;
}

#extra-info h2 {
    font-size: 24px;
    color: #004d40;
}

#extra-info p {
    font-size: 16px;
    color: #444;
    max-width: 700px;
    margin: 20px auto 0 auto;
}
/* Footer */
footer {
    background-color: #e0f7f5;
    color: #004d40;
    padding: 20px 10%;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #ccc;
    margin-top: 50px;
}

footer a {
    color: #00796b;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}
/* Formulär */
form {
    margin-top: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

form label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    color: #004d40;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

form button {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #004d40;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #00796b;
}
.infobox {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #eef4fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}
/*Nyhetssida*/
        
        #nyhetsskroll {
            max-width: 800px;
            margin: 40px auto;
            position: relative;
        }

        .bilnyhet {
            display: none;
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .bilnyhet.active {
            display: block;
        }

        .nyhetkontroll{
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
        }

        .nyhetkontroll button {
            background-color: rgba(0, 77, 64, 0.7);
            border: none;
            color: white;
            font-size: 25px;
            padding: 10px;
            cursor: pointer;
            border-radius: 50%;
        }

        .nyhetsartikel {
            background-color: #eef4fa;
            margin: 20px auto;
            padding: 20px;
            max-width: 700px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .nyhetsartikel h3 {
            margin-top: 0;
            color: #004d40;
        }
/* mobildesign */
@media (max-width: 500px) {
    
    #top-header {
        flex-direction: column;
        align-items: center;
        padding: 8px 16px;
    }

    #top-header h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .headerpunkt {
        margin: 5px;
        font-size: 10px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    #rubrik{
        font-size: 19px;
    }
}
    