/* The usual suspects
Author: Dinah C, 2021-01-13
*/
a,
img {
  border: 0;
  text-decoration: none;
}

.page-title__2020 h1 {
  background-color: transparent;
  border-image-slice: 25 125 25 125 fill;
  border-image-width: 20px 100px 20px 100px;
  border-image-source: url("/neopies/y23/images/title_bg.png");
  border-image-repeat: stretch stretch;
  padding: 15px 5px;
  width: 100%;
  max-width: 600px;
  margin: auto;
  z-index: 5;
  display: block;
  color: white;
  box-sizing: border-box;
}
.page-title__2020 {
  margin: 5px auto 0;
}
@media screen and (min-width: 324px) and (max-width: 500px) {
  .page-title__2020 h1 {
    font-size: 15pt;
  }
}
.q-button__2020 {
  z-index: 5;
  top: 5px;
  right: 15px;
}
.q-button__2020.neopies-faq {
  display: none !important;
}

@media screen and (min-width: 482px) {
  .q-button__2020 {
    display: none !important;
    top: 15px;
  }
  .q-button__2020.neopies-faq {
    display: unset !important;
  }

}

.flavor-text {
  border-image-slice: 150 99 48 99 fill;
  border-image-width: 75px 50px 25px 50px;
  border-image-source: url("/neopies/y23/images/flavortext_bg3.png");
  border-image-repeat: stretch stretch;
  border-image-outset: 25px 0 0 0;
  position: relative;
  padding: 5px 15px 25px;
  z-index: 4;
}
.flavor-text .text-body {
  background: #fff;
  border-radius: 10px;
  box-shadow: 5px 5px 5px #fff, 5px -5px 5px #fff, -5px 5px 5px #fff,
    -5px -5px 5px #fff;
  width: 80%;
  margin: auto;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  width: max-content;
  margin: 20px auto 0;
}

/* Canvas */
#canvas {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
#canvas.premium {
  margin: 0 auto;
}
#canvas > .body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #052956;
  padding: 20px;
  border-radius: 2px;
  box-shadow: 4px 4px 1px #052956 inset, -4px 4px 1px #052956 inset,
    4px -4px 1px #052956 inset, -4px -4px 1px #052956 inset,
    10px 10px 1px #6a9ecb inset, -10px 10px 1px #6a9ecb inset,
    10px -10px 1px #6a9ecb inset, -10px -10px 1px #6a9ecb inset;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

/* Banner */
.header {
  position: relative;
}
.container {
  background: url("/neopies/y23/images/curtain_bg.png");
  background-size: 100% 100%;
}
.header .banner {
  width: 100%;
  height: 0;
  padding-top: 30%;
  background: url("/neopies/y23/images/banner_stage.png") no-repeat center;
  background-size: 100% 100%;
}
.curtain-right,
.curtain-left {
  position: absolute;
  top: 50px;
  left: 0;
  background: url("/neopies/y23/images/banner_curtain.png") no-repeat left;
  background-size: 100% 100%;
  width: 50%;
  height: 0;
  padding-top: 35%;
  z-index: 2;
}
.curtain-left {
  transform: scaleX(-1);
  right: 0;
  left: unset;
}
@media screen and (max-width: 370px) {
  .curtain-right,
  .curtain-left {
    padding-top: 50%;
  }
}
.header .logo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background: url("/neopies/y27/images/neopies_logo.png") no-repeat center;
  background-size: contain;
  width: 50%;
  max-width: 400px;
  height: 0;
  padding-top: 15%;
  z-index: 3;
}
.header .ellsworth {
  position: absolute;
  left: 0;
  bottom: -10%;
  background: url("/neopies/y23/images/ellsworth_banner.png") no-repeat 0px;
  background-size: 200% 100%;
  width: 25%;
  height: 0;
  padding-top: 30%;
  margin-left: 5%;
  animation: ellsworthSprite 3.5s steps(2) infinite;
  z-index: 3;
}

@keyframes ellsworthSprite {
  to {
    background-position: 200%;
  }
}

.vip-raffle {
  position: absolute;
  right: 0;
  bottom: 30px;
  background: url("/neopies/y23/images/vip_raffle_icon.png") no-repeat left;
  background-size: 200% 100%;
  width: 80px;
  height: 0;
  padding-top: 80px;
  margin-right: 5%;
  cursor: pointer;
  z-index: 3;
}
.vip-raffle:hover {
  background-position: right;
}

.vip-raffle1 {
  position: absolute;
  right: 0;

  background: url("/neopies/y23/images/vip_raffle_icon.png") no-repeat left;
  background-size: auto;
  background-size: 200% 100%;
  width: 60px;


  cursor: pointer;
  z-index: 35;
  top: -4px;
  height: 60px;
  left: 0;
}
.vip-raffle1:hover {
  background-position: right;
}

@media screen and (max-width: 480px) {
  .vip-raffle {
    bottom: 5px;
    right: 10px;
    width: 60px;
    padding-top: 60px;
  }
  .header .ellsworth {
    margin-left: 0;
  }
  .header .logo {
    padding-top: 25%;
  }
  #lateBallotInfoPopup .q-button__2020.neopies-faq {
    display: block !important;
  }
}
@media screen and (max-width: 350px) {
  .vip-raffle {
    bottom: 0;
    right: 5px;
    width: 50px;
    padding-top: 50px;
  }
}
@media screen and (max-width: 270px) {
  .vip-raffle {
    display: none;
  }
}

/* Ballot, Awaiting results, Winners Announced */
#ballot,
#awaiting-results,
#winners-announced {
  position: relative;
}

.status-container {
  background-color: #c2e3f2;
  background-image: url("https://images50.neopets.com/neopies/y23/images/award_pattern.png");
  background-size: 50px;
  width: 100%;
  position: relative;
  padding: 0 1% 1%;
  border: 2px solid #87adbe;
  border-radius: 10px;
  box-shadow: 5px 5px 0 #c2e3f2, -5px 5px 0 #c2e3f2, 5px -5px 0 #c2e3f2,
    -5px -5px 0 #c2e3f2;
  margin: auto;
  box-sizing: border-box;
}
.status-header h2 {
  margin: auto;
  color: #071f37;
  font-family: "Cafeteria", "Arial Bold", sans-serif;
  font-size: 28pt;
  font-weight: lighter;
  width: fit-content;
}
.category-container {
  background-color: #e4f6fe;
  border: 2px solid #87adbe;
  border-radius: 5px;
}
.category {
  color: #071f37;
  font-family: "Cafeteria", "Arial Bold", sans-serif;
  font-size: 14pt;
  font-weight: lighter;
  position: relative;
}
.today-stamp {
  position: absolute;
  left: -40px;
  top: -20px;
  z-index: 2;
  background: url("/neopies/y23/images/todays_category.png") no-repeat;
  background-size: cover;
  width: 90px;
  height: 90px;
  margin-left: 5%;
  transform: rotate(-20deg);
}
.category-header {
  border-bottom: 1px solid #87adbe;
  width: 80%;
  margin: auto;
  display: flex;
}
.category-header h3 {
  margin: auto;
  padding: 10px 0 0;
  text-align: center;
  font-size: 20pt;
  font-weight: lighter;
}
@media screen and (max-width: 480px) {
  .category-header h3 {
    max-width: 210px;
    font-weight: bold;
  }
  .today-stamp {
    background-size: 70%;
  }
  .status-header h2 {
    font-size: 24pt;
    font-weight: bold;
  }

  #tooltip {
    left: 80px !important;
  }
}
.clock {
  color: #87adbe;
}
.clock .title {
  display: block;
  font-size: 11pt;
  text-transform: uppercase;
}
.clock .time {
  display: block;
  text-align: center;
  color: #3b7088;
  background-color: #c2e3f2;
  border-radius: 5px;
}
.category.active {
  padding: 10px 0;
}

.hide .category,
.hide .message {
  display: none;
}
.show .category,
.show .message,
.show .submit {
  display: block;
}

/* NOMINEES */

#ballot .category-container:not(:last-child), #winners-announced .category-container:not(:last-child), #awaiting-results .category-container:not(:last-child) {
  margin-bottom: 10px;
}

.options {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 15px 0;
}
.nominee {
  width: 100%;
  background: linear-gradient(180deg, transparent, #6a9ecb) no-repeat;
  border: 2px solid #c2e3f2;
  border-radius: 7px;
  box-sizing: border-box;
  position: relative;
}
#ballot .nominee, #winners-announced .nominee.hasLateBallot {
  cursor: pointer;
}
.nominee .yourVote {
  display: none;
}
.nominee.selected .yourVote,
.winningVote {
  background-color: #c2e3f2;
  border: 2px solid #87adbe;
  border-radius: 1px 1px 7px 7px;
  width: 95%;
  box-sizing: border-box;
  margin: 0 auto 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: unset;
}
.nominee.selected .yourVote .voteText,
.winningVote .voteText {
  border-width: 1px 0;
  border-color: #87adbe;
  border-style: solid;
  margin: 3px auto;
  width: fit-content;
  font-size: 16pt;
}
.nominee.selected {
  border: 2px solid #367592;
}
.nominee.selected .yourVote {
  border-color: #7ca6b8;
  background-color: #367592;
}
.nominee.selected .yourVote .voteText {
  border-color: #7ca6b8;
  color: #fff;
}
#winners-announced .nominee.winner {
  border: 2px solid #f3bd3a;
}
#winners-announced .nominee.winnerSameDayVote {
  outline: 4px solid #f3bd3a;
}
#winners-announced .nominee.winnerSameDayVote .winningVote {
  border-color: #b06617;
  background-color: #f3bd3a;
}
#winners-announced .nominee.winner .winningVote {
  border-color: #b06617;
  background-color: #f3bd3a;
}
#winners-announced .nominee.winner .winningVote .voteText {
  border-color: #b06617;
  color: #414141;
}
#winners-announced .nominee.winnerSameDayVote .winningVote .voteText {
  border-color: #b06617;
  color: #414141;
}
.activeOption,
.previousOption {
  text-align: center;
  width: 150px;
}
.activeOptionImage,
.previousOptionImage {
  width: 100%;
  height: 0;
  position: relative;
  border-radius: 7px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-top: 100%;
}
#ballot .options input[type="radio"] {
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
}
.submit {
  text-align: center;
  margin: 15px 0;
}
#ballot .submit .button-grid2__2020 {
  max-width: 600px;
  grid-gap: 10%;
}
#submitVotes,
#submitVote,
#clearVote,
#vipRaffleButton,
#collectPremiumPrize {
  background-color: lightgrey;
  border-image-slice: 25 25 25 25 fill;
  border-image-width: 25px 25px 25px 25px;
  border-image-source: url("/neopies/y23/images/button_fancy.png");
  border-image-repeat: stretch stretch;
  padding: 15px 5px;
  border-radius: 50px;
}
#submitVotes.btn-active,
#submitVote.btn-active,
#clearVote.btn-active,
#vipRaffleButton.btn-active,
#collectPremiumPrize.neopies-btn {
  filter: sepia(100%) saturate(400%) brightness(85%) hue-rotate(350deg);
  -webkit-filter: sepia(100%) saturate(400%) brightness(85%) hue-rotate(350deg);
  background-color: goldenrod;
}
#ballot .category p.message,
#awaiting-results .category p.message {
  margin: 10px 40px;
  display: none;
}

/* Winners Announced */
.trophy {
  width: 37px;
  height: 40px;
  background: url("/neopies/y23/images/neopies_award.gif") no-repeat;
  background-size: 100%;
  position: absolute;
  top: 70%;
  left: 5px;
  z-index: 1;
}
.trophy.dung {
  background-image: url("/neopies/y23/images/dung_award.gif");
}
.meter {
  width: 90%;
  height: 20px;
  background: #313131;
  border: 2px solid #fff;
  border-radius: 20px;
  position: relative;
  margin: 10px auto 0;
}
.meter .bar {
  max-width: 100%;
  height: 20px;
  background: #63ccff;
  border-radius: 20px;
  position: absolute;
}
.meter .percent {
  width: 100%;
  text-align: center;
  position: absolute;
  color: #fff;
}

/* Pane Button */
a.pane-btn {
  color: #87adbe;
  border: 2px solid #87adbe;
  border-radius: 7px;
  box-shadow: inset 2px 2px 3px #b2d6e6, inset -2px -2px 3px #b2d6e6;
  display: block;
  width: 30px;
  height: 30px;
  position: absolute;
  right: 0;
  top: 0;
  margin: 5px 1%;
  cursor: pointer;
  font-size: 1.5em;
  box-sizing: border-box;
  background-color: #c2e3f2;
}
a.pane-btn span {
  position: absolute;
  transition: 300ms;
  background: #87adbe;
  border-radius: 2px;
}
a.pane-btn.maximize span:first-child,
a.pane-btn.minimize span:first-child {
  /* Create the "+" shape by positioning the spans absolutely */
  top: 25%;
  bottom: 25%;
  width: 10%;
  left: 45%;
}
a.pane-btn.maximize span:last-child {
  left: 25%;
  right: 25%;
  height: 10%;
  top: 45%;
}
a.pane-btn.minimize span {
  /* Morph the shape when the button is clicked */
  transform: rotate(90deg);
}
a.pane-btn.minimize span:last-child {
  left: 50%;
  right: 50%;
}

/* Tooltip */
#tooltip {
  font-size: 11pt;
  font-family: "MuseoSansRounded500", "Arial", sans-serif;
  color: #193b5e;
  background-color: #e4f6fe;
  border: 2px solid #367592;
  box-shadow: 1px 1px 4px #193b5e;
}
#tooltip .title {
  color: #071f37;
  font-size: 12pt;
}
.tooltip-icon {
  opacity: 0.9;
  font-weight: bolder;
  position: absolute;
  bottom: 2px;
  right: 2px;
  color: #fff;
  font-size: 20pt;
  line-height: 20pt;
  z-index: 5;
}
.selected .tooltip-icon,
.winner .tooltip-icon {
  top: 55%;
}

/* Popup */
.neopies-popup {
	border-image: url("https://images50.neopets.com/neopies/y23/images/flavortext_bg.png")
	150 99 48 fill / 75px 50px 25px / 0 stretch;
	border-color: transparent;
	border-width: 0;
	box-shadow: unset;
}
.neopies-popup .popup-exit {
  width: 40px;
  height: 35px;
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 5;
}
.neopies-popup .popup-exit-icon {
  background: url("/themes/h5/basic/images/x-icon.svg") center center no-repeat;
  background-size: contain;
  width: 18px;
  height: 20px;
  margin: 5px auto auto;
}
.neopies-popup .popup-body__2020 {
  padding: 0;
  margin: 30px 35px;
  box-shadow: 5px 5px 5px #fff, -5px -5px 5px #fff, 5px -5px 5px #fff,
    -5px 5px 5px #fff;
  border-radius: 30px;
  border: 1px solid #fff;
  scrollbar-color: lightgray white;
  scrollbar-width: thin;
}
/* width */
.neopies-popup .popup-body__2020::-webkit-scrollbar {
  width: 10px;
}
/* Track */
.neopies-popup .popup-body__2020::-webkit-scrollbar-track {
  background: white;
}
/* Handle */
.neopies-popup .popup-body__2020::-webkit-scrollbar-thumb {
  background: lightgrey;
}
/* Handle on hover */
.neopies-popup .popup-body__2020::-webkit-scrollbar-thumb:hover {
  background: grey;
}
.neopies-popup h3 {
  color: #071f37;
  font-family: "Cafeteria", "Arial Bold", sans-serif;
  font-size: 20pt;
  font-weight: lighter;
  padding: 10px 0;
  margin: 0 auto;
}
.neopies-popup .neopies-popup-body {
  position: relative;
  right: 0;
  margin-left: auto;
  width: 55%;
}
.neopies-popup .neopies-popup-body p {
  width: 100%;
  padding: 0;
  margin: auto;
}
.neopies-popup .neopies-btn {
  border-image-slice: 25 25 25 25 fill;
  border-image-width: 25px 25px 25px 25px;
  border-image-source: url("/neopies/y23/images/button_square.png");
  border-image-repeat: stretch stretch;
  padding: 15px 5px;
  filter: sepia(100%) saturate(400%) brightness(85%) hue-rotate(350deg);
  -webkit-filter: sepia(100%) saturate(400%) brightness(85%) hue-rotate(350deg);
  background-color: goldenrod;
  border-radius: 10px;
  color: black !important;
}
.neopies-popup .neopies-btn.change-btn {
  filter: unset;
  -webkit-filter: unset;
  background: lightgrey;
}
.disabled-btn {
  filter: unset !important;
  -webkit-filter: unset !important;
  background: lightgrey !important;
}
.errMsg {
  color: red;
}
.neopies-popup .ellsworth-popup {
  width: 45%;
  height: 0;
  padding-top: 35%;
  background: url("/neopies/y23/images/ellsworth_popup.png") no-repeat right top;
  background-size: 100% 115%;
  border-radius: 0 0 0 60px;
  position: absolute;
  left: 10px;
  bottom: 25px;
  z-index: 5;
}

@media screen and (max-width: 580px) {
  .neopies-popup .neopies-popup-body {
    margin: 20px auto;
    width: 90%;
  }

  .neopies-popup .ellsworth-popup {
    display: none;
  }
}

/* Prizes */
.neopies-popup .prizes,
.neopies-popup .bonus {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.neopies-popup .prizes .prize,
.neopies-popup .bonus .prize,
.neopies-popup .bonus .bonus-prize {
  max-width: 150px;
}

.neopies-popup .prizes .prize .image,
.neopies-popup .bonus .prize .image,
.neopies-popup .bonus .bonus-prize .image {
  border: 1px solid;
  margin-bottom: 5px;
}

.neopies-popup .prizes .prize .name,
.neopies-popup .bonus .prize .name,
.neopies-popup .bonus .bonus-prize .name {
  font-weight: bold;
}

/* FAQ Page */
.faq-container {
  border-image-slice: 150 99 48 99 fill;
  border-image-width: 75px 50px 25px 50px;
  border-image-source: url("/neopies/y23/images/flavortext_bg3.png");
  border-image-repeat: stretch stretch;
  border-image-outset: 25px 0 0 0;
  padding: 10px 15px 25px;
}
.faq-container p {
  padding: 15px 0;
}
.faq-container p:not(:last-child) {
  border-bottom: 1px solid #c2e3f2;
}

.back-button-circle__2020 {
  z-index: 6;
}

@media screen and (min-width: 600px) {
  .faq-container {
    width: 80%;
    margin: auto;
  }
  .faq-container p {
    width: 80%;
  }
}

.item-awarded {
  margin-top: 10px;
}

.lateBallotText {
  background: #fed6b6;
  padding: 5px;
  font-weight: bold;
  border-radius: 5px;
}

.lateBallotLink {
  color: #005ebb;
}

#vipRaffleButton {
  width: 250px;
  margin: auto;
  text-decoration: none !important;
  color: black;
}



.neopies-itemStat-grid {
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 6px;
  max-width: 300px;
  width: 90%;
  margin: 20px auto auto;
}

.neopies-itemStat {
  background-color: #E6E4DD;
  border-radius: 15px;
  font-family: "MuseoSansRounded700", 'Arial', sans-serif;
  line-height: 25px;
}

.neopies-itemStat-num {
  line-height: 25px;
}

.neopies-itemBox {
  width: 90%;
  height: auto;
  margin: auto;
  max-width: 160px;
}

.lateBallotInfoLink {
  color: #960;
  cursor: pointer;
}

.neopies-itemLg {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

@media screen and (max-width: 481px) {
  #pageDesc, .mobileBtns {
    display: block;
    margin-top: 24px;
  }
}

@media screen and (max-width: 481px) {
  .category-header {
    flex-direction: column;
  }

  .clock {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.nominee.selected.sameDayVote {
  border: 2px solid darkblue;
}

.nominee.selected.notSameDayVote {
  border: 2px solid #41addf;
}
