body, html {
  display: block;
  position: relative;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-family: Arial, san-serif;
}

.a11y-heading {
  display: block;
  position: absolute !important;
  clip: rect(1px 1px 1px 1px);
  padding: 0 !important;
  margin: 0 !important;
  width: 1px !important;
  height: 1px !important;
}

.site-content {
  display: block;
  position: relative;
  width: 100%;  
  height: auto;
  padding: 0;
  margin: 0 auto;
  overflow: hidden;
  background-color: #f2f3f4;
  min-height: calc(100vh - 525px);
}

.contest-list {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0;
}

.contest {
  display: block;
  position: relative;
  border: 1px solid #ccc;
  padding: 1rem;
  margin: 1rem;
  box-sizing: border-box;
  /* box-shadow: 0px 0px 5px rgb(0,0,0,0.26); */
  border-radius: 1rem;
  overflow: hidden;
  background-color: #fafbfc;
}
.contest h2 {
  font-weight: 700;
  font-size: 2rem;
  line-height: 2.25rem;
  margin: 0 0 0.5rem 0;
  padding: 0;
}

.contest .contest-holder {
  display: grid;
  position: relative;
  grid-template-columns: 2fr 1fr;
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
}

.contest .info-block {
  display: block;
  position: relative;
  margin-left: 0.5rem;
}
.contest .contest-description {
  display: block;
  position: relative;
  margin-bottom: 1rem;
}

.contest .contest-buttons {
  display: flex;
  position: relative;
}
.contest-button {
  display: inline-block;
  position: relative;
  padding: 0.75rem 1.5rem;
  background-color: #cfcfd1;
  margin-right: 1rem;
  text-decoration: none;
  color: #000;
  border-radius: 0.5rem;
  transition: background-color 0.26s ease;
}
.contest-button:hover {
  background-color: #999;
}
.contest-button.enter {
  background-color: #eb1d5d;
  color: #fff;
}
.contest-button.enter:hover {
  background-color: #ab093a;
  color: #fff;
}


.contest .thumbnail-block {
  display: block;
  position: relative;
  padding: 0;
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
}
.contest .thumbnail-block img {
  display: block;
  position: relative;
  padding: 0;
  margin: 0;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  overflow: hidden;
}
.contest .thumbnail-block figcaption {
  display: block;
  position: relative;
  margin: 0.5rem 0 0 0;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  line-height: 1rem;
  border-radius: 0.5rem;
  color: #fff;
}
.contest .thumbnail-block figcaption.open {
  background-color: #eb1d5d;
}
.contest .thumbnail-block figcaption.upcoming {
  background-color: #ab093a;
}
.contest .thumbnail-block figcaption.closed {
  background-color: #ff0000;
}

@media screen and (max-width: 640px) {
  .contest .contest-holder {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 525px) {

  .contest .contest-holder {
    grid-template-columns: 1fr;
  }

  .contest .info-block {
    margin-left: 0rem;
    order: 2;
  }
  .contest .thumbnail-block {
    order: 1;
    border-radius: 0;
  }
  .contest .thumbnail-block figcaption {
    position: absolute;
    background-color: rgba(0,0,0,0.73);
    color: #fff;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem;
    z-index: 2;
    font-size: 0.75rem;
    line-height: 0.85rem;
    border-radius: 0 0 0.5rem 0.5rem;
  }

  .contest .contest-buttons {
    justify-content: center;
  }

}
