*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
} 



body,
html {
  font-family: "Comic Sans MS", cursive, sans-serif;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background: #FFA17F;
  background: -webkit-linear-gradient(to right, #00223E, #FFA17F);
  background: linear-gradient(to right, #00223E, #FFA17F);
}

.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 9;
}

.footer-wrapper {
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* // Styles for all buttons */
.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: pointer;
  width: 150px;
  height: 50px;
  background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);
  border-radius: 30px;
  border: 1px solid #8F9092;
  transition: all 0.2s ease;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #606060;
  text-shadow: 0 1px #fff;
}



/* // Main */
.main-content {
  display: flex;
}
@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
    width: 90vw;
     margin: 0 auto;
     align-items: center;
     padding: 0;
  }
}

.vote-section {
  width:53vw;
}
@media (max-width:1300px) {
  .vote-section {
    width:55vw;
  }
}

.right-sections {
  display: flex;
  flex-direction: column; 
  margin: auto 1.5em;
}

.vote-suggestions, .view-suggestions {
  width: 45vw;
  margin: 1em auto;
}
@media (max-width:1300px) {
  .vote-suggestions, .view-suggestions {
    width: 37vw;
  } 
}



/* // Vote Suggestions form */
.vote-suggestions {
  border-radius:1em;
  padding: 2em;
  margin-bottom: 1em;
  background: linear-gradient(to left, #243B55, #141E30);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
@media (max-width: 1024px) {
  .vote-suggestions {
    padding: 1em;
    width: 80vw; 
  }
} 
@media (max-width: 768px) {
  .vote-suggestions {
    padding: .7em; 
  }
} 

.form-inline,
.label-block,
.form-block {
  border-radius: 0.5em;
  background: linear-gradient(to right, #324461, #1e2f3a);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.form-inline {
  padding: 1em;
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: center;
}
@media (max-width: 768px) {
  .form-inline {
    flex-direction: column;
    padding: .5em;
  }
}

.label-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #ffec00;
  margin: 0 1em;
  font-family: Arial, sans-serif;
  padding: 1em;
  width: 12vw;
}
@media (max-width:1540px) {
    .label-block{
      width:30%;
      padding: .5em;
      margin: .5em;
    }  
}
@media (max-width: 768px) {
  .label-block {
    margin: .6em;
    width: 72vw;
  }
}
@media (max-width: 650px) {
  .label-block {
    width: 70vw;
  }
}
@media (max-width: 550px) {
  .label-block {
    width:68vw;
  }
}
@media (max-width: 450px) {
  .label-block {
    width:66vw;
  }
}
@media (max-width: 370px) {
  .label-block {
    width:64vw;
  }
}

.label-block label {
  white-space: nowrap;
  display: flex;
  justify-content: center;
  gap: .6em;
}
@media (max-width:1024px) {
  .label-block label {
    white-space: wrap; 
    flex-direction: column;
    gap: .1em;
  }
}
@media (max-width:768px) {
  .label-block label {
    white-space: nowrap; 
    flex-direction: row-reverse;
    gap: .5em;
  }
}

.label-block input[type="text"] {
  background: #fcf8e3;
  color: #333;
  font-size: 1em;
  padding: 0.3em 0;
  text-align: center;
  border-radius: 0.5em;
  margin-top: 0.5em;
}
@media (max-width: 1540px) {
  .label-block input[type="text"] {
    font-size: .8em;
  }
}

label[for="suggestion"] {
  font-family: Arial, sans-serif;
  color: #000;
  font-size: 1.1em;
}
@media (max-width: 1540px) {
  label[for="suggestion"] {
    font-size: 1em;
  }
}

label[for="suggestion"] i.fas.fa-comment {
  color: #fbff00;
  font-size: 1em;
  margin-right: 0.5em;
  margin-bottom: .6em;
}
@media (max-width: 1540px) {
  label[for="suggestion"] i.fas.fa-comment {
    font-size: .9em; 
  }
}

label[for="suggestion"]:hover,
label[for="suggestion"]:hover i.fas.fa-comment {
  color: #fbff00;
}

.form-block {
  display: flex;
  flex-direction: column;
  margin-top: 0.5em;
  font-family: Arial, sans-serif;
  padding: 1em;
  justify-content: center;
}

.form-block .suggestion-textarea {
  border: 2px solid #ccc;
  padding: 0.5em;
  margin-bottom: 1.5em;
  background-color: #fff;
}
@media (max-width: 1540px) {
  .form-block .suggestion-textarea {
    height: 7vh;
  }
}

.form-block .submit-button {
  margin: 0 auto;
  border-radius: 0.3em;
  padding: 10px 20px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}
@media (max-width: 1540px) {
  .form-block .submit-button {
    font-size: .8em;
    padding: 7px 15px;
  }
}
@media (max-width: 1024px) {
  .form-block .submit-button {
    font-size: .9em;
    padding: 7px 15px;
  }
}

.form-block .submit-button i.fas.fa-check {
  margin-right: 8px; 
}

.form-block .submit-button:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1.03);
}

.form-block .submit-button:active {
  transform: scale(0.95);
  border: 2px solid #00264d;
}

.tooltip {
  position: absolute;
  background-color: #243B55;
  color: #fff;
  padding: 2em;
  border-radius: 5px;
  font-size: 1em;
  z-index: 9999;
  text-align: center;
  line-height: 2;
}

.yellow-span {
  color: #ff0;
}



/*//  View suggestions C */
.view-suggestions {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  justify-content: start; 
  background: linear-gradient(to right, #324461, #1e2f3a);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 1em 0 0 1em;
  overflow: auto;
  font-size: 1.1em;
}
@media (max-width: 1300px) {
  .view-suggestions {
    font-size: 0.9em; 
    padding: 10px; 
  }
} 
@media (max-width: 1024px) {
  .view-suggestions {
    padding: .5em;
    width: 80vw; 
  }
} 

.view-it {
  max-height: 42vh;
}

.vote-container {
  padding: 1em;
  background: rgba(46, 49, 49, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 0.8em;
}

.vote-entry {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffec00;
  border-top: 1px solid #ffec00;
  padding: 10px;
  border-radius: 1em;
  margin-bottom: 10px;
  color: #d6d2d2;
}
@media (max-width: 1024px) {
  .vote-entry {
    flex-direction: column;
 
  }
}

.vote-details{
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ffec00;
  border-left: 1px solid #ffec00;
  border-radius: .5em;
  padding: 0 1em;
}
@media (max-width: 1024px) {
  .vote-details {
    flex-direction: row;
    gap: 2em;
    font-size: 1.5em;
    margin:.8em;
  }
}
@media (max-width: 768px) {
  .vote-details {
    gap: 1.5em;
    font-size: 1em;
    margin:.7em;
  }
}
@media (max-width: 400px) {
  .vote-details {
    gap: 1em;
    font-size: .7em;
    margin:.5em;
  }
}

.vote-suggestion {
  word-wrap: break-word;
  overflow-y: auto;
  text-align: start;
  padding: 0 1.5em;
}
@media (max-width: 1024px) {
  .vote-suggestion {
    font-size: x-large;
  }
}
@media (max-width: 768px) {
  .vote-suggestion {
    font-size: large;
  }
}
@media (max-width: 400px) {
  .vote-suggestion {
    font-size: 1.2em;
  }
}



.vote-buttons {
  display: flex;
  flex-direction: column;
}
@media (max-width: 1024px) {
  .vote-buttons {
    display: flex;
    flex-direction: row;
    gap: 2em;
    margin-top: 1em;
  }  
}
@media (max-width: 500px) {
  .vote-buttons {
    gap: 1.5em;
  }
  
}

.vote-buttons button {
  margin: 0.4em 0;
  max-width: 100px;
  border-radius: 0.4em;
  background: linear-gradient(to left, #324461, #1e2f3a);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  color: #fff;
  filter: drop-shadow(1px 1px 1px #ffffff);
  letter-spacing: 1px;
}

@media (max-width: 1300px) {
  .vote-buttons button {
    margin: 0.5em 0;
  }
  .vote-yes, .vote-no {
    width: 100px;
    height: 30px;
  }
}

.vote-yes:hover, .vote-no:hover {
  transform: scale(1.05);
}

.vote-yes:active, .vote-no:active {
  transform: scale(0.97);
}



/* // main vote A */
.vote-section {
  display: flex;
  margin: auto 0.5em;
  border-radius: 1em;
  border: none;
  /* background: #FFA17F;
  background: -webkit-linear-gradient(to left, #00223E, #7f9dff);
  background: linear-gradient(to left, #00223E, #253a7f); */
}
@media (max-width: 1024px) {
  .vote-section {
    padding: .5em;
    margin: 1em;
    width: 82vw; 
  }
}
@media (max-width: 768px) {
  .vote-section {
    width: 81vw; 
  }
}
@media (max-width: 555px) {
  .vote-section {
    padding: 0 1em;
    width: 90vw; 
  }
}
@media (max-width: 480px) {
  .vote-section {
    padding: 0 .5em;
    width: 92vw; 
  }
}

.voter-entry {
  background: #141E30;
  background: -webkit-linear-gradient(to right, #243B55, #141E30);
  background: linear-gradient(to right, #243B55, #141E30);
  padding: 2em;
  margin: 2em auto;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.voter-entry-title,
.voter-entry-name {
  text-align: center;
  margin: 0.5em 0;
  font-family: 'Arial', sans-serif;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.voter-entry-title {
  font-size: 2em;
  letter-spacing: 0.1em;
}
@media (max-width:500px) {
  .voter-entry-title {
    font-size: 1.5em;
  } 
}


.voter-entry-name {
  font-size: 1.2em;
  opacity: 0.85;
  color: #1777c6;
}
@media (max-width:500px) {
  .voter-entry-name {
    font-size: .9em;
  }
}

.voter-entry-buttons {
  display: flex;
  justify-content: center;
  margin: 2em auto;
  gap: 1.3em;
  filter: drop-shadow(1px 1px 1px #ffffff);
}

.vote-button,
.vote-button:hover {
  padding: 0.5em 1.5em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.vote-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
}

.voter-entry-buttons .vote-button {
  min-width: 7em;
  font-size: 2em;
  padding: 1.2em 0;
  border: none;
  box-shadow: none;
}
@media (max-width:768px) {
  .voter-entry-buttons .vote-button{
  font-size: 1.5em;
  padding: 1em 0;
  } 
}
@media (max-width:500px) {
  .voter-entry-buttons .vote-button{
  font-size: 1em;
  width: 1em;
  } 
}
@media (max-width:360px) {
  .voter-entry-buttons .vote-button{
  font-size: .8em;
  width: .7em;
  } 
}

.voter-entry-buttons .vote-button:first-child {
  color: black;
}

.voter-entry-buttons .vote-button:nth-child(2) {
  color: black;
}

/* ? Vote bars */
.vote-bars {
  display: flex;
  width: 100%;
  background-color: #f1f1f1;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: inset 5px 5px 10px #e1e1e1,
    inset -5px -5px 10px #ffffff;
}

.yes-bar,
.no-bar {
  height: 3em;
  color: white;
  line-height: 3em;
  text-align: center;
  border-radius: 10px;
}

.yes-bar {
  background-color: #ffd700;
  border-radius: 10px 0 0 10px;
  box-shadow: 5px 5px 10px #b89b00,
    -1px -1px 10px #ffff4d;
}

.yes-bar:hover {
  background-color: #ffec00;
  box-shadow: 0px 0px 12px #ffec00;
  transform: scale(1.01);
  transition: all 0.5s ease;
}

.no-bar {
  background-color: #000000;
  border-radius: 0 10px 10px 0;
  box-shadow: 5px 5px 10px #262626,
    -1px -1px 10px #4d4d4d;
}

.no-bar:hover {
  background-color: #333333;
  box-shadow: 0px 0px 12px #333333;
  transform: scale(1.01);
  transition: all 0.5s ease;
}



/*// Scrollbar styles */
* {
  scrollbar-width: thin;
  scrollbar-color: #324461 #1e2f3a; 
}

*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: #1e2f3a; 
}

*::-webkit-scrollbar-thumb {
  background-color: #324461; 
  border-radius: 4px;
  border: 2px solid #1e2f3a;
}
