:root {
  --body-color:       #11141a;
  --bg-color:         #263248;
  --container-color:  #42567b;
  --keyword-color:    #FFd700;
  --button-color:     #007bff;
  --buttonhover-color:#0062cc;
  --selection-color:   #e5e5e5;
  --selectionhover-color: #ffffff;
  --z-index: 9999;
}

* {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

html {
  height: 100%;

  background: linear-gradient(to bottom, #000, var(--bg-color));
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  
}


body {
  margin: 0;
  padding: 0;
  overflow: auto;
  color: var(--selection-color);
  visibility: hidden;


}

a {
  color: #fff;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  font-size: 1.25rem;
  background-color: var(--container-color);
  color: var(--selection-color);
  border: none;
  margin: auto;
  font-weight: 400;
  max-width: 100%;
  margin-bottom: 1rem;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

nav {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-evenly;
  font-size: 1.5rem;
  width: 100%;
}

#howTo {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 1.1rem;
  text-align: left;
}

.container {
  background-color: var(--bg-color);
  width: 87vw;
  max-width: 100vw;
  margin: 0 auto;
  text-align: center;
  padding: 0;
  padding-bottom: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  overflow: auto;

}

h1 {
  font-size: 1.3rem;
  color: var(--keyword-color);
}

button {
  font-size: 1.5rem;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  background-color: var(--button-color);
  color: var(--selection-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: auto;
}

button:hover {
  background-color: var(--buttonhover-color);
}

#closeButton {
  position: absolute;
  width: 1.25rem;
  height: auto;
  right: 1rem;
  cursor: pointer;
}

#questionMark {
  width: 1.25rem;
  height: auto;
  margin-right: .25rem;
}

.transpartentLayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#instructions {
  visibility: hidden;
}
#instructionContainer {
  position: absolute;
  font-size: 1.25rem;
  padding-top: 1rem;
  padding-left: 1rem;
  padding-right: 1.25rem;
  background-color: var(--container-color);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--body-color);
  color: var(--selection-color);
  margin: auto;
  font-weight: 400;
  max-width: 600px;
  margin-bottom: 1rem;
  min-width: 350px;

  top: 4rem;
  left: 50%;
  transform: translate(-50%, 0%);
}


#instructionContainer ul {
  width: 90%;
  /*max-width: 600px;*/
  text-align: left;
  margin: auto;
  padding-left: 0px;

}

#instructionContainer li {
  margin-bottom: 1rem;
}



#scoreDisplay {
 width: 7rem;
 display: flex;
 flex-direction: row;
 flex-wrap: nowrap;
 flex-grow: 0;
  margin-left: 1rem;
 align-items: center;
}

#scoreLabel {
  margin-right: 0.5rem;
  align-items: center;
  height: 2rem;
}

#scoreCircle {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--button-color);
  border-radius: 50%;
  background-color: var(--selection-color);
}

#scoreNumber {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--body-color);
}

#question,
#keywordReveal {
  display: flex;
  gap: .2rem;
  flex-wrap: wrap;
  flex-basis: 50%;
  font-size: 1.15rem;
  margin-left: 0rem;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  width: auto;
  align-items: flex-start;
  top: 0;
}

#keywordReveal {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 1rem;
  justify-content: center;
  align-items: center;
}


.keyword {
  background-color: var(--keyword-color);
  color: #000000;
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
  color: #000;
  border: none;
  border-radius: 4px;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}


main {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  text-align: center;
  padding: 0 1rem 0 1rem;

}

#question {
  margin-bottom: 1rem;
  margin-top: 0;
  min-height: 3.5rem;
  width: 100%;
  display: flex;
  justify-content: center;

}

#options {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 0rem;
}

#options .answer {
  width: 100%;
  background-color: var(--selection-color);
  cursor: pointer;
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
}

#options .answer:hover {
  background-color: var(--selectionhover-color);
}

#options img {
  height: 70px;
  width: 50px;
  margin: 0 auto;
  display: block;
  margin-top: 0rem;
  margin-bottom: 0rem;
  outline: none;
  flex-grow: none;

 
}
#options .button {
  font-size: 1rem;
  height: 50px;
  color: #333;
  border: none;
  cursor: pointer;
  margin: auto;
  height: 100%;
  text-align: center;
  font-weight: 600;
  flex-grow: 1;
  align-items: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .container {
    width: 99vw;
    width: 99vw;

  }

}

@media (min-width: 640px) {
  #options .answer  {
    width: 48%;
  }

  #options img {
    height: 105px;
    width: 75px;
  }
  #options .button {
    height: 105px;
    font-size: 1.25rem;
  }
}

@media (min-width: 1260px) {
  #options .answer  {
    width: 32%;
  }
  #options img {
    height: 140px;
    width: 100px;
  }
  #options .button {
    font-size: 1.5rem;
    height: 140px;
  }
  .keyword{
    font-size: 1.5rem;
  }
}



#resultContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

#quizButtons {
  margin-top: 5.7rem;
}

#result {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  margin: auto;
}

#resultHeader {
  display: flex;
  flex-direction: row;
  margin: auto;
  max-width: 250px;
  justify-content: space-around;
}

#playerChoice {
  width: 85%;
  max-width: 450px;
  background-color: var(--container-color);
  border: 0px solid white;
  color: var(--selection-color);
  font-weight: 600;;
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  border-radius: 16px;
  margin-top: 1rem;
  box-shadow: 0px 0px 4px rgba(255, 255, 255, 1);
  margin: auto;
  margin-bottom: 1rem;
}



#poster {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  display: block;
  margin-top: 1rem;
  margin-bottom: 1rem;
  outline: none;
}

#restartBtn {
  margin-top: 1rem;
}

#headerContainer {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content:space-around;
}

.headerText {
  width: 85%;
  max-width: 800px;
  border: 0px solid white;
  color: var(--selection-color);
  font-weight: 600;;
  font-size: 1.25rem;
  padding: 0;
  border-radius: 16px;
  margin-top: 1rem;
}

#shareContainer {
  width: 100%;
  margin: auto;
  text-align: center;
}

#scoreTimer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #333;
}

.cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookie-banner__content {
  max-width: 800px;
  padding: 20px;
  background-color: var(--selection-color);
  color: var(--body-color);
  border-radius: 5px;
  text-align: center;
}

.cookie-banner__button {
  background-color: var(--button-color);
  color: var(--selection-color);
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.cookie-banner__button:hover {
  background-color: var(--buttonhover-color);
}

.alreadyPlayed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.alreadyPlayed_content {
  max-width: 800px;
  position: relative;
  padding: 20px;
  background-color: var(--selection-color);
  color: #000;
  border-radius: 5px;
  text-align: center;
}

.alreadyPlayed_close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
  color: #999;
}

.alreadyPlayed_close span {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background-color: #f1f1f1;
}

#score-grid {
  display: flex;
  justify-content: center;
  gap: 1px;
  margin: auto;
  text-align: center;
  margin-bottom: 1rem;
}

#poster-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  margin: auto;
  text-align: center;
  margin-bottom: 2rem;
}

ul.share-buttons{
  list-style: none;
  padding: 0;
}

ul.share-buttons li{
  display: inline;
}

ul.share-buttons .sr-only{
  position: absolute;
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

ul.share-buttons img{
  width: 32px;
}

.banner {
  width: 100%;
  height: auto;
  font-size: 1rem;
  color: #555;
  margin-top: 40px;
  text-align: center;
  position: relative;

  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  
}
.banner img {
  max-width: 100%;
  max-height: 100%;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: var(--container-color);
  padding: 10px;
  text-align: center;

}

#countdownGame {
  font-size: 2rem;
}

.star-rating {
  display: flex;
  align-items: center;
  font-size: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

:root {
  --star-size: 42px;
  --star-color: #fff;
  --star-background: #fc0;
}

.Stars {
  --percent: calc(var(--rating) / 5 * 100%);
  
  display: inline-block;
  font-size: var(--star-size);
  font-family: Times; // make sure ★ appears correctly
  line-height: 1;
  
  &::before {
    content: '★★★★★';
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

// Just to make preview more beautiful

body {
  background: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

* {
  position: relative;
  box-sizing: border-box;
}