
/* för html och body */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    
}

body {
    font-family: sans-serif;
    flex: 1;
}

main {
    flex: 1;
    padding: 20px;
    background-image: url('backgrund.jpg');
    background-size: cover;
    background-position: center;
}

/* Header */
header {
    background-color: #0e55a1;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: white;
    color: #0e55a1;
}

/* Sektioner med vitt bakgrund och rundade hörn */
.bostad, .content, .Info {
    background-color: rgba(255, 255, 255, 0.856);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 12px;
    max-width: 1000px;
    margin: auto;
}

.bostad, .content{
    margin-bottom: 1%;
}

.bostad h2, .content h3, .Info h3 {
    margin-bottom: 10px;
    color: #0e55a1;
   
}

/* Knappar */
.knapp, #skicka {
    background-color: #004085;
    color: white;
    padding: 10px 20px;
    border: none;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.knapp:hover, #skicka:hover {
    background-color: #0069d9;
}

/* 3 kort med bilder */
.kort-sektion {
    padding: 30px 0;
}

.kort-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.kort {
    width: 260px;
    background-color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.kort:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kort img {
    width: 100%;
    height: 160px;
   
}

.kort h4 {
    padding: 15px;
    color: #004085;
}

/* Formulär för anmälan */
form {
    max-width: 600px;
    margin: auto;
    background-color: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin: 15px 0 5px;
    text-align: left;
}

input[type="text"], textarea {
    width: 97%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    
}



#kontakt ::placeholder {
    color: #888;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
}

/* Karta & bild-sektion */
.karta-sektion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
}

#Image, #Map {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin-top: 20px;
    margin-bottom: 30px;
    display: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-left: 20px;
    margin-right: 20px;
    
}

#Image.active, #Map.active {
    display: block;
}

.karta-sektion h1 {
    cursor: pointer;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.karta-sektion h1:hover {
    color: #2980b9;
}

/* Mobilanpassning */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    .kort-container {
        flex-direction: column;
        align-items: center;
    }
    .kort {
        width: 90%;
    }
    main {
        padding: 15px;
    }


}
