* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #ffffff;
    overflow: hidden;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 10vh;
    padding: 20px;
}

h1 {
    font-size: 3em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 0px;
    animation: glow 2s ease-in-out infinite alternate;
}

.game-container {
    display: grid;
    grid-template-areas:
        "top top top"
        "left center right"
        "bottom bottom bottom";
    gap: 20px;
    width: 100%;
    height: 90vh;
    align-items: center;
    
}

.player-area {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.player-profile {
    display: flex;
    flex-direction: row;
   
   
}
.player-profile img {
    margin-right: 10px;
}
.player-profile .player-name{
    display: flex;
    flex-direction: column;
}
#player-2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
#player-3:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#player-4:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.computer-player {
    justify-content: center;
}

.computer-player.top {
    margin-top: 10px;
    margin-left: 20%;
    width: 60%;
    grid-area: top;
}

.computer-player.left {
    grid-area: left;
}
.computer-player.center {
    grid-area:center;
}

.computer-player.right {
    grid-area: right;
}

.human-player {
    grid-area: bottom;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.parchi-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-right: 50px;
}

.card {
    width: 80px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #c82727, #2980b9);
    
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: float 3s infinite ease-in-out;
}
#player-1-cards{
  
        font-size: 14px;
  
}
.card:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.pass-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.pass-controls button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pass-controls button:hover {
    background: linear-gradient(145deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#message-area {
    position: absolute;
    font-size: 20px;
    padding: 15px;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  top: 30px;
  left: 0;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-in-out;
}

#game-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    margin: 20px 0;
}

#game-controls button {
    margin: 10px;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#game-controls button:hover {
    background: linear-gradient(145deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#start-game-button, #shuffle-button {
    display: inline-block;
}

 /* Add these styles to your existing CSS */

 #points-display {
     margin-top: 10px;
     font-size: 18px;
     font-weight: bold;
 }

 .pass-controls button {
     margin: 5px;
     padding: 10px;
     font-size: 16px;
     background-color: #4CAF50;
     color: white;
     border: none;
     border-radius: 5px;
     cursor: pointer;
     transition: background-color 0.3s;
 }

 .pass-controls button:hover {
     background-color: #45a049;
 }

 #start-game-button, #shuffle-button {
     margin: 10px;
     padding: 15px 30px;
     font-size: 18px;
     background-color: #008CBA;
     color: white;
     border: none;
     border-radius: 5px;
     cursor: pointer;
     transition: background-color 0.3s;
 }

 #start-game-button:hover, #shuffle-button:hover {
     background-color: #007B9A;
 }

 #message-area {
     margin: 20px 0;
     padding: 10px;
     font-size: 18px;
     background-color: #000000;
     border-radius: 5px;
     color: white;
 }

 .win {
     color: green;
     font-weight: bold;
 }

 .lose {
     color: red;
     font-weight: bold;
 }

 .highlight .card {
    border: 2px solid yellow;
    box-shadow: 0 0 10px yellow;
}

/* Add these styles to your existing CSS */

#winner-display,
#points-display {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    text-align: right;
    z-index: 1000;
}

#winner-display {
    margin-bottom: 10px;
}