body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    background-image: url('../assets/backgroundBody2.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: #efe9e9;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #222;
}

.hero p {
    font-size: 25px;
    font-family: 'Courier New';


}
.logo {
    font-size: 24px;
    font-weight: bold;
    padding: auto;

}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
nav a {
    color: #fff;
    text-decoration: none;
}

/* main */
main{
    background-color: rgba(59, 49, 49, 0.5);

}
.hero {
    text-align: center;
    padding: 100px 20px;
}
.hero h1 {
    font-size: 48px;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: red;
    color: white;
    text-decoration: none;
    margin-top: 20px;
    border-radius: 20px ;
}


.games-showcase, .blog {
    padding: 50px 20px;
    text-align: center;
}
.game-section {
    display: inline-flex;
    flex-direction: column;
    text-align: center;
    align-content:space-around;
    color: black;
    width: 400px;
    height: 300px;
    background: #444;
    background-size:cover;
    margin: 10px;
    padding: 20px;
}

#scissorsPapperRock {
    background-image: url('../assets/rockPaperScissors.avif');  
}

#guessTheNumber {
    background-image: url('../assets/guessANumber.jpg');
    color: aliceblue;
}

#memoryCardGame {
    background-image: url('../assets/memoryCard2.avif');
}

/* form */

#contact {
    display: flex;
    flex-direction: column;
    padding: 50px 20px;
    text-align: center;
    justify-content: center;
    align-items: center;
}
.form-group {
    margin-bottom: 20px;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    height: 150px;
    resize: vertical;
}

button {
    background-color: #1f2f3a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}


.required:after {
    content: " *";
    color: red;
}


.social-media{
    justify-content: center;
    }

    .social-media a img{
        margin: 10px;
        width: 30px;
        height: auto;}

footer {
    text-align: center;
    align-items: center;
    padding: 20px;
    background-color: #222;
    /* position:fixed; */
    bottom: 0;
    width: auto;
}


/* GAME SCISSORS PAPPER ROCK */

#game-1 {
    color: #111;
    text-shadow: #333 1px 1px 1px;
    background-image: url('../assets/rockPaperScissors.avif');
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#game-1 button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}


/* GAME MEMORY CARD */

#game-3{
    color: #ffffff;
    text-shadow: #333 1px 1px 1px;
    /* background-image: url('assets/memoryCard2.avif'); */
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding-bottom: 20rem;
}


.memory-game {
    margin-right: 250px;
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-template-columns: repeat(4, auto);
    gap: 300px 200px;
    /* display: flex;
    flex-direction: column;
    flex-wrap: wrap; */
  }

.memory-game img {
    width: 12em ;
    height: 18em;
    position: absolute;
    backface-visibility: hidden;
}


   .memory-card {
    width: 10px;
    height: auto;
    margin: 5px;
    position: relative;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    box-shadow: 1px 1px 1px rgba(0,0,0,.3);
    transform-origin: center;
    z-index: 1;
  }
  

  .memory-card:active {
    transform: scale(0.97);
    transition: transform .2s;
  }
  
  .memory-card.flip {
    transform: rotateY(180deg) translateX(-230px);
    z-index: 2;
  }
  
  .front-face,
  .back-face {
    width: 100%;
    height: 100%;
    padding: 20px;
    position: absolute;
    border-radius: 5px;

  }
  
  .front-face {
    transform: rotateY(180deg);
  }

  /* GAME GUESS THE NUMBER */

  .game-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-image: url(../assets/guessANumber.jpg);
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
input, button {
    padding: 8px 15px;
    margin: 5px;
    font-size: 16px;
}
#message {
    margin: 15px 0;
    font-weight: bold;
    min-height: 24px;
}
#attempts {
    color: #666;
}