@font-face {
    font-family: magic;
    src: url("../fonts/Magic\ Frankie.ttf");
}
@font-face {
  font-family: altona;
  src: url("../fonts/AltonaSans-Regular.ttf");
}

body {
  background-color: #242424;
  margin: 0;
}

.current {
  background-color: #229e9e7c !important;
}


/*Pop up banner*/

#winner-banner{ 
  position: absolute;
  top: calc(50% - 50px);
  left: calc(50% - 250px);
  justify-content: center;
  align-items: center;   
  width: 500px;
  height: 100px;
  background: #27BDB4;
  box-shadow: 0 0 1px rgba(0,0,0,0.2);
  display: none;
}

#winner-banner p {
  color: #FFFFFF;
  font-family: Verdana, Arial;
  font-size: 30px;
  font-weight: bold;
  line-height: 75px;
}

#winner-banner:before {
  position: absolute;
  left: 0px;
  bottom: -20px;
  width: 0;
  height: 0;
  border-top: none;
  border-right: 70px #197270 solid;
  border-bottom: 20px transparent solid;
  content: "";
}

#winner-banner:after {
  position: absolute;
  right: 0px;
  bottom: -20px;
  width: 0;
  height: 0;
  border-top: none;
  border-left: 70px #197270 solid;
  border-bottom: 20px transparent solid;
  content: "";   
}

.itemRibbon {
  position: absolute;
  width: 120px;
  height: 85px;
  background: #27BDB4;
  z-index: -2;
}

.itemRibbon.itemLeft {
  top: 40px;
  left: -50px;    
}

.itemRibbon.itemLeft:before {
  position: absolute;
  top: 0px;
  left: -29px;
  width: 0px;
  height: 0px;
  border-top: 0px transparent solid;
  border-right: 30px #27BDB4 solid;
  border-bottom: 37.5px transparent solid;
}

.itemRibbon.itemLeft:after {
  position: absolute;
  bottom: 0px;
  left: -29px;
  width: 0px;
  height: 0px;
  border-top: 37.5px transparent solid;
  border-right: 30px #27BDB4 solid;
  border-bottom: 0px transparent solid;
}

.itemRibbon.itemRight {
  top: 40px;
  right: -50px;   
}

.itemRibbon.itemRight:before {
  position: absolute;
  top: 0px;
  right: -29px;
  width: 0px;
  height: 0px;
  border-top: 0px transparent solid;
  border-left: 30px #27BDB4 solid;
  border-bottom: 37.5px transparent solid; 
}

.itemRibbon.itemRight:after {
  position: absolute;
  bottom: 0px;
  right: -29px;
  width: 0px;
  height: 0px;
  border-top: 37.5px transparent solid;
  border-left: 30px #27BDB4 solid;
  border-bottom: 0px transparent solid;
}

.banner {
  font-size: 1.5rem;
  color: white;
  font-family: altona;
}

/*Pop Up*/

#category-container {
  visibility: hidden;
  margin: 16px 32px 32px;
  width: calc(100% - 64px);
  position: absolute;
  border-radius: 4px;
  background-color: #404040;
  z-index: 999;
 
}

#inner-container {
 display: grid;
 grid-template-columns: 1fr 1fr;
 padding: 8px;
 text-align: center;
 gap: 16px;
 height: 8vh; 

}

#container-inner-category {
  display: flex;
  height: 15vh;
  justify-content: space-between;
  flex-direction: column;
}

.category {
  color: white;
  font-size: 1.5rem;
  background-color: #6868687c;
  padding: 8px;
  border-radius: 4px;
  font-family: altona;
  align-items: center;
  display: flex;
  justify-content: center;
}

.b {
  background-color: #6868687c !important;
  width: 4rem;
}

.fas.fa-check {
  font-size: 2rem;
}

.fas.fa-times {
  font-size: 2rem;
}

#buttonArea {
padding: 8px;
display: flex;
justify-content: space-between;
align-items: center;

}

#text_cate {
  color: white;
  font-size: 1.5em;
  font-family: altona;
}

#submitButton{
  
  box-shadow: 4px 4px 10px #292929;
  color: white;
  text-shadow: 1px 1px 2px #0a0a0a;
  border:none;
  border-radius: 4px;

  font-family: altona;
}



#closingButton{
  
 visibility: hidden;
  box-shadow: 4px 4px 10px #292929;
  color: white;
  text-shadow: 1px 1px 2px #0a0a0a;
  border:none;
  border-radius: 4px;

  font-family: altona;
}


/*Header Section*/

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #404040;
  padding: 24px 24px;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, .3);
  margin: 1em 2em 2em;
  border-radius: .25rem;
}

#heading-container {
  padding: 4px;
  display: flex;
  align-items: baseline;
}

#heading {
  color: whitesmoke;
  font-size: 3.5em;
  font-family: magic;
}

.fa-leaf {
  font-size: 1rem;
}

#subHeading {
  color: white;
  font-size: 1.5em;
  font-family: magic;
}

#buttonSection {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

#buttonStart {
  color: white;
  background-color: #1aebeb44;
  border-radius: 4px;
  border: 2px solid;
  font-family: altona;
  padding: 8px;
  font-size: 1.5em;
  width: 110px;
  text-align: center;

}

#buttonChange {
  color: white;
  background-color: #1aebeb44;
  border-radius: 4px;
  border: 2px solid;
  font-family: altona;
  padding: 8px;
  font-size: 1.5em;
  visibility: hidden;
}

#playerSection {
  display: flex;
  visibility: hidden;
  flex-direction: row;
  text-align: center;
}

.player {
  font-family: magic;
  font-size: 1.5em;
  color: whitesmoke;
}

.currentPlayer {
  color: #229e9e ;
}

#firstPlayer {
  padding-right: 80px;
}

#secondPlayer {
  padding-left: 80px;
}

/*Card Section*/

.container {
    margin: 16px 32px;
}

.card-grid {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
  
.card {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, .3);
  transform-style: preserve-3d;
  transition: 150ms;
  height: 200px;
  cursor: pointer;
  transform: perspective(1000px) rotateY(var(--rotate-y, 0)) translateY(var(--translate-y, 0));
  visibility: hidden;
}

.card:hover {
  --translate-y: -2px;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, .5);
}

.flip {
  --rotate-y: 180deg;
  background-color: #229e9e;
}

#buttonSection > *, button, #inner-container > *, .card, #heading-container {
  cursor: pointer;
}

.card_back {
  height: calc(100% - 32px);
  width: calc(100% - 32px);
  background-color: #404040;
  border-radius: 4px;
}

.card_front,
.card_back {
  position: absolute;
  padding: 16px;
  backface-visibility: hidden;
}

.card_front {
  transform: rotateY(180deg);
}

.card_front.image {
  height: calc(100% - 44px);
  width: calc(100% - 44px);
  border-radius: 4px;
  background-position: center;
  background-size: contain;
}

.icon-card {
  font-size: 1.5em;
}

img {
  width: 100%;
}