/* Apply box-sizing globally for all elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Ensure body takes full height and no overflow horizontally */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important; /* Prevent horizontal scrolling */
}

/* Body Styling */
body {
    font-family: "Quicksand", sans-serif !important; /* Ensure the Quicksand font is applied globally */
    width: 100%;
    overflow-x: hidden !important; /* Ensure no horizontal scrolling */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .logo{
        margin-bottom: 15px;
    }

    h1 {
        font-size: 24px !important; /* Adjust heading size for smaller screens */
    }

    .text-header {
        font-size: 22px !important;
    }

    .text-container {
        font-size: 16px !important; /* Adjust text size for smaller screens */
        line-height: 1.5;
    }

    .footer_wrapper {
        flex-direction: column;
        align-items: center;
    }

    .footer_center {
        margin-bottom: 10px !important; /* Ensure space between text and dropdown */
    }

    .footer_right {
        position: static;
        margin-top: 10px;
    }
}

/* Header Section */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: inline-block; /* or flex */
    line-height: 0; /* removes any unwanted whitespace below the image */
}

.header .logo img {
    height: 100px;
    width: auto;
    display: block;
}

.header a{
    font-weight: 500;
    border-radius: 5px;
}

.button_container {
    float: right;
}

/* Header button styling */
.button {
    background-color: #13a6e4;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background-color: #0a7c8f;
}

/* Heading Styling */
h1 {
    max-width: 980px; 
    margin: 20px auto;
    font-size: 45px; /* Fix scaling for larger screens */
    color: #13a6e4;
    text-align: center;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    font-family: "Quicksand", sans-serif !important; /* Ensure Quicksand font is applied to h1 */
}

/* Main Text Styling */
.text-container, .text-container2 {
    text-align: center;
    line-height: 25px;
    font-size: 20px;
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 0;
}

.text-container p, .text-container ul {
    margin-top: 5px; /* Reduce the top margin */
}

.text-container2 {
    margin-bottom: 0; /* Remove bottom margin */
    padding-bottom: 0; /* Remove padding at the bottom */
    margin-top: 0; /* Remove top margin */
    padding-top: 0; /* Remove padding at the top */
}

/* Container for iframe */
.container {
    width: 100%;
    max-width: 980px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* ensures no unwanted scrollbars appear */
    margin: 0 auto;
    text-align: center;
    margin-top: 0; /* Remove top margin */
    margin-bottom: 0; /* Remove bottom margin */
}

#tools-iframe {
    border: none;
    width: 100%; /* Adjust width as needed, e.g., max-width: 980px; */
    overflow-x: hidden; /* force hiding horizontal scrollbars */
}

/* iframe styling */
iframe {
    width: 100%;
    border: none;
    box-sizing: border-box;
    margin-top: 0; /* Remove top margin */
    margin-bottom: 0; /* Remove bottom margin */
}

/* Horizontal Rule */
hr {
    width: 100%;
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 10px auto;
}

/* Footer Styling */
.footer_wrapper {
    display: flex;
    justify-content: center; /* Center the footer content */
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    flex-wrap: wrap; /* Allow items to wrap on small screens */
}

/* Center Footer Links */
.footer_center {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: auto; /* Adjust width to auto */
    margin-left: 15%; /* Center the footer text */
    position: relative;
}

.footer_center strong {
    font-weight: bold;
}

.footer_center a {
    margin: 0 5px;
    color: black;
    text-decoration: none;
}

.footer_center a:hover {
    text-decoration: underline;
}

/* Right Section for Language Dropdown */
.language-toggle {
  position: relative;
  cursor: pointer;
}

.current-language {
  font-size: 16px;
  color: #13a6e4;
  text-decoration: underline;
}

.language-dropdown {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100px;
  top: 20px;
  left: 0;
  z-index: 1;
}

.language-dropdown a {
  padding: 8px;
  text-decoration: none;
  color: #333;
  display: block;
}

.language-dropdown a:hover {
  background-color: #f1f1f1;
}

/* Show dropdown when clicked */
.language-dropdown.show {
  display: block;
}

/* Footer Right Section */
.footer_right {
    display: flex;
    justify-content: flex-end; /* Align the dropdown to the right */
    position: absolute;
    right: 20px; /* Position the button on the right */
    top: 50%; /* Vertically center the button */
    transform: translateY(-50%); /* Adjust for vertical centering */
    margin-left: 80px; /* Add spacing from the footer text */
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown button {
    background-color: #13a6e4;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown button:hover {
    background-color: #0a7c8f;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    left: 0;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Dropdown Links */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Language Dropdown Styling */
.language-select {
    position: relative;
    display: inline-block;
    text-align: right; /* Aligns it properly in the footer */
    margin-top: 10px; /* Ensures spacing from footer elements */
}

#current-lang {
    font-size: 16px;
    color: black; /* Make text black as per request */
    text-decoration: underline;
    cursor: pointer;
    padding: 5px;
}

/* Dropdown Menu Positioning */
#dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%; /* This will make the menu appear above the button */
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    z-index: 1;
}

#dropdown-menu a {
    padding: 8px;
    text-decoration: none;
    color: #333;
    display: block;
}

#dropdown-menu a:hover {
    background-color: #f1f1f1;
}

/* Show dropdown when clicked */
#dropdown-menu.show {
    display: block;
}

/* Arrow styling */
.arrow {
    font-size: 14px;
    margin-left: 5px;
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

/* Rotate the arrow when dropdown is active */
#dropdown-menu.show + .arrow {
    transform: rotate(180deg);
}

.footer_socials {
    margin-left: 40px;
}

.footer_socials a {
    color: black; /* Make social links black */
    margin: 0 10px; /* Add spacing between social links */
    text-decoration: none;
}

.footer_socials a:hover {
    text-decoration: underline;
}


.bold {
    font-weight: bold;
}

.text-header {
    font-weight: bold;
    font-size: 30px;
    color: #13a6e4;
    margin-bottom: 5px; /* Reduce the bottom margin */
}

/* Change the color of specific links to match the titles */
.text-links{
    color: #13a6e4;
}

/* Specific styling for text containers in the heat pump page */
.text-container {
    text-align: left;
    margin-bottom: 5px; /* Further reduce the spacing between text containers */
}

.content-container{
    padding: 15px;
}

.button_container a{
    display: block;
}