@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300&display=swap');
* {
    margin: 0;
    padding: 0;
  }
 
  body {
   
    background-size: cover;
    transition: all 0.5s;
    align-items: center;
    display: flex;
    justify-content: center;
  }
  .container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    color: #fff;
  }
  #grid {
    width: 70%;
    height: 85%;
    display: grid;
    grid-template-rows: repeat(1fr, 4);
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    
    
    padding: 15px 15px;
  }
  #stats
  {
    text-align: center;
    font-weight: 500;
    font-family: 'Nunito', sans-serif;
    
  }
  
    
  
  
  .flip-card {
    background-color: transparent;
    perspective: 1000px;
  }
  
  .flip-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.2s;
    transform-style: preserve-3d;
    background: #2f3337;
    box-shadow: inset 24px 24px 48px #212427,
            inset -24px -24px 48px #3d4247;
            border-radius: 20px;

  }
  
  .front,
  .back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
  }
  
  .front {
    
    color: black;
  }
  
  .back {
    background-color: #191970;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .flipped {
    transform: rotateY(180deg);
  }
  .hide {
    visibility: hidden; 
  }
  .popup {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
  }
  .popup > div {
    width: 300px;
    height: 200px;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  @media (max-width: 600px) {
    h2 {
      font-size: medium;

    }
  }
  
  #reload{
    border: 0;
    background-color: #f13637;
    height: 40px;
    width: 40px;
    border-radius: 10px;
    color: #fff;
    vertical-align: middle;
    font-size: 1.2rem !important;
    margin: 10px 0;
  }
  #reload:active, #reload:focus{
    outline: none;
  }
