/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

#Stadiegruppering table {
  width: 100%;
  border-collapse: collapse;
}

#Stadiegruppering th,
#Stadiegruppering td {
  border: 1px solid #ddd; /* Adjust color as needed */
  padding: 8px;
  text-align: left;
}

#Stadiegruppering tr:nth-child(even){background-color: #f2f2f2;}

#Stadiegruppering th {
  background-color: #545454;
  color: white;
}

.divider td {
  padding: 1px !important;
  line-height: 1px; /* Adjust the height of the divider line */
  background-color: #000; /* Color of the divider line */
}

.right-border {
  border-right: 2px solid black;
}

.bottom-border th,
.bottom-border td {
  border-bottom: 2px solid black;
}

/* Ensure that the borders are applied inside the table */
table {
  border-collapse: collapse;
}

/* Optional: Add padding to cells for better readability */
th, td {
  padding: 5px;
}

.red-font {
  color: red;
}

body {
    font-family: Arial, sans-serif;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

footer {
    width: 90%;
    margin: 0 auto; /* Center the footer */
    display: flex; /* Use flexbox to align text and logo */
    justify-content: space-between; /* Space between the text and logo */
    align-items: center; /* Align items vertically */
    padding: 20px 0;
    box-sizing: border-box; /* Include padding in the width */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-text {
    text-align: left; /* Align text to the left */
}

.footer-logo {
    text-align: right; /* Align logo to the right */
}

.footer-logo img {
    height: 50px; /* Adjust as per the actual size of your logo */
    display: inline-block; /* Needed for vertical-align to work */
    vertical-align: middle;
}

.footer-text p {
    margin: 5px 0; /* Adds space between the paragraphs */
    font-size: 0.8em; /* Adjust the size as needed */
}

@media (max-width: 768px) {
  /* Styles for tablets and smaller devices */
  .tabcontent table,
  .tablinks {
    width: 100%;
    font-size: smaller;
  }
}

@media (max-width: 480px) {
  /* Styles for mobile devices */
  .tabcontent table,
  .tablinks {
    font-size: smaller;
  }
  /* Stack tab buttons vertically on smaller screens */
  .tab button {
    display: block;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .tabcontent {
    overflow-x: auto; /* Enable horizontal scrolling */
  }
}

.centered-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5; /* Light background to make content pop */
}

.centered-title {
    text-align: center;
    margin-bottom: 20px;
}

.tab {
    overflow: hidden;
    background-color: #fff;
    border: 1px solid transparent; /* Transparent border */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Soft shadow for depth */
}

.tab button {
    background-color: #007bff; /* Bootstrap primary blue */
    color: white; /* White text */
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 15px;
    transition: 0.3s;
    border-radius: 5px; /* Rounded corners for buttons */
}

.tab button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.tab button.active {
    background-color: #0056b3; /* Active state */
}

.tabcontent {
    display: none;
    padding: 20px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px; /* Space between tabs and content */
}

/* Specific styles for buttons inside Tab 2 for table switching */
.table-switch {
    background-color: #00857C; /* Bootstrap success green */
    color: white;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 15px; /* More rounded */
    cursor: pointer;
    border: none;
}

.table-switch:hover {
    background-color: #6ECEB2; /* Darker green on hover */
}

.table-switch.active {
    background-color: #6ECEB2; /* Darker green on hover */
}


/* Center the tab buttons container and allow for spacing */
.tab {
    text-align: center; /* Align the container's content to the center */
    margin-bottom: 20px; /* Space below the tab for content */
    background-color: #fff;
    padding: 10px; /* Padding around buttons */
    border-radius: 5px; /* Rounded corners for the container */
}

/* Individual button styling */
.tab button {
    background-color: #007bff; /* Primary blue */
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 15px;
    margin: 0 5px; /* Space between buttons */
    transition: 0.3s;
    border-radius: 5px; /* Rounded corners for buttons */
    display: inline-block; /* Align buttons next to each other */
}

.tab button:hover, .tab button.active {
    background-color: #0056b3; /* Darker blue for hover/active state */
}
/* Container for the tab buttons */
.tab {
    display: flex; /* Use Flexbox */
    justify-content: center; /* Center children horizontally */
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
    background-color: none;
    padding: 10px;
    border-radius: 5px;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
    margin-bottom: 20px; /* Space below the tabs */
}

/* Styling for individual buttons */
.tab button {
    background-color: #00857C; /* Primary blue */
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 15px;
    margin: 5px; /* Space around each button */
    transition: 0.3s;
    border-radius: 5px; /* Rounded corners */
}

.tab button:hover, .tab button.active {
    background-color: #6ECEB2; /* Darker blue for hover/active state */
}
.responsive-image {
  max-width: 100%; /* Ensures the image is no wider than its container */
  height: auto; /* Maintains the aspect ratio */
  display: block; /* Ensures the image is displayed as a block-level element */
  margin: 0 auto; /* Centers the image if it's not as wide as its container */
}

/* Styling for the overall table */
#CT-image-on-HRTC table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Styling for table cells and headers */
#CT-image-on-HRTC th, #CT-image-on-HRTC td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
 table-layout:fixed;
}

/* Set equal width and height for all cells except the first column */ 
#CT-image-on-HRTC tbody tr td:not(:first-child), 
#CT-image-on-HRTC tbody tr th:not(:first-child) { 
width: 120px; /* Fixed width */ 
 }


/* Thicker horizontal border between cT and pT sections */
#CT-image-on-HRTC tbody tr:nth-child(6) td, #CT-image-on-HRTC tbody tr:nth-child(6) th {
    border-top: 4px solid #000; /* Add thick horizontal border above the pT section */
}

/* Background color for the entire cT* section */
#CT-image-on-HRTC tbody tr:nth-child(-n+5) td, #CT-image-on-HRTC th[rowspan="5"] { 
    background-color: #fbe4c4; /* Light yellowish color for cT* section */
}

/* Background color for the entire pT section */
#CT-image-on-HRTC tbody tr:nth-child(n+6) td, #CT-image-on-HRTC th[rowspan="4"] {
    background-color: #f9d8b3; /* Light peach color for pT section */
}

/* Header styling */
#CT-image-on-HRTC th {
    background-color: #f4f4f4;
 color:black;
 font-weight:regular;
 width:60px !important;
}

/* Styling for table cells and headers */
#CT-image-on-HRTC th, #CT-image-on-HRTC td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle; /* Default alignment for the first row */
}

/* Align all cells (except the first row) to top-left */
#CT-image-on-HRTC tbody tr td, 
#CT-image-on-HRTC tbody tr {
    text-align: left;
    vertical-align: top; /* Align content to the top */
}

#CT-image-on-HRTC tbody tr:nth-child(1) td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: middle; /* Default alignment for the first row */
}


/* First column styling (keep it with flexible width and height) */
#CT-image-on-HRTC tbody tr th:first-child, 
#CT-image-on-HRTC tbody tr td:first-child {
    width: auto; /* Let the width adjust naturally */
    height: auto; /* Let the height adjust naturally */
}

/* RESPONSIVENESS */
/* On smaller screens, allow the table to scroll */
#CT-image-on-HRTC {
    overflow-x: auto; /* Allow horizontal scrolling */
}

/* On smaller screens, adjust the table layout */
@media (max-width: 768px) {
    #CT-image-on-HRTC table {
        table-layout: auto; /* Allow the table to shrink naturally */
        width: 100%; /* Ensure table takes up full width */
    }
    #CT-image-on-HRTC tbody tr td, 
    #CT-image-on-HRTC tbody tr th {
        height: auto; /* Allow height to adjust naturally on smaller screens */
    }
    /* Reduce the padding for smaller screens */
    #CT-image-on-HRTC th, #CT-image-on-HRTC td {
        padding: 6px;
    }
    /* Reduce the font size for readability */
    #CT-image-on-HRTC th, #CT-image-on-HRTC td {
        font-size: 14px;
    }
}

/* For very small screens (like mobile phones) */
@media (max-width: 480px) {
    #CT-image-on-HRTC table {
        font-size: 12px; /* Further reduce font size */
    }
    #CT-image-on-HRTC th, #CT-image-on-HRTC td {
        padding: 4px;
    }
}


/* Style for the description below the table */
.table-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-top: 20px;
}

  #SKS-koder th:empty,
  #SKS-koder td:empty {
    border: none; /* Remove the border */
    background-color: white; /* Set the background to white */
  }


a {
  text-decoration: none;
}
a button {
  all: unset; /* Resets all styles on the button to prevent overlap */
  display: inline-block; /* Ensures the button behaves like a block element */
}

#8th-vs-9th-edition {
  padding: 10px;
}

#8th-vs-9th-edition table {
  width: 100%;
  border-collapse: collapse;
}

#8th-vs-9th-edition th, #8th-vs-9th-edition td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

#8th-vs-9th-edition th {
  background-color: #f4f4f4;
  font-weight: bold;
}

#8th-vs-9th-edition tr:nth-child(even) {
  background-color: #f9f9f9;
}
