@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap');

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

h1 {
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-size: 2.5em;
    margin-bottom: 10px;
}

#instructions {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#instructions h2 {
    color: #ff6b6b;
    margin-top: 0;
}

#game-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#deck {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#draw-card {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#draw-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

#player-hand, #opponent-hand {
    width: 100%;
    max-width: 800px;
}

#hand-cards, #opponent-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    width: 120px;
    height: 160px;
    border: 3px solid #333;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.card p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.card.back {
    background: linear-gradient(145deg, #ff6b6b, #ff4757);
    color: white;
    border-color: #ff4757;
}

/* タイプによる色分け */
.card[data-type="Electric"] { border-color: #FFD700; background: linear-gradient(145deg, #FFF8DC, #FFD700); }
.card[data-type="Fire"] { border-color: #FF4500; background: linear-gradient(145deg, #FFE4E1, #FF4500); }
.card[data-type="Water"] { border-color: #1E90FF; background: linear-gradient(145deg, #E0F6FF, #1E90FF); }
.card[data-type="Grass"] { border-color: #32CD32; background: linear-gradient(145deg, #F0FFF0, #32CD32); }
.card[data-type="Normal"] { border-color: #A9A9A9; background: linear-gradient(145deg, #F5F5F5, #A9A9A9); }
.card[data-type="Dragon"] { border-color: #8A2BE2; background: linear-gradient(145deg, #F0E6FF, #8A2BE2); }
.card[data-type="Psychic"] { border-color: #FF1493; background: linear-gradient(145deg, #FFE6F7, #FF1493); }
.card[data-type="Ghost"] { border-color: #8B008B; background: linear-gradient(145deg, #F8E6FF, #8B008B); }
.card[data-type="Fighting"] { border-color: #DC143C; background: linear-gradient(145deg, #FFE6E6, #DC143C); }
