
/* varela-round-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Varela Round';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/varela-round-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


body {
    font-family: 'Varela Round', sans-serif;
    background: linear-gradient(to top, #999900, #ffffff);
    height: 1080px;
    padding: 10px;
}

#games-container {
    width: 800px;
    margin: 0 auto;
    margin-top: 400px;
}

.game-element {
    color: black;
    background-color: white;
    border-radius: 20px;
    padding: 15px;
    height: 150px;
    text-align: center;
    display: flex;
    width: 100%;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    align-items:center;
    justify-content:center;
}

#background-slider {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 1920px;
    height: 1080px;
}

.slider-page {
    position: absolute;
    left: 0px;
    top: 0px;
    transition: all 1.5s;
    opacity: 0;
    width: 1920px;
    height: 1080px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;        
}

.slider-page.active {
    opacity: 1;
}

.game-element:hover {
    text-decoration: none;
    color: white;
    background-color: #669966;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease-in;
}

#interface {
    position: fixed;
    left: 0px;
    top: 0px;
    padding: 15px;
    width: 250px;
    height: 1080px;
    background-color: white;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.4);
}

#reload {
    width: 42px;
    height: 42px;
    text-align: center;
    line-height: 42px;
    background-color: #669966;
    color: white;
    border-radius: 5px;
    margin-top: 30px;
    cursor: pointer;
    border-bottom: 3px solid #336633;
    display: none;
}

.button {
    border: none;
    outline: none;
    padding: 0px;
    margin: 0px;
    height: 42px;
    text-align: center;
    padding: 0px 15px;
    line-height: 42px;
    background-color: #669966;
    color: white;
    border-radius: 5px;
    border-bottom: 3px solid #336633;
    cursor: pointer;
}

#reload:hover, .button:hover {
    background-color: #4D804D;
}

#game.running #introduction {
    display: none;
}

#game.running #reload {
    display: block;
}

#game.running #turn-count-container {
    display: block;
}

#game-board {
    display: grid;
    gap: 10px;
    justify-content: center;
    padding: 20px;
}

.card {
    height: 0;
    padding-bottom: 100%;  /* same as width, for square aspect ratio */
    border-radius: 24px;
    border: none;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.card .front, .card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-size: cover;
    transition: transform 0.6s;
}

.card .back {
    transform: rotateY(180deg);
}

.card .front {
    transform: rotateY(0deg);
}

.card.flipped {
    transform: rotateY(180deg);
}

.card.found .front {
    opacity: 0;
}

.card.found .back {
    opacity: 0.5;
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1080px;
    }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Schwarz transparenter Hintergrund */
  display: none;
  justify-content: center;
  align-items: center;
}

.overlay-content {
  background-color: #ffffff; /* Weißer Hintergrund */
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

.overlay-content img {
    margin-bottom: 15px;
}

.overlay.active {
  display: flex;
}