/*!
 * Wine on 49 Photo Contest Website css
 */

@charset "utf-8";

/* define custom fonts */
@font-face {
  font-family: 'Futura';
  src: url('../fonts/FuturaLight.otf');
}


/* globals */
body {
  min-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  background-color: #FDFDFD;
  margin: 0px;
  padding: 0px;
  overflow: visible;
}

h1 {
  font-family: Futura;
  font-size: 36px;
  font-weight: 400;
  margin: 0px;
}

h2 {
  font-family: Futura;
  font-size: 32px;
  font-weight: 200;
  margin-bottom: 1rem;
}


h3 {
  font-family: Futura;
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}


h4 {
  font-family: Futura;
  font-size: 20px;
  font-weight: 400;
  margin: 10px 0px 1rem 0px;
}

h5 {
  font-family: Futura;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 1rem 0;
}

h6 {
  font-family: Futura;
  font-size: 14px;
  font-weight: 200;
  margin: 10px 10px 20px 10px;
}

p {
  margin: 0px 0px 20px 0px;
  padding: 0px;
  font-family: Futura;
  font-weight: 200;
  font-size: 16px;
}

a {
  color: #F2EEE3;
}

a:link {
  text-decoration: none;
  color: #F2EEE3;
}

a:hover {
  text-decoration: none;
  color: #FDC27E;
}

ul {
  font-family: Futura;
  font-weight: 200;
  font-size: 16px;
  width: 40vw;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 1px solid #F2F0EF;
}

li {
  margin-bottom: 1rem;
}

input[type=submit] {
  background-color: #F2F0EF;
  border: 1px solid #050505;
  color: #5A6021;
  padding: 1rem 2rem;
  text-decoration: none;
  cursor: pointer;
  font-family: Futura;
  font-size: 20px;
  font-weight: 200;
}

input[type=submit]:hover {
  background-color: #5A6021;
  border: none;
  color: #F2F0EF;
  padding: 1rem 2rem;
  text-decoration: none;
  cursor: pointer;
}

input[type=submit]:disabled,
input[type=submit][disabled] {
  background-color: #909090;
  border: none;
  color: #5A6021;
  padding: 1rem 2rem;
  text-decoration: none;
  cursor: pointer;
}

/* text alignment classes */
.text_left {
  text-align: left;
}

.text_center {
  text-align: center;
}

.text_right {
  text-align: right;
}

/* color classes */
.color_green {
  color: #5A6021;
}

.color_white {
  color: #FDFDFD;
}

.color_lt_grey {
  color: #F2F0EF;
}

.color_black {
  color: #050505;
}

/* container classes */
.background_green {
  margin: 0;
  background: rgba(106,110,54, 1.0);
  height: 30vw;
  width: 100vw;
  border-bottom: 2px solid #5A6021;
}

.background_grey {
  display: flex;
  width: 100vw;
  background-color: #F2F0EF;
  position: relative;
  border-bottom: 2px solid #5A6021;
  margin: 0;
}

.background_grey_sticky {
  display: flex;
  width: 100vw;
  height: 240px;
  background-color: #F2F0EF;
  position: sticky;
  top: 0;
  border-bottom: 2px solid #5A6021;
  margin: 0;
  z-index: 50;
}

.banner_green {
  width: 100%;
  background-color: #5A6021;
}

.banner_full_green {
  width: 100%;
  height: 3rem;
  bottom: 2rem;
  line-height: 3rem;
  background-color: #5A6021;
  z-index: 5;
  position: absolute;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  margin: 0;
}

.button_box {
  width: 40vw;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-left: auto;
  margin-right: auto;
}

.card {
  width: 40vw;
  height: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  padding: 1rem;
  background-color: #FDFDFD;
}

.card input[type=email] {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.card input[type=password] {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.circle_overlay {
  position: absolute;
  width: 50vw;
  height: 50vw;
  top: 25%;
  left: 25%;
  border-radius: 50%;
  background-color: #684763;
  opacity: .9;
  z-index: 10;
}

.circle_text {
  position: absolute;
  top: 10%;
  left: 25%;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.custom_check {
  display: block;
  position: relative;
  padding-left: 5rem;
  cursor: pointer;
  font-family: Futura;
  font-size: 22px;
  font-weight: 200;
  margin-left: auto;
  margin-right: auto;
  width: 40vw;
}

/* hide default checkbox */
.custom_check input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.form_green {
  width: 80vw;
  height: auto;
  display: block;
  padding: 1rem;
  background-color: #5A6021;
  margin-left: auto;
  margin-right: auto;
}

.form_grey {
  width: 80vw;
  height: auto;
  padding: 1rem;
  background-color: #F2F0EF;
  margin-left: auto;
  margin-right: auto;
}

.form_grey_narrow {
  width: 32vw;
  height: 60%;
  padding: 1.5rem;
  background-color: #F2F0EF;
  margin-left: auto;
  margin-right: auto;
}

.form_white {
  width: 80vw;
  height: auto;
  padding: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.image_grid {
  width: 80%;
  height: 100%;
  display: grid;
  position: relative;
  column-gap: 1rem;
  row-gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  margin-left: auto;
  margin-right: auto;
  margin-top:3rem;
  align-items: center;
  object-fit: contain;
}

.image_grid_container {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image_grid_container input[type="checkbox"] {
  -webkit-appearance: none;
  position: absolute;
  display: none;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  top: 10px;
  right: 10px;
  background-color: #5A6021;
  color: #f1f1f1; 
  border: 2px solid #f1f1f1;
  border-radius: 50%;
  z-index: 10;
}


.image_grid_container input[type="checkbox"]:checked {
  display: block;
}


.input_grid {
  width: 40vw;
  height: 100%;
  display: grid;
  position: relative;
  column-gap: .5rem;
  row-gap: .5rem;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: repeat(4, 1fr);
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  align-items: center;
}

.input_grid_narrow {
  width: 34vw;
  height: 100%;
  display: grid;
  position: relative;
  column-gap: .5rem;
  row-gap: .5rem;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: repeat(3, 1fr);
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  align-items: center;
}


.input_block {
  width: 40vw;
  height: auto;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

.metric_box {
  width: 100%;
  height: 100%;
  background-color: #F2F0EF;
  border: 1px solid #5A6021; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.phase_card {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #FDFDFD;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.three_column_grid {
  top: 20px;
  width: 80vw;
  height: 100%;
  display: grid;
  position: relative;
  transform: translate(0%, -100%);
  column-gap: .5rem;
  row-gap: .5rem;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 2fr 2fr;
  grid-template-areas:
    "title title title"
    "main-left main-center main-right"
    ". counter .";
  margin-left: auto;
  margin-right: auto;
}

/* grid location classes */
.item_header {
  grid-area: title;
}

.item_main {
  grid-area: main;  
}

.item_left {
  grid-area: main-left;
  padding: .5rem;
}

.item_center {
  grid-area: main-center; 
  padding: .5rem;
}

.item_right {
  grid-area: main-right;
  padding: .5rem;
}

.item_counter {
  grid-area: counter;
}

/* property classes */
.center_image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.cover {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero {
  height: 16rem;
  max-height: 16rem;
}

.logo {
  width: 20%;
  padding: 20px;
}

.opacity_25 {
  opacity: .2;
}

.overlay {
  z-index: 5;
}

.required:after {
  content:"*";
  color: #860000;
}

.social {
  position: relative;
  width: 25%;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.spacer {
  margin-top: 2rem;
}

.spacer_large {
  margin-top: 4rem;
}

/* image classes */
.prize_images {
  width: 80vw;
  background-color: #ffffff;
  box-shadow: 0 0 25px rgba(17, 1, 68, 0.08);
  border-radius: 8px;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.image_container {
  display: block;
  width: 80vw;
  height: 50vw;
  background-color: #ffffff;
  box-shadow: 0 0 25px rgba(17, 1, 68, 0.08);
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

.image_container img {
  width: 80vw;
  height: 46vw;
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  cursor: pointer;
  object-fit: contain;
}

.image_container input[type="checkbox"] {
  -webkit-appearance: none;
  position: absolute;
  display: none;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  top: 10px;
  right: 10px;
  background-color: #5A6021;
  color: #f1f1f1; 
  border: 2px solid #f1f1f1;
  border-radius: 50%;
  z-index: 10;
}

.image_container input[type="checkbox"]:checked {
  display: block;
}

.image_caption {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  background-color: rgba(250,250,250,.7);
  padding: .5rem;
  
}

.image_wrapper {
  width: 80vw;
  position: relative;
  display: grid;
  place-items: center;
  gap: 15px;
  margin-left: auto;
  margin-right: auto;
}

.preview_image {
  width: 100%;
  display: none;
  margin-bottom: 2rem;
  object-fit: contain;
}

.select_button {
  display: none;
}

.select_button_label {
  display: block;
  width: 12rem;
  height: 2rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background: #F2F0EF;
  color: #5A6021;
  border: 1px solid #050505;
  font-family: Futura;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb {
  width: 100%;
  object-fit: contain;
  transition: 0.5s;
}

.thumb:hover {
  opacity: 0.7;
}

.inline_image {
  width: 80%;
  object-fit: contain;
}

.badge {
  position: relative;
  display: flex;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  bottom: 2rem;
  right: 2rem;
  background-color: #5A6021;
  color: #f1f1f1; 
  border: 1px solid #f1f1f1;
  border-radius: 50%;
  z-index: 10;
}

.badge.show {
  opacity: 1;
}

.badge_content {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

/* countdown timer */
#countdown ul {
  padding: 0px 0px 5px 0px;
  text-align:center;
}

#countdown ul li{
  list-style: none;
}

.hasCountdown {
  margin:0 0 30px 0;
}

.countdown_holding span {}


.countdown_row {
  clear: both;
  width: 20rem;
  height: 4rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
}

.countdown_section {
  display: block;
  float: left;
  text-align: center;
  color: #5A6021;
  border: 1px solid #666666;
  background-color: #F2F0EF;
  width: 4rem;
  height: 3rem;
  margin:0 .75rem 0 0;
  font-size:12px;
  font-family: Futura;
  line-height: .5rem;

}

.countdown_amount {
  color: #5A6021;
  font-size: 1.8rem;
  font-family: Futura;
  letter-spacing:3px;
  line-height: 2.3rem;
}

/* custom checkbox classes */
.check {
  position: absolute;
  top: 0;
  left: 2.5rem;
  height: 1.5rem;
  width: 1.5rem;
  background-color: #F2F0EF;
  border: 1px solid  #050505;
}

.custom_check:hover input ~ .check {
  background-color: #050505;
}

.custom_check input:checked ~ .check {
  background-color: #666666;
}

.check:after {
  content: "";
  position: absolute;
  display: none;
}

.custom_check input:checked ~ .check:after {
    display: block;
}

.custom_check .check:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}


/* input labels and fields classes */
.input_text {
  font-family: Futura;
  font-size: 18px;
  font-weight: 200;
  margin: 0px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 20; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 90%;
  max-height: 80vh;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* responsive layout */
@media screen and (max-width: 1280px) {
  h4 {
    margin: 0 0 0 0;
  }
  .background_green {
    height: 38vw;
  }
  
  .countdown_section {
    height: 3rem;
  }
  .countdown_amount {
    font-size: 1.6rem;
    letter-spacing:2px;
    line-height: 2.0rem;
  }
}

@media screen and (max-width: 1024px) {
  .background_green {
    height: 42vw;
  }
  
  .select_button_label {
    width: 9rem;
  }
}

@media screen and (max-width: 992px) {
  .background_green {
    height: 50vw;
  }
  
  .countdown_section {
    height: 2.4rem;
  }
  .countdown_amount {
    font-size: 1.4rem;
    letter-spacing:2px;
    line-height: 1.6rem;
  }

}

@media screen and (max-width: 880px) {
  .background_green {
    height: 74vw;
  }
  
  .countdown_section {
    height: 3rem;
  }
  .countdown_amount {
    font-size: 1.6rem;
    letter-spacing:2px;
    line-height: 2.0rem;
  }
  
  .input_text {
    font-size: 16px;
  }
  
  .three_column_grid {
    display: table-row;
    width: 80vw;
  }
}

@media screen and (max-width: 768px) {
  .background_green {
    height: 90vw;
  }
  
  .countdown_section {
    height: 2.2rem;
  }
  .countdown_amount {
    font-size: 1.2rem;
    letter-spacing:2px;
    line-height: 1.6rem;
  }
  
  .select_button_label {
    width: 6rem;
  }
}

@media screen and (max-width: 690px) {
  .background_green {
    height: 100vw;
  }
  
  .input_grid {
    width: 60vw;
  }

  .input_text {
    font-size: 14px;
  }

}

@media screen and (max-width: 576px) {
  .background_green {
    height: 120vw;
  }
  
  .countdown_section {
    height: 2rem;
  }
  .countdown_amount {
    font-size: 1rem;
    letter-spacing:2px;
    line-height: 1.4rem;
  }

}

@media screen and (max-width: 490px) {
  .background_green {
    height: 180vw;
  }
  
  .countdown_section {
    height: 2rem;
  }
  .countdown_amount {
    font-size: 1rem;
    letter-spacing:2px;
    line-height: 1.4rem;
  }
  
  .button_box {
    width: 60vw;
  }
}

@media screen and (max-width: 320px) {
  .background_green {
    height: 240vw;
  }
  
  .countdown_section {
    height: 1.6rem;
  }
  .countdown_amount {
    font-size: .8rem;
    letter-spacing:2px;
    line-height: 1.2rem;
  }

}