html {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}


@font-face {
  font-family: 'Sans Regular 400';
  src: url('OpenSans.ttf'); /* Specify the path to the font file */
}

/* General Styling */
body {
  font-family: 'Sans Regular 400';
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 30px;
  font-family: 'Sans Regular 400';
}

p {
  font-size: 16px;
}

/* Buttons */
.buttons a {
  display: block;
  padding: 10px 20px;
  font-size: 20px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: #333;
  margin-bottom: 10px;
}


.intro {
  font-size: 15px;
  margin: 5px 0 10px;
}

/* Layout */
/* Add spacing around the main content */
.container {
  display: flex;
  justify-content: space-between; /* Adds space between columns */
  align-items: flex-start;
  max-width: 90%; /* Prevents content from stretching too wide */
  margin: 20px auto; /* Adds space around the whole content */
  gap: 30px; /* Adds space between the left and right columns */
}


/* Left and Right Column Styling */
.left-column, .right-column {
  width: 48%; /* Makes sure there's a small gap between them */
  padding: 20px; /* Adds inner spacing */
  background: #f8f9fa; /* Light grey background for a modern look */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for a cleaner look */
}

/* Responsive Design */
@media only screen and (max-width: 1300px) {
  .container {
    flex-wrap: wrap;
    gap: 15px;
  }
  .left-column, .right-column {
    width: 100%;
  }
}

/* Video Styling */
.video-container {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.video-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SVG Styling */
.svg-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-image {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

/* Multiple Choice Test */
.question-box {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns */
  grid-template-areas: ". q2" "q1 ."; /* Define layout */
  grid-column-gap: 20px;
  border: 1px solid black;
  padding: 10px;
  margin: 10px;
}

.question-box-left {
  grid-column: 1 / 2;
  border-right: 1px solid black;
}

.question-box-right {
  grid-column: 2 / 3;
}

/* Quiz Styling - Fixed Font Size */
.coreanswer {
  font-size: 18px;
  justify-content: space-between;
}


.answer-option {
  padding: 12px 15px; /* Adds space around answer text */
  border-radius: 8px; /* Rounded corners */
  margin: 8px 0; /* Adds space between each option */
  display: block;  /* Ensures options are displayed vertically */
  margin-bottom: 10px; /* Adds spacing between options */
  font-size: 18px;
  justify-content: space-between;
  align-items: center; /* Keeps text aligned with radio button */
}


.answer-option label {
  display: flex; /* radio + text side by side */
  align-items: center;
  margin-bottom: 1px; /* 🔥 More vertical space between options */
}

.answer-option label input[type="radio"] {
  margin-right: 10px; /* ✅ Adds horizontal space between circle and text */
}

.answer-option label:hover {
  background-color: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
}





/* Form Inputs */
input[type="radio"] {
  transform: scale(1.5); /* Restore radio button size */
  margin-right: 5px;
}


#quizForm input[type="button"] {
  display: block;
  margin: -10px auto 10px;
}


/* Adjust the entire question box */
form {
  overflow-y: auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
  box-sizing: border-box;
  display: flex; /* ✅ NEW */
  flex-direction: column; /* ✅ NEW */
  justify-content: space-between; /* ✅ NEW */
}


.quiz-container {
  height: 500px;
  min-height: 500px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}






/* Responsive Font Size */
@media only screen and (max-width: 1300px) { /* Now applies to high-res phones */
  .container {
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 🔵 NEW LINE */
    width: 100%; /* 🔵 NEW */
    max-width: 100%; /* 🔵 NEW */
  }

  .left-column, .right-column {
    width: 100%;
    padding: 20px;
  }

  .right-column {
    margin-top: 20px;
  }

  /* 🔹 Ensure ALL text elements are larger */
  body, p, .answer-option, .question-text, .coreanswer, label {
    font-size: 28px !important; /* Bigger text */
    line-height: 1.5 !important; /* More spacing */
  }

  /* 🔹 Fix for the Multiple Choice question itself */
  .question-text {
    font-size: 28px !important; /* Larger font for questions */
    font-weight: bold; /* Makes it more readable */
  }

  /* 🔹 Ensure input radio options (MC answers) are also larger */
  .answer-option input[type="radio"] {
    transform: scale(2.2) !important; /* Bigger radio buttons */
    margin-right: 12px;
  }

  /* 🔹 Make the text next to radio buttons bigger */
  .answer-option label {
    font-size: 28px !important;
  }

  .answer-option label input[type="radio"] {
    margin-right: 12px !important; /* 🔧 Add space on small screens too */
  }


  /* Increase Total Score Display Size */
    #totalScoreDisplay {
      font-size: 28px !important; /* Bigger font for total score */
      padding: 15px !important;  /* More padding for spacing */
    }

}






.question-text {
  padding: 15px 18px; /* Space around question text */
background-color: #f8f9fa; /* Light background for better visibility */
border-radius: 8px; /* Rounded corners */
margin-bottom: 10px; /* Space before answers start */
font-size: 20px; /* Ensure it's readable */
font-weight: bold;
  font-family: 'Sans Regular 400';
}







.correct-answer {
  background-color: #c8e6c9; /* Light green */
}

.incorrect-answer {
  background-color: #ffcdd2; /* Light red */
}


/* Ensuring correct/incorrect answer boxes retain padding */
.correct-answer, .incorrect-answer {
  padding: 12px 15px !important; /* Ensures text is not touching edges */
  border-radius: 8px;
  display: block;
  margin: 5px 0;
  width: fit-content;
}

#totalScoreDisplay {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  background-color: #f8f8f8;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  border: 2px solid #ccc;
}







.warning-message {
  color: red;
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  background-color: #ffdddd;
  padding: 10px;
  border: 1px solid red;
  border-radius: 5px;
  text-align: center;
}


/* 🔹 Ensure Warning Message Resizes Properly on Small Screens */
@media only screen and (max-width: 1300px) {
  .warning-message {
    font-size: 28px !important; /* Increase font size */
    line-height: 1.5 !important;
  }
}







/* Ensure the download container matches the video width */
.download-container {
    text-align: center;
    margin-top: 10px; /* Space between video and button */
    width: 100%; /* Match the video container width */
    margin-bottom: 8px; /* Adjust spacing between download buttons */
}



/* 🔹 Updated Light Grey Buttons with Black Text */
.download-link {
  background-color: #d6d6d6;
  color: black;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  transition: background-color 0.3s ease-in-out, transform 0.1s;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid #a8a8a8;
  cursor: pointer;
  display: block;
  text-align: center;
  width: 100%; /* ✅ OK for download buttons only */
  box-sizing: border-box;
}


.quiz-button {
  background-color: #d6d6d6;
  color: black;
  font-size: 20px; /* ⬅️ Increased from 18px */
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease-in-out, transform 0.1s;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid #a8a8a8;
  cursor: pointer;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  height: 54px;         /* ⬆️ Slight increase */
  line-height: 54px;    /* ⬆️ Align with height */
  margin: 5px 0 0 0;
}



/* Unified hover and click for all buttons */
.download-link:hover,
.quiz-button:hover,
.chat-input button:hover {
    background-color: #bfbfbf;
}

.download-link:active,
.quiz-button:active,
.chat-input button:active {
    transform: scale(0.97);
}





/* 🔹 Ensure Buttons Scale Properly on Small Screens */
@media only screen and (max-width: 1300px) {
    .download-link {
        font-size: 28px !important;
        padding: 16px 22px !important;
    }

}


@media only screen and (max-width: 1300px) {
    .quiz-button {
        font-size: 28px !important;     /* ⬆️ To match other buttons */
        height: 64px !important;        /* ⬆️ Match visual height */
        line-height: 64px !important;
        padding: 0 20px !important;
    }
}


@media only screen and (max-width: 1300px) {
  .nav-link {
    font-size: 28px !important;
    padding: 16px 22px !important;
  }
}





/* 🔹 Styling for Placeholder Section */
.placeholder-section {
    background: #f1f1f1; /* Light grey background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    margin-bottom: 20px; /* Space before the quiz */
    text-align: center;
    min-height: 300px; /* Keep a fixed height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 🔹 Title inside Placeholder */
.placeholder-section h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

/* 🔹 Chatbot inside Placeholder */
.placeholder-section {
    padding: 20px;
    background: #f8f9fa; /* Light grey background (matches rest of site) */
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* 🔹 Chat messages area (fills the placeholder) */
.chat-messages {
    height: 400px; /* Set a fixed height (adjust as needed) */
    max-height: 400px; /* Prevents expansion */
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #ffffff;
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: 'Sans Regular 400', Arial, sans-serif !important; /* Ensure it matches */
    font-size: 18px; /* Keep consistent size */
    color: #333; /* Same text color as rest of site */
    text-align: left; /* Ensure all chat messages are left-aligned */
}

.chat-messages strong {
    font-family: 'Sans Regular 400', Arial, sans-serif !important;
    font-weight: bold;
    color: #222; /* Make it a bit darker for better readability */
}




.chat-messages div {
    text-align: left; /* Each message specifically aligns left */
    margin-bottom: 8px; /* Adds spacing between messages */
}


/* 🔹 Chat input area */
.chat-input {
    display: flex;
    gap: 10px;
}

/* 🔹 Text area inside chatbot */
.chat-input textarea {
    width: 100%;
    height: 50px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    font-size: 16px;
}


/* 🔹 Chatbot Send Button */
.chat-input button {
    background-color: #d6d6d6; /* Light grey (same as other buttons) */
    color: black; /* Black text for contrast */
    font-size: 18px; /* Match button text size */
    font-weight: bold;
    padding: 12px 18px; /* Adjusted padding */
    border-radius: 8px; /* Rounded corners */
    transition: background-color 0.3s ease-in-out, transform 0.1s;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15); /* Soft shadow effect */
    border: 1px solid #a8a8a8; /* Subtle border for definition */
    cursor: pointer;
    width: 100%; /* Match width of other buttons */
    text-align: center;
    box-sizing: border-box;
}

/* 🔹 Hover Effect */
.chat-input button:hover,
.download-link:hover,
input[type="button"]:hover {
    background-color: #bfbfbf; /* Unified hover color */
}


/* 🔹 Click Effect */
.chat-input button:active {
    transform: scale(0.97);
}

/* 🔹 Ensure Buttons Scale Properly on Small Screens */
@media only screen and (max-width: 1300px) {
    .chat-input button {
        font-size: 28px !important;
        padding: 16px 22px !important; /* Bigger padding for better tap area */
    }
}




/* 🔹 Button Click Effect */
.chat-input button:active {
    transform: scale(0.96);
}

/* 🔹 Responsive Styling */
@media only screen and (max-width: 1300px) {
    .chat-input textarea {
        font-size: 28px;
    }

    .chat-input button {
        font-size: 28px;
        padding: 8px 14px;
    }
}



/* 🔹 Ensure chatbot messages resize properly on smaller screens */
@media only screen and (max-width: 1300px) {
    .chat-messages {
        font-size: 28px !important; /* Keep it consistent with other text */
        line-height: 1.6 !important; /* Improve readability */
        padding: 15px !important; /* Add spacing */
    }
}

/* 🔹 Further adjust for very small screens */
@media only screen and (max-width: 1300px) {
    .chat-messages {
        font-size: 28px !important; /* Further increase text size */
        padding: 18px !important; /* Add more spacing */
    }
}

/* 🔹 Increase font size for user input field on smaller screens */
@media only screen and (max-width: 1300px) {
    .chat-input textarea {
        font-size: 28px !important; /* Match other text sizes */
        padding: 15px !important; /* Ensure comfortable spacing */
    }
}

/* 🔹 Further adjust for very small screens */
@media only screen and (max-width: 768px) {
    .chat-input textarea {
        font-size: 28px !important; /* Slightly larger for readability */
        padding: 18px !important; /* Keep spacing comfortable */
    }
}

.navigation-buttons {
    display: flex;
    justify-content: space-between; /* Ensures equal spacing */
    width: 100%; /* Matches Download button width */
    margin-top: 10px;
}

.nav-link {
    flex: 1; /* Makes each button the same width */
    background-color: #d6d6d6; /* Light grey */
    color: black;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out, transform 0.1s;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid #a8a8a8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔹 Ensures equal spacing between buttons */
.nav-link:not(:last-child) {
    margin-right: 5px;
}

/* 🔹 Hover effect */
.nav-link:hover {
    background-color: #bfbfbf;
}

/* 🔹 Click effect */
.nav-link:active {
    transform: scale(0.97);
}


.download-link {
    display: block;
    width: 100%; /* Keeps buttons the same width */
    background-color: #d6d6d6;
    color: black;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out, transform 0.1s;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid #a8a8a8;
    cursor: pointer;
}

/* 🔹 Spacing for better structure */
.download-container:last-of-type {
    margin-bottom: 15px; /* Adds extra spacing before navigation buttons */
}

/* 🔹 Hover and Click Effects */
.download-link:hover {
    background-color: #bfbfbf;
}

.download-link:active {
    transform: scale(0.97);
}

/* 🔹 Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Dark background */
    justify-content: center;
    align-items: center;
}

/* 🔹 Modal Content Box */
.modal-content {
    background-color: #f8f9fa;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}

/* 🔹 Modal Headline */
.modal-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* 🔹 Modal Text */
.modal-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

/* 🔹 Modal Buttons */
.modal-buttons {
    display: flex;
    justify-content: space-between;
}

.modal-buttons button {
    background-color: #d6d6d6;
    color: black;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #a8a8a8;
    cursor: pointer;
    flex: 1;
    margin: 0 5px;
    transition: background-color 0.3s ease-in-out, transform 0.1s;
}



/* 🔹 Special colors for Accept / Decline buttons */
#acceptTerms {
    background-color: #c8e6c9; /* Light green (correct-answer color) */
}

#declineTerms {
    background-color: #ffcdd2; /* Light red (incorrect-answer color) */
}

/* 🔹 Keep hover effect consistent */
#acceptTerms:hover {
    background-color: #a5d6a7; /* Slightly darker green on hover */
}

#declineTerms:hover {
    background-color: #ef9a9a; /* Slightly darker red on hover */
}





/* 🔹 Hover Effects */
.modal-buttons button:hover {
    background-color: #bfbfbf;
}

/* 🔹 Click Effect */
.modal-buttons button:active {
    transform: scale(0.97);
}


/* 🔵 New: Active Switch Button Style */
.active-switch-button {
    background-color: #c0c0c0; /* slightly darker grey */
    font-weight: bold;
}






.main-wrapper {
  max-width: 90%;
  margin: 20px auto;
}

.header {
  max-width: 90%;
  margin: 20px auto;
  background-color: #ffffff;
  padding: 10px 0;
  border-bottom: 1px solid #ddd; /* ✨ NEW: subtle separator */
}

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

.header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}






/* 🔵 Header Links (Übersicht, YouTube, Makro, etc.) */
.header-left a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-weight: 600; /* ⬆️ slightly bolder */
  font-size: 18px;  /* ⬆️ match rest of site */
  padding: 6px 12px;  /* ⬆️ add internal spacing */
  margin-right: 10px; /* ⬇️ reduced for consistency */
  border-radius: 6px;
  transition: background-color 0.2s ease-in-out;
}





/* Apply hover background only to links without an image */
.header-left a:not(:has(img)):hover {
  background-color: #e0e0e0;
}




/* 🔵 Optional: make the project title bigger */
.project-title {
  font-weight: bold;
  font-size: 20px;
  margin-right: 30px;   /* ⬆️ More spacing between title and links */
  padding-right: 10px;  /* Optional: subtle internal spacing */
  align-self: center;  /* ✅ ensures it aligns with the logo vertically */
line-height: 1;       /* ✅ eliminates unwanted vertical spacing */
}




.header-right img {
  height: 48px;
  object-fit: contain;
  vertical-align: middle; /* ✨ NEW: aligns logo better with text */
}




/* 🔵 Only show one question at a time */
.active-question {
  display: block;
}

.hidden-question {
  display: none;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Keeps it centered */
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
  z-index: 2; /* Ensure it stays above the preview image */
}

.play-button:hover {
  background-color: rgba(50, 50, 50, 0.85);
}

/* Removed scale to prevent layout shift */
.play-button:active {
  background-color: rgba(70, 70, 70, 0.9);
}



.video-loaded {
  pointer-events: none;
}

h1 {
  font-size: 24px;          /* Match your typical heading size */
  margin: 20px 0 10px 0;    /* Tighter spacing above and below */
  font-weight: 600;         /* Optional: slightly bolder */
  color: #333333;           /* Same as your main text color */
  text-align: center;       /* Optional: center it like your layout */
}

h1.seo-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


@media only screen and (max-width: 1300px) {
  .hide-on-small {
    display: none !important;
  }

  .header-content {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-left {
    gap: 10px;
    flex-wrap: wrap;
  }

  .header-left a {
    font-size: 28px !important;
  }

  .project-title {
    font-size: 28px;
  }

  .header-right img {
    height: 52px;
  }
}



@media only screen and (max-width: 1300px) {
  .header {
    padding: 5px 0; /* reduce top/bottom padding */
    margin: 10px auto; /* less vertical space */
  }

  .header-right img {
    height: 44px !important; /* slightly smaller logo */
  }

  .project-title {
    font-size: 28px !important; /* just a little smaller */
    margin-right: 20px;
  }

  .header-left a {
    padding: 4px 8px !important;  /* more compact link padding */
    font-size: 28px !important;
    margin-right: 8px !important;
  }

  .header-content {
    gap: 8px; /* slightly reduce space between elements */
  }

  .header-left {
  gap: 8px !important;
}

}






.logo {
  height: 48px;
  object-fit: contain;
  margin-right: 15px;
}



.preview-image {
  position: absolute;
  pointer-events: none;
  display: none;
  z-index: 1000;
  width: 200px;
  height: 112px; /* 16:9 aspect ratio for 200px width */
  object-fit: cover; /* 👈 Crops image nicely */
  border: 1px solid #ccc;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
