/* main.css */

/* Reset styles for better consistency across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #2ecc71;
    --background-color: #F4F4F4;
    --text-color: #34495E;
    --light-text-color: #7F8C8D;
    --font-family: Arial, sans-serif;
    --header-footer-bg: #2c3e50;
    --header-footer-text: white;
    --button-bg: #3498db;
    --button-text: white;
    --button-hover-bg: #2980b9;
    --link-hover: underline;
    --form-width: 300px;
    --form-bg: #fff;
    --form-border: #ccc;
    --form-border-focus: var(--secondary-color);
    --form-box-shadow: rgba(52, 152, 219, 0.5);
}

/* General body styling */
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.logo-container {
    display: inline-block;
    padding: 10px;  /* Mindre padding for mindre fremheving */
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.logo-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Lett økning ved hover for å gi en subtil interaktiv følelse */
}

.logo {
    width: 200px;
    height: auto; /* Bevarer proporsjonene */

}
/* Styling for header and navigation */
.site-header {
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 20px 0;
    text-align: center;
}

.site-header h1 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.main-nav ul {
    list-style-type: none;
    padding: 0;
}

.main-nav ul li {
    display: inline;
    margin-right: 15px;
}

.main-nav ul li a {
    color: var(--header-footer-text);
    text-decoration: none;
    font-weight: bold;
}

.main-nav ul li a:hover {
    text-decoration: var(--link-hover);
}

/* Grid layout for article sections */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Ensuring consistent height and button placement */
.dashboard-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.dashboard-section p {
    margin-bottom: 15px;
    color: var(--light-text-color);
    flex-grow: 1;
}

.dashboard-section a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.dashboard-section a:hover {
    background-color: var(--button-hover-bg);
}

/* Hover effect on each article section */
.dashboard-section:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Footer styling */
.site-footer {
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.site-footer ul {
    list-style-type: none;
    padding: 0;
}

.site-footer ul li {
    display: inline;
    margin-right: 10px;
}

.site-footer ul li a {
    color: var(--header-footer-text);
    text-decoration: none;
}

.site-footer ul li a:hover {
    text-decoration: var(--link-hover);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .main-nav ul li {
        display: block;
        margin: 10px 0;
    }

    /* Hamburger-meny styling */
    .menu-toggle {
        display: none;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
        background-color: var(--header-footer-text);
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul.mobile-active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    width: var(--form-width);
    margin: 20px auto;
    background-color: var(--form-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form h2 {
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
}

form input, form button {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--form-border);
    border-radius: 4px;
    font-size: 1rem;
}

form input:focus, form button:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px var(--form-box-shadow);
}

form button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: var(--button-hover-bg);
}

/* Hide registration form by default */
#registrationForm {
    display: none;
}

/* Show registration form when active */
#registrationForm.active {
    display: flex;
}

form {
    border: none;
    outline: none;
  }
  
  input, button {
    border: none;
    outline: none;
  }
  
  fieldset {
    border: none;
    margin: 0;
    padding: 0;
  }

  /* Fjern standardbordere på alle elementer */
* {
    border: none;
    outline: none;
  }
  
  /* Fjern border fra innloggingsskjema */
  form#loginForm {
    border: none;
    outline: none;
    box-shadow: none;
  }
  
  /* Fjern border og outline fra alle input-felt */
  input {
    border: 1px solid #ddd; /* Legg til standardramme for input */
    outline: none;
  }

/* Spesifikke stiler for skjulte elementer */
.hidden {
    display: none;
}

/* Styling for message og loadingSpinner */
#message {
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}

#loadingSpinner {
    text-align: center;
    padding: 20px;
}

/* reCAPTCHA container */
#recaptcha-container {
    margin: 20px auto;
    text-align: center;
}

/* Spesifikk styling for login-heading */
#login-heading {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}
