html,
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    background-color: #F4F7F6;
    height: 100%;
    
}
.wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 20px;

}
.main {
    flex: 1;
    overflow: auto;
    padding-bottom: 72px;
}
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.project-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* must be same height as the footer */

#footer {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    clear: both;
    z-index: 1000;
    min-height: 72px;
    height: auto;
}

/* navbar settings */
.bg-primary {
    background-color: #002B4D !important;
}

.nav-link-secondary {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.7rem;
}

#nav-heading {
    padding-left: 0.5em;
}

.navbar-right {
    padding-right: 20px;
    /*color: #FFFFFF;*/
    margin-bottom: 0;
}

h1 {
    text-align: center;
    padding: 0.5em;
}

h4 {
    text-align: center;
    color:rgb(108, 108, 108);
    padding-bottom: 2%;
}

h5 {
    text-align: center;
    color:#0C3641;
    padding-top: 1%;
    padding-bottom: 2%;
}

h6 {
    text-align: center;
}

.text {
    margin-top: 50px;
    margin-bottom: 50px;
    margin-right: 30px;
    margin-left: 30px;
}
  
.footer-text {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/** 

Forms for project requests

**/

.project-requests-background{
    background: -webkit-linear-gradient(left, #0072ff, #00c6ff);
}

.contact-form{
    background: #fff;
    margin-top: 10%;
    margin-bottom: 5%;
    width: 70%;
}
.contact-form .form-control{
    border-radius:1rem;
}
.contact-image{
    text-align: center;
}
.contact-image img{
    border-radius: 6rem;
    width: 21%;
    margin-top: -3%;
    transform: rotate(29deg);
}
.contact-form form{
    padding: 14%;
}
.contact-form form .row{
    margin-bottom: -7%;
    text-align: center;
}
.contact-form h3{
    margin-bottom: 8%;
    margin-top: -10%;
    text-align: center;
    color: #0062cc;
}
.contact-form .btnContact {
    border: none;
    border-radius: 1rem;
    padding: 1.5%;
    background: #dc3545;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}
.btnContactSubmit
{
    width: 50%;
    border-radius: 1rem;
    padding: 1.5%;
    color: #fff;
    background-color: #0062cc;
    border: none;
    cursor: pointer;
}

/*
Project cards
*/

.projects-page {
    width: 100%;
    max-width: 1120px;
    align-items: stretch;
}

.projects-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.25rem;
    margin-left: 0;
    margin-right: 0;
}

.projects-grid .projects {
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, .03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 0.8rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, .125);
}

.projects-grid .icon {
    font-size: 2rem;
    padding: 0.8rem 0.8rem 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-grid .info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.projects-grid .info h2 {
    margin: 0;
    font-size: 1.2rem;
}

.projects-grid .info p {
    margin: 0.4rem 0 0;
    color: #475569;
    padding-bottom: 0.75rem;
}

.projects-grid .divider {
    height: 1px;
    background-color: #d3d3d4;
    margin-top: auto;
    margin-bottom: 0.75rem;
}

.projects-grid .meta {
    margin-top: 0;
    height: 2.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #64748b;
}

.projects-grid .meta a {
    text-decoration: none;
    color: #0ea5e9;
    white-space: nowrap;
}

.projects-grid .meta span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
/* 

Bilder 

*/

.cropped {
    width: 100%;
    height: 350px;
    object-fit: cover;
    overflow: hidden;
}

.full {
    width: 100%;
    height: 60%;
    object-fit: cover;
    overflow: hidden;
}

.twoday {
    width: 70%;
    height: 80%;
    object-fit: cover;
    overflow: hidden;
}


/* 

FAQ section 

*/

.card-header {
  height: 125px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  
}

.faq-item {
  width: 340px;
}

.card-body {
  position: relative;
  z-index: 10;
  justify-content: center;
  align-items: center;
}

.card.active-card {
  position: relative;
  z-index: 1000;
}
.card{
    margin: 1rem;
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


/* 

Board section 

*/
.col-12.col-md-6.col-xl-4.styremedlem {
  width: clamp(260px, 30vw, 340px);
  min-width: 260px;
  max-width: 340px;
  margin-bottom: 1rem;
}

#styrer {
    max-width: 750px;
}


/*

Updates + auth UI

*/
.main-container {
    width: 100%;
    max-width: 1200px;
    align-items: stretch;
}

.flash-stack {
    max-width: 1100px;
    margin: 1rem auto 0 auto;
}

.auth-nav .btn {
    white-space: nowrap;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.updates-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 2rem auto;
    padding-top: 1.25rem;
}

.updates-header {
    margin-bottom: 1rem;
}

.updates-header h1 {
    margin-bottom: 0.35rem;
}

.updates-subtitle {
    text-align: center;
    color: #4f6270;
    margin-bottom: 1.25rem;
}

.updates-admin-panel,
.updates-table-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.06);
}

.updates-admin-panel {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
}

.updates-admin-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
}

.updates-table-wrapper {
    max-height: 560px;
}

.updates-table thead th {
    position: sticky;
    top: 0;
    background-color: #f8fbfe;
    z-index: 1;
    border-bottom: 2px solid #d8e3ec;
}

.updates-table tbody tr:nth-of-type(odd) {
    background-color: #fbfdff;
}

.updates-table tbody tr:hover {
    background-color: #eef6ff;
}

.updates-table td,
.updates-table th {
    vertical-align: top;
}

.updates-title-cell {
    min-width: 250px;
}

.updates-details {
    margin-top: 0.3rem;
    color: #29465f;
}

.updates-details summary {
    cursor: pointer;
    font-size: 0.9rem;
}

.updates-actions-cell {
    min-width: 300px;
}

.updates-admin-details summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
}

.updates-admin-details summary::-webkit-details-marker {
    display: none;
}

.updates-inline-form {
    background: #f8fbfe;
    border: 1px solid #d8e3ec;
    border-radius: 10px;
    padding: 0.75rem;
}

.updates-inline-form textarea {
    min-height: 90px;
    resize: vertical;
}

.updates-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #526372;
}

@media (max-width: 991px) {
    .auth-nav {
        padding-top: 0.75rem;
    }

    .auth-nav .navbar-text {
        margin-right: 0.8rem !important;
    }
}


