/* 
 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 * See LICENSE in the project root for license information.
 */

 html,
 body {
     width: 100%;
     height: 100%;
     margin: 0;
     padding: 0;
 }
 
 ul {
     margin: 0;
     padding: 0;
 }
 
 .ms-welcome__header {
    padding: 20px;
    padding-bottom: 30px;
    padding-top: 100px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center; /* IE 10 */
 }

 .ms-welcome__main {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap; /* IE 10 */
    flex-wrap: nowrap;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex: 1 0 0;
    -ms-flex: 1 0 0;
    flex: 1 0 0;
    padding: 10px 20px;
 }
 
 .ms-welcome__main > h2 {
     width: 100%;
     text-align: center;
 }
 
 .ms-welcome__features {
     list-style-type: none;
     margin-top: 20px;
 }
 
 .ms-welcome__features.ms-List .ms-ListItem {
     padding-bottom: 20px;
     display: -webkit-flex;
     display: flex;
 }
 
 .ms-welcome__features.ms-List .ms-ListItem > .ms-Icon {
     margin-right: 10px;
 }
 
 .ms-welcome__action.ms-Button--hero {
     margin-top: 30px;
 }
 
.ms-Button.ms-Button--hero .ms-Button-label {
  color: #0078d7;
}

.ms-Button.ms-Button--hero:hover .ms-Button-label,
.ms-Button.ms-Button--hero:focus .ms-Button-label{
  color: #005a9e;
  cursor: pointer;
}

b {
    font-weight: bold;
}

.flex-container {
  display: flex;
}

.container {
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background-color: #fff;
  width: 90%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h2 {
  margin-top: 0;
  font-size: 1.2em;
  color: #333;
}
.search-input {
  width: 92%;
  padding: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.search-button {
  width: 100%;
  padding: 10px;
  background-color: #113b51;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
}
.search-button:hover {
  background-color: #45788b;
}
.gauge {
  position: relative;
  width: 200px;
  height: 100px;
  margin: 0 auto 20px auto;
}
.arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid #000;
  left: 50%;
  top: 100%;
  transform-origin: center bottom;
}
.checklist {
  text-align: left;
}
.checklist li {
  list-style: none;
  margin: 10px 0;
  padding-left: 25px;
  position: relative;
}
.checklist li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
}
.green:before {
  background-color: #4caf50;
}
.yellow:before {
  background-color: #ffeb3b;
}
.red:before {
  background-color: #f44336;
}

.warning-ribbon {
    position: fixed; /* Stays at the top of the viewport */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #77ad1f; /* Light red background */
    color: #ffffff; /* Dark red text */
    text-align: center;
    padding: 10px;
    font-size: 16px;
    border-bottom: 2px solid #77ad1f; /* Slightly darker border */
    z-index: 1000; /* Ensures the ribbon is on top of other content */
    opacity: 1;
    transition: opacity 1s ease-in-out; /* Smooth fade-out effect */
  }
  
  .warning-ribbon.fade-out {
    opacity: 0;
  }


  .spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto 10px auto; /* Center the spinner */
  }
  
  .loading{
    text-align: center;
    margin-top: 20px;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  

  .policy-container {
    margin-bottom: 20px;
}

.policy-header {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center items vertically */
  background-color: #f8f8f8;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 5px;
}

.policy-title {
  font-weight: bold;
  font-size: 16px;
}

.doc-summary-container {
  margin-bottom: 20px;
}

.doc-summary-header {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center items vertically */
  background-color: #f8f8f8;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 5px;
}

.doc-summary-title {
  font-weight: bold;
  font-size: 16px;
}

.compliance-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px; /* Space between icon and title */
}
.compliant {
    background-color: green;
}

.non-compliant {
    background-color: red;
}

.policy-content {
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
}

.policy-field {
    margin-bottom: 10px;
}

.policy-field div {
  margin-bottom: 10px;  /* Adds space between title and content */
}

.key-items {  
  display: flex;  
  flex-wrap: wrap;  
  gap: 5px;  
  max-width: 100%;  
  overflow: hidden;  
  padding: 5px 0;  
} 

.key-item {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 1px 1px;
  margin-right: 2px; /* Adds small gap between tags */
  margin-bottom: 5px;
  border-radius: 10px; /* Increase to make it more rounded */
  font-size: 14px;
  border: 1px solid #ccc;
  white-space: nowrap;
}

.toggle-marker {
  font-size: 18px; /* Increase size for better visibility */
  margin-left: 10px; /* Space between title and toggle marker */
}

.field-title {
  font-weight: bold;  /* Ensure all field titles are bold */
  margin-bottom: 5px; /* Add space below the title for clarity */
}

.fix-button {
  background-color: #89c2e9; /* Light blue */
  color: white;               /* White text */
  border: none;               /* Remove default border */
  padding: 8px 16px;          /* Padding to make the button look better */
  text-align: center;         /* Center the text */
  text-decoration: none;      /* Remove underline */
  display: inline-block;      /* Make it inline */
  font-size: 14px;            /* Adjust font size */
  border-radius: 6px;         /* Small rounded corners */
  cursor: pointer;            /* Pointer cursor on hover */
  margin-top: 10px;           /* Add space between the button and text */
}

.fix-button:hover {
  background-color: #afb3b6;  /* Slightly darker blue on hover */
}

.button-container {
  display: flex;
  gap: 10px; /* Optional: Adds space between the buttons */
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.carousel-text {
  -ms-flex-positive: 1;
  text-align: left;
  padding: 0 10px;
}

.carousel-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

.variation-number {
  font-size: 12px;
  color: gray;
  text-align: right;
  margin-top: 5px;
}


.answer-container, .results-container {
  margin: 20px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.answer-container h3, .results-container h3 {
  margin-bottom: 10px;
  color: #b6b5b5;
}

.result-item {
  padding: 8px;
  margin: 5px 0;
  cursor: pointer;
  background-color: #e8e8e8;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.result-item:hover {
  background-color: #d0d0d0;
}

.result-description {
  margin: 5px 0 0 0;
  font-size: 0.9em;
  color: #555;
}

#index-doc-container {
  display: flex;
  border: 3px solid #d8ae22;
  border-radius: 8px;

  flex-direction: column;
  display: none; /* Keep the initial display none */
}

/* Ensure the spinner is hidden initially */
#index-doc-spinner {
  display: none;
}