:root {
  /* importante */
  color-scheme: light dark;
}
.notice {
    text-align: center;
    padding: 10px;
    border: 2px solid red;
    margin: 0 auto;
}

/* Common.css */

.main-content {
  width: 40%;
  margin: 0 auto;
  padding: 1em;
  background-color: light-dark(#ffffff, #000000);
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

form {
  width: 100%;
  text-align: center;
}

body {
    font-family: sans-serif;
    background-color: light-dark(#f4f4f4, #2f2f2f);
    line-height: 1.5;
    margin: 0;
}

h1.pollName {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-top: 0em;
}

.poll-box {
    width: 400px;
    padding: 1em;
    background-color: #fff;
    margin: 0 auto;
    border-radius: 5px;
}

input[type="radio"] {
    margin-right: 0.5em;
}

label {
    cursor: pointer;
}

#vote {
    width: 80px;
    margin-top: 1em;
    margin-bottom: 1em;
    background-color: #2196f3;
    color: #fff;
    padding: 0.5em;
    font-weight: bold;
    border-radius: 3px;
}
.choice {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
    margin: 0 auto;
  }
  
  .choice label {
    display: block;
    width: 100%;
    cursor: pointer;
  }
  .choice input[type="radio"]:checked + label {
    background-color: none;
  }
  .choice input[type="radio"] {
    margin-right: 10px;
  }
  #vote {
    display: block;
    margin: 0 auto;
  }
  .bar {
    background-color: #4CAF50;
    height: 20px;
    margin-bottom: 4px;
    transition: width 0.4s ease-out;
  }
  .result {
    margin-bottom: 20px;
  }
  .results {
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
    margin: 0 auto;
  }

.header {
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0px 1px 5px rgba(0,0,0,0.2);
}

.header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.header a:hover {
    color: #2196f3;
}


input[type="text"] {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 3px;
}

#add-answer-button {
  width: 150px;
  background-color: #2196f3;
  color: #fff;
  padding: 0.5em;
  font-weight: bold;
  border-radius: 3px;
  margin-bottom: 1em;
  cursor: pointer;
  margin: 0 0.5em;
}

.newpollbutton {
  width: 200px;
  background-color: #4caf50;
  color: #fff;
  padding: 0.5em;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
}

.answer-input {
  display: flex;
  flex-direction: column;
}

#answers-container {
  margin-bottom: 1em;
}

/* General form styling */
.answer-input {
  margin-bottom: 15px;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Tooltip container */
.tooltip-container {
  display: inline-block;
  position: relative;
}

#proxyoptions {
  display: flex;
}

.tooltip-icon {
  background-color: #555;
  color: white;
  text-align: center;
  border-radius: 50%;
  width: 16px;  /* Icon size */
  height: 16px; /* Icon size */
  line-height: 16px; /* Center the question mark vertically */
  font-size: 12px;
  display: inline-flex; /* To properly size and position the icon */
  justify-content: center;
  align-items: center;
  margin-left: 5px; /* Space between the icon and the checkbox */
  cursor: pointer; /* Make it clickable */
}

.tooltip-text {
  visibility: hidden;
  width: 250px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Adjusted to align the tooltip above the icon */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-container .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip on hover or focus */
.tooltip-container:hover .tooltip-text,
.tooltip-container:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
}

#DelPassword {
  margin-top: 15px;
}

h1.PollCreate {
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  margin-top: 0;
}

p.options {
  font-weight: bold;
  font-size: 1em;
}

footer {
  text-align: center;
}
  /*
  #view-results {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    margin-left: 10px;
}*/