/* GENERAL ********************************************************************/
:root {
    --general-bg: #0D2237;
    --general-bg: #0B2136;
    --general-color: #FFF7AE;
    --color-hover-active-background: #0D2237;
    --main-max-width: 1536px;
    --site-red-color: #DC3545;
    --color-highlighted: #FDD835;
}


* {
    /*font-family: verdana;*/
    box-sizing: border-box;
    box-sizing: border-box;
    font-size: 13pt; 
    /*
    font-family: sans-serif;
    */
              font-family: "Montserrat", sans-serif;
          font-optical-sizing: auto;
          font-style: normal;
}
 
/* STRUCTURE ******************************************************************/
body {
    display: flex;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    flex-direction: column;
    
}

main {
    flex: 1;
    background: #FFF;
    margin: 0 auto;
    max-width: var(--main-max-width);
    color: var(--general-bg);
padding-bottom: 30px;
}

footer {
    background: var(--general-bg);
    color: var(--general-color);  
    text-align: center;
    padding: 1rem;
    min-height: 50px;
    }
 

/* SITE **** ******************************************************************/
.flex-container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
    justify-content: space-around;
    justify-content: center;
    gap: 4px;
    border-top: thin solid var(--general-bg);

align-content: center; 
 }
.box {
    flex: 0 0 24%;
    min-width: 250px;
    border: thin solid #DEDEDE;
    text-align: center;
    padding-bottom: 20px;
    border-radius: 8px;
    background-position: right;
    background-repeat: no-repeat;
   
    /*
    margin: 1%;
    color: #000;
    background-size: 80px;
    */
  
    /*background-size: cover;*/
    /*background: linear-gradient(to right, #F6C856, #F68756);*/
    /*background: linear-gradient(to right, #F6C856, #FF8C42, #FF3C38);*/
    /*background: linear-gradient(to right, #F6C856, #FFE29F);*/
    /*background: linear-gradient(to right, #F6C856, #E89440, #F6A629);*/
}
.bg-cover {
    background-image: url('/graphic/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 30vh;
}

.sticky_0{
    position: sticky;
    top:0px;
}

.sticky_40{
    position: sticky;
    top:40px;
}
.center-text {
    display: flex;
    /*justify-content: center;*/
    align-items: end;
    color: var(--general-color);        
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);  
    /*text-align:  center;*/
    padding: 1rem;
}




/* ###  SITE  ###################################################################*/
.subtitle,.sub-title{
    font-size: 18px; 
font-weight: bold;
margin-top: 10px;
margin-bottom: 4px;
}

.page-title{
    font-size: 30px;
    margin-bottom: 10px;
}
                                                
                                                
.modal-table tr:hover {
    background-color: #FFF;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    /*background: #CCC;*/
}
.modal-content {
    background: #fff;
    margin: 10px auto;
    padding: 20px;
    width: 50%;
    position: relative;
    border-radius: 6px;
    
      max-height: 95vh; /* Gör att modalen inte växer mer än viewport-höjden */
  overflow-y: auto; /* Scroll inom modal-content om det behövs */
}
.close {
    float: right;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

 
 
 
a,a:visited,a:link{
    color: #000;
    text-decoration: none; 
} 
 
    
    

    
/* ### NAV ###################################################################*/

nav {
    height: 40px;
    background-color: var(--color-hover-active-background);
}
nav,ul,li{
    z-index: 100;
}
nav ul {
    list-style-type: none;
    padding: 0px;
    margin: 0;
    position: relative;
    min-width: 100px;
}
nav ul li {
    cursor: pointer;
   
    display: inline-block;
    color: #fff;
  /*transition: background-color 0.3s;*/
}
 

nav ul li:hover {
  background-color: var(--site-red-color);;
}

nav ul li:active {
  background-color: var(--site-red-color);;
}


nav ul li a:visited,nav ul li a:link {
    color: #FFF;
    display: block;
    text-decoration: none;
}
nav ul li:hover ul {
    display: block;
}
nav ul ul {
    display: none;
    position: absolute;
    border-top: 0;
 
}
nav ul ul li {
    display: block;
    background-color: var(--color-hover-active-background);

}
nav ul ul li a:hover {
    color: #FFF;
}

/* ### NAV ###################################################################*/



.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--general-bg);
    color: var(--general-color);  
    padding: 1rem;
    position: relative;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
}

#menu-toggle {
display: none;
}


.nav-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: var(--general-color);  
    text-decoration: none;
    padding: 0.5rem;
}

.submenu {
    display: none;
    position: absolute;
    background: #444;
    top: 100%;
    left: 0;
    list-style: none;
    min-width: 150px;
}

.dropdown {
position: relative;
}


.dropdown:hover .submenu {
display: block;
}
 

/* SCROLL ////////////////////////////////////////////////////////////////*/
#scrollTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    padding: 10px 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
}
#scrollTopBtn:hover {
    opacity: 1;
}
/* RESPONSIVE ////////////////////////////////////////////////////////////////*/
@media (max-width: 768px) {
.box {
flex: 0 0 48%; /* 2 per row on tablets */
}
    .hamburger {
        display: block;
    }

    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #333;
        display: none;
        flex-direction: column;
        align-items: center;
        z-index: 2;
    }

    #menu-toggle:checked ~ .nav-wrapper {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .dropdown:hover .submenu {
    position: static;
    }

    .submenu {
        background: #444;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .box {
        flex: 0 0 100%; /* 1 per row on phones */
        }
    }
    .modal table tr td{
        background-color: #FFF;
    }

    @media print{
        nav,.nav-links,.hamburgare,footer,.pagination,#toolbar,button,select,.color,input[type=radio]{ display: none;}
    }



    
    /* Modal form styling */
#modalForm .modal-content {
    background: #f9f9f9;
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#modalForm .modal-header {
    background-color: #0d6efd;
    color: white;

}

#modalForm .modal-title {
    font-weight: 600;
 
}

#modalForm .modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#modalForm .form-control,
#modalForm select,
#modalForm textarea {
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.3s;
    padding: 10px;
}

#modalForm .form-control:focus,
#modalForm select:focus,
#modalForm textarea:focus {
    border-color: #0d6efd;
    box-shadow: none;
}

#modalForm label {
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}

#modalForm .modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
    justify-content: space-between;
}

#modalForm .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 500;
}

#modalForm .btn-secondary {
    font-weight: 500;
}
.highlighted {
    background: var(--color-highlighted) !important;
}