body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin-top: 50px;
}
#status {
    font-size: 24px;
    color: green;
    margin-bottom: 5px;
}
#status.offline {
    color: red;
}
#container {
    display: inline-block;
    position: relative;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(to bottom, #5e4220, #3e2a14); /* Gradient background */
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    visibility: hidden;
    transition: box-shadow 0.3s ease;
}
.icon-motd{
    display: flex;
    align-items: center;
}
#image{
    width: 64px;
    height: 64px;
    margin-right: 10px;
}
#motd {
    font-size: 20px;
    margin-right: 20px;
    margin-left: 10px;
}
/*#players{*/
/*    position: absolute;*/
/*    top:0;*/
/*    left:100%;*/
/*    width: 180px;*/
/*    max-height: 300px;*/
/*    overflow-y: auto;*/
/*    background-color: white;*/
/*    border: 1px solid black;*/
/*    z-index: 1;*/
/*    opacity: 0;*/
/*    visibility: hidden; !* 기본적으로 숨김 *!*/
/*    transition: visibility 0.5s, opacity 0.5s ease;*/
/*}*/
#players {
    position: absolute;
    top: 0;
    left: 100%;
    width: 180px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
    background: linear-gradient(to bottom, #f0f0f0, #dcdcdc);
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
    opacity: 0;
    visibility: hidden; /* Initially hidden */
    transition: visibility 0.5s, opacity 0.5s ease;
}
#ping-players{
    display: flex;
    height: 16px;
    position: absolute;
    top: 5px;
    right: 5px;
    align-items: center;
    text-align: right;
}
#playerOnPing{
    font-size: 10px;
    color: white;
    margin-right: 3px;
}
#ping-icon{
    height: 15px;
    width: 12px;
    margin-left: 2px;
}
#container:hover #players {
    opacity: 1;
    visibility: visible;
    /* 아니 아이콘에 올리면 펴지게 바꿔야하는데 */
}
#players p{
    margin: 10px;
}
#players img{
    float: left;
    margin-right: 5px;
}
#otherservercheak{
    visibility: hidden;
    margin: 5px;
}
#servernameinput {
    padding: 3px 9px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin: 3px;
}

/* Focus effect */
#servernameinput:focus {
    border-color: #0072ff;
    box-shadow: 0 0 5px rgba(0, 114, 255, 0.5);
    outline: none;
}
#moreInfo{
    visibility: hidden;
    margin: 5px;
}
#infoSummary{
    width: 200px;
    height: 100px;
    font-size: 12px;
    text-align: left;
    margin: 0 auto;
}
#progress-container {
    display: flex;
    justify-content: center;
    visibility: visible;
}
#progress{
    width: 200px;
    height: 20px;
    position: absolute;
    margin: 0 auto;
}
.hidden{
    display: none;
}
/* Default button style with gradient */
button {
    border-radius: 10px;
    background: linear-gradient(to bottom, #f0f0f0, #dcdcdc);
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    margin-right: 2px;
}

/* Specific button colors */
button.lemon {
    background: linear-gradient(to bottom right, limegreen, yellow);
}

button.overjjang {
    background: linear-gradient(to bottom right, #00c6ff, #0072ff);
    border: 1px solid #0072ff;
    color: white;
}

button.test {
    background: linear-gradient(to bottom right, lightgray, darkgray);
}

button.hypixel {
    background: linear-gradient(to bottom right, midnightblue, black);
    color: white;
}
button.ovjKart {
    background: linear-gradient(to right, #ff2800, #e56717);
    color: black;
}



/* Hover effect */
button:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}
/* 모바일 환경에서 players 요소를 아래로 이동 */
@media (max-width: 600px) {
    #motd {
        font-size: 15px;
        margin-right: 5px;
        margin-left: 5px;
    }
    #image{
        width: 48px;
        height: 48px;
        margin-right: 5px;
    }
    #container {
        padding: 5px;
    }
    #players {
        position: static;
        width: 97%;
        max-height: none;
        margin-top: 5px;
        opacity: 1;
        visibility: visible; /* 모바일 환경에서는 기본적으로 보이도록 설정 */
    }
    #players.none{
        visibility: hidden;
        opacity: 0;
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
    }
    #players h3{
        margin-top: 10px;
        margin-bottom: 5px;
    }
    #ping-players{
        top: 2px
    }
    #playerOnPing{
        font-size: 8px;
    }
    #ping-icon{
        height: 12px;
        width: 10px;
    }
}
