/* CSS files add styling rules to your content */
/* Import Open Sans font */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Carter+One&display=swap');

* {
  font-family: 'Open Sans', sans-serif;
}

html {
}

body {
    background-color: #f5e7d0;
    color: rgb(36, 36, 36);
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Carter One', sans-serif;  
    font-weight: bold;
    margin: 0;
}

h1 {
    font-size: 2.5rem;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: turquoise;
    color: rgba(86,86,86,1);
    padding: 5px;

    text-align: center;
}

b {
  font-weight: 700;
}

header h1 {
    color: teal;  
}

.header_subtitle {
  font-family: 'Carter One', sans-serif;
}

.gameboard {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* width: 960px; */
    margin: 45px auto;
  }
  
  @media (max-width: 960px) {
    .gameboard { 
      width: 100%;
    }
  }

@media (max-width: 1280px) {
  h1 {
    font-size: 4rem;
  }
  .header_subtitle{
      display: block;
      clear: both;
      font-size:2rem
    }
}
  
  @media (max-width: 600px) {
    .gameboard {
      flex-direction: column;
      align-items: center;
    }
  }

.card {
    color: salmon;
    background-color: rgba(255, 140, 105,0.2);
    border: 1px solid salmon;
    border-radius: 10px;
    box-shadow: 0px 2px 2px 1px rgba(0,0,0,0.3);
    /* box-shadow: 0 10px rgba(0,0,0,0.2), /* subtle pure black glow */
    /* -5px 5px 10px rgba(0,0,0,0.1),  
    5px -5px 10px rgba(0,0,0,0.1);  */

    width: 180px;
    height: 180px;
    padding: 10px;
    margin: 5px;

/*     text-align: center; */

    display: flex;
    align-items: center;
    justify-content: center;

    perspective: 1000px;

    transition: transform 0.8s;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    text-transform: capitalize;
}

/* Body text */
.body-text {
    font-family: 'Georgia', serif;
    font-size: 16px;
    line-height: 1.5;
    
    max-width: 600px;
    margin: 10px auto;
    padding: 24px;
    
    color: #333;
    background-color: #fff;
    
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
  }

  .body-text div {
    padding: 10px 0;
  }
  
  @media (max-width: 600px) {
    .body-text {
      padding: 16px;
      font-size: 14px; 
    }
  }

.label {
    font-family: 'Carter One', sans-serif;  
    font-weight: bold;
  
    /* font-style: italic; */
    font-size: 2rem;

    display: inline;
}

.label::first-letter {
    text-transform: uppercase;
}

.contents {
    display: flex;
    flex-direction: column;
    /* justify-content: space-around; */
    
    font-size: 1.4rem;
}

.contents span {
    font-style: italic;
    font-size: 1.2rem;
}

.contents span::first-letter {
    text-transform: uppercase;
}


/* Rotating card */
.card.flipped {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    transform: rotateY(180deg);

    color: rgba(86,86,86,1);
}

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

.card.flipped span {
  font-family: 'Carter One', sans-serif;
}


.hidden {
    display: none;
}