@font-face {
  font-family: 'Borel';
  src: url('fonts/Borel-Regular.ttf');
}

@font-face {
    font-family: 'Helvetica';
    src: url('fonts/HelveticaNeue_thin.ttf');
}


* { cursor: url('3D/main.png') 16 16, auto; }


h1, h2, h3 {
     font-family: 'Borel';
    src: url('./fonts/Borel-Regular.ttf') format('truetype');
}

header {
    background-color: rgba(0, 0, 0, 0);
    color: #F5F5F5;
    padding: 10px;
    text-align: center;
}

header h1 {
    margin: 20px;
    padding: 0;
    line-height: 1;
}

header h1 a {
    display: inline-block;
}

#logo-title {
    width: 300px;       
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

#logo-title:hover {
    transform: scale(1.05);
}

body {
  font-family: 'Helvetica', sans-serif;
  font-size: 1.5rem;
  color: #F5F5F5;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #CBCDCB;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}


.modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #F87625;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  width: 80%;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  font-family: 'Borel', sans-serif;
  margin-bottom: 0px;
  padding :5px;
}

.modal-content p {
  margin-top: 0px;
  font-family: 'Helvetica', sans-serif;
  line-height: 1.5;
  padding : 10px;
}

.modal-content button {
  margin-bottom: 20px;
  font-family: 'Helvetica', sans-serif;
  padding: 12px 30px;
  background-color: #FB8C4B;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  
}

.modal-content button:hover {
  background-color: #ED6007;
  
}

.grid {
  display: grid;
  grid-template-columns: repeat(8, 90px);
  grid-gap: 10px;
}

.card {
  width: 90px;
  height: 90px;
  background-color: #F5F5F5;
  background-image: url('3D/dos-carte.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  user-select: none;
  position: relative;
  overflow: hidden;
  
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.card.flipped img,
.card.matched img {
  display: block;
  
}

.card.flipped,
.card.matched {
  background-color: #fff;
  
}

footer {
  font-family: 'Borel', sans-serif;
  color: #F5F5F5;
  text-align: center;
  padding-top: 20px;
  height: 10vh;
  font-size: 1rem;
  margin-top: auto; 
  width: 100%;
  
}

@media (max-width: 768px) {
  
  header {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 100%;
    text-align: center; 
    padding: 10px 0; 
  }
  
  body {
    padding: 10px; 
  }

  
  
  .grid {
    grid-template-columns: repeat(3, 1fr); 
    grid-gap: 8px;
  }
  
  .card {
    width: 100%; 
    aspect-ratio: 1 / 1; 
    
  }

  .card img {
    display: block; 
  }
  
  footer {
    font-size: 0.85rem; 
    text-align: center; 
    white-space: normal; 
    line-height: 1.4; 
    margin-top: auto ;
    width: 100%;
    flex-shrink: 0;
    padding: 20px;
    height: 5vh;
  }
  
}
