

html, body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: small;
}

a, .btn-link {
  color: #0366d6;
}

.btn-primary {
  background-color: #1b6ec2;
  border-color: #1861ac;
  color: #fff;
}

.top-row {
  align-items: center;
  display: flex;
  height: 3.5rem;
}

.main {
  flex: 1;
}

.main .top-row {
  background-color: #f7f7f7;
  border-bottom: 1px solid #d6d5d5;
  justify-content: flex-end;
}

.main .top-row > a, .main .top-row .btn-link {
  margin-left: 1.5rem;
  white-space: nowrap;
}

.main .top-row a:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar {
  background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.sidebar .top-row {
  background-color: rgba(0, 0, 0, 0.4);
}

.sidebar .navbar-brand {
  font-size: 1.1rem;
}

.sidebar .oi {
  font-size: 1.1rem;
  top: -2px;
  vertical-align: text-top;
  width: 2rem;
}

.sidebar .nav-item {
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
}

.sidebar .nav-item:first-of-type {
  padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
  padding-bottom: 1rem;
}

.sidebar .nav-item a {
  align-items: center;
  border-radius: 4px;
  color: #d7d7d7;
  display: flex;
  height: 3rem;
  line-height: 3rem;
}

.sidebar .nav-item a.active {
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
}

.sidebar .nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.content {
  padding-top: 1.1rem;
}

.navbar-toggler {
  background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

app {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: -1.5rem;
}

.header-int {
  width: 100%;
  height: auto;
  position: relative;
}

.img-fluid {
  max-width: 80%;
  height: auto;
}

.mdc-text-field--outlined {
  height: 56px;
  width: 260px;
  max-width: 260px;
}

.navbar-header-bottom {
 margin-top: 40px; 
}

.ThanksForVoting {
  margin-top: 40px;
  background: #008acf;
  max-width: 100%;
}

header {
  position: relative;
  display: block;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 20px;
  width: 100% ;
}

 .header-image {
   width: 100%;
   height: auto;
 }

img {
    max-width: 100% !important
  }

/* styles for desktop devices */
@media only screen and (min-width: 992px) {
  .header-container {
    display: flex ;
    justify-content: center; /* Centers the image in the div */
    height: auto;
    margin-left: 0;
    margin-right: 0;
    min-width: 300px;
    overflow: hidden; /* Prevents overflow issues */

  }
  .header-container img {
    width: 100%;
    height: 100%;
  }
  .vote-container {
    position: absolute;
    /*top: 50%; !* Center vertically in the browser window *!*/
    left: 50%; /* Center horizontally in the browser window */
    /*transform: translate(-50%, -50%); !* Adjust for exact centering *!*/
    transform: translate(-50%); /* Adjust for exact centering */
    width: 400px; /* Fixed width for the voting div */
    /*text-align: center; !* Center the text inside the div *!*/
    min-width: 300px;
  }

  .header-container img {
    max-width: 100%; /* Image should resize fluidly */
  }
}
/* Media queries for mobile and tablet */
@media screen and (max-width: 767px) {
  body {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-container {
    width: 100%; /* Make the div full width on mobile */
  }
  .header-container img {
    width: 100%;
    height: 100%;
  }
  .vote-container {
    /*left: 0; !* Align to the left on mobile *!*/
    width: 100%; /* Make the div full width on mobile */
  }
  .header-image {
  }
}

.loading-animation {
  margin-left: 10px;
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.header-parent-image {
  position: relative;
  justify-content: center; /* Centers the image in the div */
  width: 100%; /* Full width */
  height: 10%;
}


form#joinForm input:invalid, form#videoForm input:invalid {
  outline:none; /* Removes default red rectangle :invalid styling in IE & Edge, which competes with the new :invalid border styling */
}
form#joinForm input:required:focus:invalid, form#videoForm input:required:focus:invalid { /* Shows red border only on :invalid fields with focus */
  border-color:#FF0000;
  border-width:2px;
  border-style:solid;
}
form#joinForm input:required:valid, form#videoForm input:required:valid { /* Shows green border on all :valid fields regardless of focus */
  border-color:#669e00;
  border-width:2px;
  border-style:solid;
}
.invalid input:required:invalid { /* iOS & OSX, shows red border on all :invalid fields regardless of focus */
  border-color:#FF0000;
  border-width:2px;
  border-style:solid;
}
.invalid input:required:valid { /* iOS & OSX, shows green border on all :valid fields regardless of focus */
  border-color:#669e00;
  border-width:2px;
  border-style:solid;
}