@font-face {
    font-family: 'KBO Dia Gothic';
    src: url('../fonts/KBO-Dia-Gothic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'KBO Dia Gothic', sans-serif;
    background-color: #002561;
    color: white;
    margin: 0;
}
.title {
    text-align: center;
    margin-top: 100px;
    color: #C7FF39;
    font-size: 42px;
    padding: 40px;
}


.field {
    position: relative;
    width: 700px;
    height: 600px;
    margin: 40px auto;
}

.outfield {
    position: absolute;
    z-index: 0;
    top: -40px;
    left: -50px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, #3cb371 0%, #2e8b57 100%);
    border-radius: 50%;
}

.diamond {
    position: absolute;
    z-index: 1;
    top: 250px;
    left: 150px;
    width: 400px;
    height: 400px;
    background-color: #228B22;
    transform: rotate(45deg);
    border-radius: 8%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) inset;
}
.base {
    position: absolute;
    z-index: 2;
    width: 60px;
    height: 60px;
    background-color: white;
    transform: rotate(45deg);
}

.base1 { top: 420px; left: 580px; }
.base2 { top: 150px; left: 320px; }
.base3 { top: 420px; left: 60px; }
.home  { top: 680px; left: 320px; }

  /* 선수 박스 */
.player {
    position: absolute;
    z-index: 3;
    width: 90px;
    height: 90px;
    color: black;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    padding: 5px;
}

.player img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    object-position: 70% center;
    border-radius: 8px
    
}

  /* 포지션별 위치 */
.lf       { top: 10%; left: 100px; }
.rf       { top: 10%; right: 100px; }
.cf       { top: -4%; left: 300px; }

.second   { top: 35%; right: 120px; }
.ss       { top: 35%; left: 120px; }
.third    { top: 60%; left: 45px; }
.first    { top: 60%; right: 45px; }
.dh       { top: 98%; left: 520px; }

.pitcher  { top: 65%; left: 305px; }
.catcher  { top: 105%; left: 305px; }

.card {
    display: none !important;
}

.card h4 {
    margin: 5px 0;
    font-size: 42px;
}

.big-card {
    position: fixed;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;

    border: 4px solid;
    border-image: linear-gradient(135deg, #FFD700, #FFA500, #FFD700) 1;
    
    background-color: #0D0D0D;
    color: white;
    padding: 20px;
    border-radius: 16px;
    display: none;
    z-index: 10000;

    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    font-size: 32px;
    line-height: 1.6;

    animation: fadeIn 0.3s ease-in-out;
}

.big-card h4 {
    margin-top: 0;
    font-size: 42px;
}

.big-card img {
    width: 100%;
    height: auto;             
    object-fit: contain;       
    object-position: center;   
    border-radius: 8px;
    margin-bottom: 12px;
}

.player:hover .card {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-55%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    .field, .title {
        display: none !important;
    }
}