html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #FFCE53 url('../img/ytong_kolesarjenje_bckgrnd.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

h1,h2,h3,p,li,strong {
  color: #040505;
}

@media screen and (max-width: 667px) {
  body { height: auto; }
}

body {
  font-family: 'DIN Pro', sans-serif;
  font-size: 16px;
}
h1 {
  font-size: 4rem;
  text-transform: uppercase;
  text-decoration: underline;
  font-family: 'DIN Pro Black', sans-serif;
}
h2 {
  font-size: 3.4rem;
  font-family: 'DIN Pro Bold', sans-serif;
}
p {
  font-size: 1.4rem;
}
.success-message .button {
  border-radius: 50px;
  display: inline-block;
  padding: 1rem 2rem;
}
.font-weight-bold {
  font-family: 'DIN Pro Black', sans-serif;
}
.counter .item {
  background-color: #040505;
  color: #fcb30a;
  width: 75px;
  padding: 10px 0;
  border-radius: 30px;
  margin-right: 10px;
}

body > .container {
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  -ms-flex-align: flex-start;
  align-items: flex-start;

  position: relative;
  padding: 3rem;
  width: 1420px;
  max-width: 100%;
  min-height: 100vh;
}

body > .container .row {
  width: 100%;
}

.container.home,
.container.game,
.container.quiz {
  /*height: 100vh;*/
  /*height: 100%;*/
}
.container.game {
  background: #FFCE53;
  background-image: none;
}

.container.quiz .m-t-small a {
  color: #040505;
  text-decoration: underline;
}
.container.quiz .main-big-image {
  margin-top: 2rem;
  width: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}
.container.quiz .main-big-image .mbi-container {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 40%;
  background: white;
  padding: 1rem;
  transform: translateY(50%);
}
.container.quiz .main-big-image .mbi-container strong {
  font-size: 1rem;
  font-family: 'DIN Pro Bold', sans-serif;
}
.container.quiz .main-big-image .mbi-container p {
  margin: 0;
}
.container.quiz .row {
  margin-left: 0;
  margin-right: 0;
}

header img {
  width: 10rem;
}

.main h2 {
  margin-top: 3rem;
}
.main h1 {
  line-height: 1.3;
}

.m-t-0 {
  margin-top: 0 !important;
}
.m-t-big {
  margin-top: 5rem !important;
}
.m-t-small {
  margin-top: 2rem;
}

.button {
  transition: all 0.2s ease-in-out;
  padding: 1rem 1rem;
  text-transform: uppercase;
  text-decoration: none;
  background-color: #040505;
  color: #FFCE51;
  font-family: 'DIN Pro Medium', sans-serif;
  font-size: 1rem;
  margin: 1rem 0;
  display: block;
  text-align: center;
}
.button:hover {
  color: #040505;
  background-color: white;
  text-decoration: none;
}
.button.auto-width {
  display: inline-block;
  width: auto;
}

.home .exposed-circle {
  border-radius: 50%;
  background: white;
  width: 15rem;
  height: 15rem;
  position: absolute;
  right: 3rem;
  top: 3rem;
  transform: rotate(15deg);
  -webkit-transform: rotate(15deg);
  -moz-transform: rotate(15deg);
  -o-transform: rotate(15deg);
  -ms-transform: rotate(15deg);
  padding: 4.5rem 1.5rem 2rem 1.5rem;
}
.home .exposed-circle h2,
.home .exposed-circle p {
  text-align: center;
}
.home .exposed-circle h2 {
  text-transform: uppercase;
  font-family: 'DIN Pro Bold', sans-serif;
  margin-bottom: 1rem;
}
.home .exposed-circle p {
  font-size: 1.2rem;
  line-height: 1.4;
}

.hide-it {
  display: none;
}
strong {
  font-family: 'DIN Pro', sans-serif;
  font-size: 1.4rem;
}

.form {
  width: 100%;
}

.form label {
  font-size: 1.1rem;
  text-transform: uppercase;
  text-decoration: underline;
  font-family: 'DIN Pro Bold', sans-serif;
  display: block;
  margin: 0 0 0.5rem 0;
}
.form input {
  padding: 0.5rem 1rem;
  border: 3px solid #040505;
  width: 100%;
  display: block;
  margin: 0 0 1.5rem 0;
  border-radius: 50px;
  background-color: transparent;
  color: #040505;
  text-align: center;
  font-size: 1.5rem;
}

.form input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #040505;
  text-align: center;
  font-size: 1.5rem;
}

.form input:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #040505;
  text-align: center;
  font-size: 1.5rem;
}

.form input::-ms-input-placeholder { /* Microsoft Edge */
  color: #040505;
  text-align: center;
  font-size: 1.5rem;
}

.form input.has-error,
.has-error input[type="checkbox"] {
  border-color: darkred;
}
.form input:focus {
  outline: 0;
}
.form .custom-checkbox {
  position: relative;
}
.form .custom-checkbox label {
  padding-left: 40px;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  font-family: 'DIN Pro', sans-serif;
}
.form .custom-checkbox label a {
  color: #040505;
}
.form .custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 26px;
  height: 100%;
  z-index: 99;
}
.form .custom-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: auto;
  height: 20px;
  width: 26px;
  background-color: transparent;
  border: 7px solid #040505;
  border-radius: 18px;
}
.form .custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.form .custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}
.form .custom-checkbox .checkmark:after {
  width: 19px;
  height: 19px;
  background: #040505;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
}
.form .button {
  margin-top: 0;
  border-radius: 50px;
  border: 3px solid #040505;
  text-transform: none;
  font-size: 1.2rem;
  white-space: nowrap;
  padding: 10px;
}
.form .button:hover {
  border: 3px solid #fff;
}

.form .small {
  font-size: 0.8rem;
}
.form .small a {
  color: #040505;
}
.dres {
  position: relative;
}
.dres .badge {
  position: absolute;
  left: -30px;
  bottom: -30px;
  background-color: #040505;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fcb30a;
  font-family: 'DIN Pro Normal', sans-serif;
  font-size: 1.3rem;
  line-height: 120%;
}

/*
 * Styles for the deck of cards
 */
.deck {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.deck .card-inner {
  border: 1px solid white;
  width: 100%;
  height: 100%;
}

.deck .card {
  padding: 0.5rem;
  height: 12rem;
  width: 14rem;
  margin: 0;
  font-size: 0;
  color: #FFCE51;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0 none;
  background: #FFCE53;
  background-image: url('../img/logo.svg');
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center center;
}

.deck .card.open {
  transform: rotateY(0);
  background: #02b3e4;
  cursor: default;
  animation-name: flipInY;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  animation-duration: .75s;
  z-index: 99;
}

.deck .card.show .card-inner {
  border: 0px none;
}

.deck .card.show .card-inner span,
.deck .card.match .card-inner span {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom right;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.deck .card.match {
  cursor: default;
  background: #E5F720;
  font-size: 33px;
  animation-name: rubberBand;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  animation-duration: .75s;
}

.deck .card.unmatched {
  animation-name: pulse;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  animation-duration: .75s;
  z-index: 99;
}
.deck .card .unmatched-inner,
.deck .card .matched-inner {
  display: none;
}
.deck .card.unmatched .unmatched-inner,
.deck .card.match .matched-inner {
  transition: all 0.2s ease-in-out;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.deck .card.unmatched .unmatched-inner {
  background: rgba(226,4,59, .2);
  z-index: 99;
}
.deck .card.match .matched-inner {
  z-index: 99;
}

.deck .card.disabled {
  pointer-events: none;
  opacity: 0.9;
}


/*
 * Styles for the Score Panel
 */


.score-panel {
  text-align: center;
  margin-bottom: 10px;
  margin: 0 auto;
}

.score-panel .stars {
  margin: 0;
  padding: 0;
  display: none;
  margin: 0 5px 0 0;
}

.score-panel .stars li {
  list-style: none;
  display: inline-block;
}

.score-panel .restart {
  float: right;
  cursor: pointer;
}

.fa-star {
  color: #FFD700;
}

.timer {
  display: inline-block;
  margin: 0 1rem;
}

/*
 * Styles for big modal
 */
.big-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  padding: 3rem;
  overflow: auto;
  background-color: #FFCE53;
}
.big-popup .close-big-popup {
  transition: all 0.2s ease-in-out;
  position: absolute;
  right: 3rem;
  top: 3rem;
  border-radius: 50%;
  background: #040505;
  color: #FFCE53;
  width: 4rem;
  height: 4rem;
  text-align: center;
  line-height: 4rem;
  font-size: 2rem;
}
.big-popup .close-big-popup:hover {
  background: white;
  color: black;
}

/*
 * Awards
 */
.award-item {
}
.award-item h3 {
  text-transform: uppercase;
  text-align: center;
  font-size: 1.3rem;
  margin: 1.2rem 0;
  font-family: 'DIN Pro Medium', sans-serif;
}
.award-item .award-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 50%;
  width: 10rem;
  height: 10rem;
  text-align: center;
  margin: 0 auto;
  position: relative;
}
.award-item .award-image span {
  border-radius: 50%;
  background-color: #FFCE53;
  width: 4rem;
  height: 4rem;
  display: inline-block;
  line-height: 3.4rem;
  text-align: center;
  border: 0.3rem solid white;
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'DIN Pro Black', sans-serif;
  text-decoration: underline;
}
.award-item p {
  font-size: 0.8rem;
  text-align: center;
  margin: 1rem 0;
}


/*
 * Styles for congratulations modal
 */


.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 5px;
  width: 85%;
  position: relative;
  transition: all 5s ease-in-out;
  font-family: 'Gloria Hallelujah', cursive;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.popup .close:hover {
  color: #E5F720;
}

.popup .content-1,
.content-2 {
  max-height: 30%;
  overflow: auto;
  text-align: center;
}

.show {
  visibility: visible !important;
  opacity: 100 !important;
}

#starRating li {
  display: inline-block;
}

#play-again {
  background-color: #141214;
  padding: 0.7rem 1rem;
  font-size: 1.1rem;
  display: block;
  margin: 0 auto;
  width: 50%;
  font-family: 'Gloria Hallelujah', cursive;
  color: #ffffff;
  border-radius: 5px;
}

.winners {
  margin-top: 30px;
}
.winners h2 {
  font-family: 'DIN Pro Black', sans-serif;
  font-size: 30px;
  border-bottom: 1px solid black;
  padding: 0 0 5px 0;
  margin: 0 0 5px 0;
}
.winners h3 {
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
}
.winners .winner-award-image {
  background-size: cover;
  width: 50px;
  border-radius: 100%;
  height: 50px;
  margin: 0 auto 10px auto;
}
.winners .list > div {
  display: flex;
  justify-content: space-between;
}
@media screen and (max-width: 500px) {
  .winners .list span {
    font-size: 12px;
  }
}

/*
 * Icons
*/
.button .fas.fa-cloud-download-alt {
  margin-left: 1rem;
}

/* animations */
@keyframes flipInY {
  from {
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    animation-timing-function: ease-in;
  }

  60% {
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }

  80% {
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }

  to {
    transform: perspective(400px);
  }
}

@keyframes rubberBand {
  from {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    transform: scale3d(.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, .95, 1);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes pulse {
  from {
    transform: scale3d(1, 1, 1);
  }

  50% {
    transform: scale3d(1.1, 1.1, 1.1);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}


/****** Media queries
***************************/

@media (max-width: 768px) {

}

@media (max-width: 320px) {
  .game.container {
  }
  .deck {
  }

  .deck .card {
  }
}


/* For Tablets and larger screens
****************/

@media (min-width: 768px) {
  .container {
  }

  .deck {
  }

  .deck .card {
  }

  .popup {
  }
}

@media (min-width: 300px) and (max-width: 519px) {
  .game.container,
  .quiz.container {
    padding: 1rem;
  }
  .deck {
  }

  .deck .card {
    width: 7rem;
    height: 6rem;
  }
  .big-popup.show {
    padding: 1rem;
  }
  .big-popup.show h1 {
    font-size: 2rem;
  }
  .big-popup .close-big-popup {
    right: 0.2rem;
    top: 0.2rem;
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
  }
  .award-item p {
    font-size: 0.7rem;
    margin: 0.2rem 0;
  }
  .award-item h3 {
    font-size: 0.8rem;
  }
  .award-item .award-image span {
    display: none;
  }

  .container.quiz .main-big-image .mbi-container {
    left: 0px;
    right: auto;
    width: 100%;
    transform: none;
    opacity: .9;
  }
}

@media(max-width: 810px) {
	body > .container { width: 100%; }
}

@media (max-width: 520px) {
  .home .exposed-circle {
    position: relative;
    top: 2rem;
    bottom: 2rem;
    margin: 0 auto;
    right: auto;
  }
  .m-t-big {
    margin-top: 3rem !important;
  }

  h1 {
    font-size: 3rem;
  }
  .award-item .award-image {
    width: 8rem;
    height: 8rem;
  }
  .award-item:nth-of-type(3) .award-image {
    background-position: center right;
  }
  body > .container {
    padding: 1rem;
  }
}
