body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000; /* Sort bakgrunn */
    color: #e0e0e0; /* Myk hvit-aktig farge for tekst */
}

.home {
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px; /* Mindre høyde for å redusere bildestørrelse */
    position: relative; /* Sørger for at bakgrunnsbildet ikke påvirker header */
}

.main-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

header {
    background-color: #000000; /* Sort bakgrunn for konsistens */
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    color: #4a7c59;
}

nav {
    background-color: #000000; /* Sort bakgrunn for meny */
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    margin: 0 15px;
    color: #4a7c59; /* Beholder din farge */
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 1.1em;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #1a1a1a; /* Mørk grå for hovedinnhold */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.info, .latest-post, .birdhouse-content, .birdhouse-media, article, .album {
    margin-bottom: 20px;
}

.album h2 {
    color: #4a7c59;
    margin-bottom: 10px;
}

.carousel {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.carousel-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    margin-right: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.carousel-image:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form label {
    font-weight: bold;
}

form input, form textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 10px;
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #3a6b48;
}

.error {
    color: #ff5555; /* Lys rød for feilmeldinger */
}

.success {
    color: #28a745;
}

.media-item, .blog-image {
    max-width: 100%;
    margin: 10px 0;
}






.blog-media {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    margin: 10px 0;
    display: block;
}

video.blog-media {
    width: 100%; /* Sørger for at videoen tar full bredde */
    height: auto; /* Lar videoen bestemme egen høyde */
    object-fit: initial; /* Fjerner object-fit */
    max-height: none; /* Fjerner høydebegrensning */
}





.blog-post {
    margin-bottom: 40px;     /* Avstand mellom innlegg */
    padding: 20px;           /* Luft inni rammen */
    border: 1px solid #ccc;  /* Tynn grå ramme */
    border-radius: 8px;      /* Litt avrundede hjørner (valgfritt) */
    background-color: #1a1a1a;  /* grå bakgrunn for kontrast */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Diskré skygge (valgfritt) */
}


/* Styling for sosiale medier ikoner */
.social-media {
    text-align: center;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    margin: 0 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Styling for besøksteller */
.visitor-counter {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    color: #e0e0e0; /* Justert for å matche mørkt tema */
}

.odometer {
    font-weight: bold;
    color: #4a7c59; /* Endret til din grønne farge for konsistens */
}

/* Stiler for admin.php */
.login-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #1a1a1a; /* Mørk grå for konsistens */
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4a7c59;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-form input[type="password"],
.login-form input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #4a7c59;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #3a6b48;
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section h2 {
    margin-bottom: 20px;
    color: #4a7c59;
}

.blog-form,
.upload-form {
    display: flex;
    flex-direction: column;
}

.blog-form label,
.upload-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.blog-form input[type="text"],
.blog-form textarea,
.upload-form input[type="text"],
.upload-form input[type="file"] {
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.blog-form textarea {
    width: 100%;
    resize: vertical;
}

.blog-form button,
.upload-form button {
    padding: 10px;
    background-color: #4a7c59;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.blog-form button:hover,
.upload-form button:hover {
    background-color: #3a6b48;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    padding: 10px 0;
    border-bottom: 1px solid #444; /* Mørkere linje for mørkt tema */
}

.delete-link {
    color: #ff5555;
    text-decoration: none;
    margin-left: 10px;
}

.delete-link:hover {
    text-decoration: underline;
}

.logout-link {
    color: #ff5555;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

.error {
    color: #ff5555;
    margin-bottom: 15px;
    text-align: center;
}

.success {
    color: #28a745;
    margin-bottom: 15px;
    text-align: center;
}