@font-face {
  font-family: "Valken";
  src: url("valkenregular.ttf") format("truetype");
}

* {
  font-family: sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f8fff8;
  color: #2a2a2a;
}

h1 {
  width: 800px;
  margin: 20px auto;
  font-weight: 400;
  color: #3cbf4d;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

#header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #440077; 
}

#header-logo {
  max-height: 15vh;  /* adjust as needed */
  height: auto;
  width: auto;
  flex-shrink: 0;     /* prevents the logo from shrinking too much in flex layout */
}

#menu {
  flex: 1;
  position: relative;
  font-family: "Valken", sans-serif;
}

#menu ul {
  padding: 0;
}

#menu ul li {
  display: inline-block;
  padding: 10px 20px;
}

#menu ul li hr {
  display: none;
}

a {
  color: #83c230;
  font-family: "Valken", sans-serif;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: #4e731e;
}

#main {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  background-color: #EDE0FF;
}

#hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
  color: #5f911b;
}

#menu-close {
  display: none;   /* hidden by default */
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
  color: #93e325;
}

@media (max-width: 768px) {
  #menu ul {
    display: none; /* hide menu by default */
    flex-direction: column;
    background: #8F00FF;
    position: absolute;
    top: 100%;       /* start right below #menu container */
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 1000;   /* overlay content */
  }

  #menu ul li {
    display: block;
    text-align: center;
    padding: 15px 0;
  }

  #hamburger {
    display: block;
  }
}



#content {
  width: 100%;
  max-width: 800px;
  margin: 0;
  background-color: #EDE0FF;
}

#content h2, #content h3 {
  font-family: "Valken", sans-serif;
  color: #5f911b;
}

input[type=text],
input[type=password],
textarea,
select {
  padding: 8px 10px;
  min-width: 400px;
  border: 2px solid #8ee97d;
  border-radius: 6px;
  background: #f5fff7;
  color: #2a2a2a;
}

input[type=submit] {
  min-width: 140px;
  padding: 8px;
  margin-top: 10px;
  background: #3cbf4d;
  color: white;
  border: 0;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

input[type=submit]:hover {
  background: #2a8c3e;
}

textarea {
  min-height: 150px;
}

label {
  margin: 5px 0px;
  display: block;
  color: #388e3c;
}

#footer {
  flex: 0 0 auto;
  border-top: 2px solid #c8f5c0;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}

#footer small {
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin: 10px auto;
  font-size: 10px;
  color: #6da66f;
}

.entry {
  float: left;
  height: 220px;
  width: 250px;
  margin-right: 20px;
  border: 2px solid #b5f2a8;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(145deg, #ecffef, #d7fcd9);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.entry .vote select {
  width: 200px;
  min-width: initial;
}

.entry .compo {
  font-size: 75%;
  font-weight: 100;
  color: #4caf50;
}

.entry .entrystatus {
  background: #3cbf4d;
  color: white;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 60%;
  font-weight: bold;
}

#livevoteContainer .votes {
  list-style: none;
  padding: 0;
}

#livevoteContainer #compoEntries {
  list-style: none;
  padding-left: 20px;
}

#livevoteContainer #compoEntries h3 {
  font-weight: 400;
  margin: 30px 0px 10px;
  color: #2a8c3e;
}

#livevoteContainer .votes .vote {
  display: inline-block;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  padding: 5px;
  text-align: center;
  margin: 3px;
  background: #eaffea;
  cursor: pointer;
  border: 1px solid #8ee97d;
  border-radius: 50%;
  transition: background 0.3s;
}

#livevoteContainer .votes .vote.selected {
  background: #3cbf4d;
  color: white;
}

#livevoteContainer .votes .vote.loading {
  animation-duration: 0.5s;
  animation-name: blink;
  animation-iteration-count: infinite;
  animation-timing-function: ease;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

#votesubmit,
#votingform h3,
#footer {
  clear: both;
}

#visitors td:nth-child(2) {
  font-weight: 700;
}

.success {
  color: #2e7d32;
  padding: 20px;
  border: 2px solid #66bb6a;
  border-radius: 6px;
  background: #eaffea;
}

.failure,
.error {
  color: #c62828;
  padding: 20px;
  border: 2px solid #ef5350;
  border-radius: 6px;
  background: #fff0f0;
}
