@import url("https://fonts.googleapis.com/css2?family=Alice&display=swap");
*::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
*::-webkit-scrollbar-track {
  border-radius: 5px;
  background-image: url(../media/extra_long_dark_blue_award_pattern.png);
}

*::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background-color: #cda757;
}

body {
  overflow-x: hidden;
  background-image: url(../media/extra_long_dark_blue_award_pattern.png);
  padding: 0;
  margin: 0;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1920px;
  height: 7800px;
  padding: 8px;
  box-sizing: border-box;
}

.desc {
  width: 90%;
  border: 4px solid #c9a55f;
  position: relative;
  padding: 10px;
  -webkit-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
}

.categories_container {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  gap: 60px;
  margin-bottom: 30px;
}
.categ_1 {
  margin-top: 80px;
  display: flex;
  gap: 80px;
}

.categ_2 {
  display: flex;
  gap: 80px;
}

.desc h1 {
  color: white;
  font-family: "Alice";
  font-weight: lighter;
  margin-top: 36px;
}

.categ {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 200px;
  background-color: #0d1e66;
  border: 3px solid #cda757;
  transition: 0.2s;
  -webkit-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
}

.categ:hover {
  background-color: #243a9b;
}

.categ_text {
  position: absolute;
  color: white;
  font-family: "Alice";
  font-weight: lighter;
  font-size: 20px;
  text-align: center;
  font-weight: bolder;
}

.award_container {
  display: flex;
  align-items: center;
  position: relative;
  flex-direction: column;
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
}

.award_title {
  color: white;
  font-family: "Alice";
  font-weight: lighter;
  font-size: 48px;
  text-align: center;
  font-weight: bolder;
}

.award {
  display: flex;
  gap: 50px;
  width: 100%;
}

.award_media {
  display: grid;
  grid-template-columns: 380px 380px;
  gap: 80px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#award_media_vert {
  display: flex;
  gap: 50px;
  flex-direction: column;
}

#award_media_vert .media {
  width: 100%;
  height: auto;
}

#award_media_vert .media img {
  width: 100%;
  object-fit: cover;
}

.media {
  width: 380px;
  height: 220px;
  border: 4px solid #c9a55f;
  -webkit-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  justify-self: center;
  align-self: center;
  position: relative;
}
.media img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  transition: 0.2s;
}
.media img:hover {
  opacity: 0.7;
}

.media h1 {
  position: absolute;
  bottom: -40px;
  width: 100%;

  color: white;
  font-family: "Alice";
  font-weight: lighter;
  font-size: 20px;
  text-align: center;
  font-weight: bolder;
}

#image-viewer {
  display: none;
  position: fixed;
  z-index: 9;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}
.modal-content {
  animation-name: zoom;
  animation-duration: 0.6s;
}
@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
#image-viewer .close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}
#image-viewer .close:hover,
#image-viewer .close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}

.award_vote {
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  justify-content: space-between;
  box-sizing: border-box;
}

.award_desc {
  color: white;
  font-family: "Alice";
  font-weight: lighter;
  font-size: 20px;
  justify-self: flex-start;
  font-weight: bolder;
  margin-top: -4px;
  word-spacing: 8px;
}

.award_input {
  position: relative;
  width: 60%;
  max-width: 400px;
  height: 60px;
  border: 4px solid #c9a55f;
  background-color: #0d1e66;
  -webkit-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
}

input[type="text"] {
  width: 100%;
  height: 100%;
  background-color: #0d1d6600;
  transition: 0.2s;
  color: white;
  font-family: "Alice";
  font-size: 18px;
  text-align: center;
}

input[type="text"]:focus {
  background-color: #243a9b;
}

input::placeholder {
  color: white;
  font-family: "Alice";
  font-size: 18px;
  text-align: center;
}

.award_submit {
  color: white;
  font-family: "Alice";
  font-size: 18px;
  text-align: center;
  width: 40%;
  max-width: 280px;
  height: 60px;
  border-radius: 40px;
  border: 4px solid #c9a55f;
  background-color: #0d1e68;
  transition: 0.2s;
  -webkit-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
}

.award_submit:hover {
  background-color: #243a9b;
}

.award_inputs {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.scroll_back {
  position: fixed;
  bottom: 15px;
  left: 15px;
  background-color: #cda757;
  width: 70px;
  height: 70px;
  border-radius: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  -webkit-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: -4px 7px 5px 0px rgba(0, 0, 0, 0.75);
  transition: 0.2s;
}

.scroll_back:hover {
  background-color: #e8de4a;
}

.scroll_back img {
  width: 40px;
  height: 40px;
}

.loading {
  display: none;
  position: absolute;
  right: -80px;
  bottom: 0;
}

.loading .line:nth-last-child(1) {
  animation: loadingA 1.5s 1s infinite;
}
.loading .line:nth-last-child(2) {
  animation: loadingA 1.5s 0.5s infinite;
}
.loading .line:nth-last-child(3) {
  animation: loadingA 1.5s 0s infinite;
}

@keyframes loadingA {
  0% {
    height: 15px;
  }
  50% {
    height: 35px;
  }
  100% {
    height: 15px;
  }
}

.line {
  display: inline-block;
  width: 12px;
  height: 15px;
  border-radius: 15px;
  background-color: #cda757;
}

.award_input img {
  position: absolute;
  right: -80px;
  bottom: 0;
  width: 50px;
}

.notyf__toast {
  border: 2px solid #c9a55f;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.footer_center {
  width: 40%;
  height: auto;
}

.footer {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Success animation for vote submission */
@keyframes vote-success {
  0% { box-shadow: 0 0 0 0 rgba(75, 181, 67, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(75, 181, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(75, 181, 67, 0); }
}

.vote-success {
  animation: vote-success 2s ease-out;
  border-color: #4BB543 !important;
}

/* Error animation for failed votes */
@keyframes vote-error {
  0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 51, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

.vote-error {
  animation: vote-error 2s ease-out;
  border-color: #FF3333 !important;
}

/* Disabled state for already voted */
.voted-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Vote count badge */
.vote-count {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #cda757;
  color: #0d1e66;
  padding: 5px;
  border-radius: 50%;
  min-width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  border: 2px solid #0d1e66;
}
