body {
    font-family: Arial, sans-serif;
    background: url("./background_image/back_4.jpg") center center / cover no-repeat fixed;
    /* background-color: rgb(35, 38, 45); */
    padding: 20px;
    color: #fff;
    background-size: cover;
    height: 100vh; /* Ensure the body takes the full height of the viewport */
    overflow-y: scroll; /* Allows scrolling if content exceeds viewport height */
}

h2 {
    text-align: center;
    /* color: #007bff; */
    color: #ffffff;
}

form {
    max-width: 600px; /* Increased max-width */
    margin: 0 auto;
    background-color: #2a2d3b; /* Slightly darker background for form */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    border: 1px solid #444; /* Added border for form */
}

label {
    font-weight: bold;
    color: #ddd;
    margin-bottom: 8px;
    display: inline-block; /* Changed to inline-block for alignment */
    vertical-align: middle; /* Align with middle */
}

.small-text {
    font-size: 0.8em; /* 상대적으로 작게 설정, 필요에 따라 조정 가능 */
}

select, input[type="text"], input[type="date"], textarea, input[type="submit"], input[type="button"] {
    width: 100%; /* Set width to 100% for consistency */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="date"]:focus, select:focus, textarea:focus {
    border-color: #007bff;
    outline: none;
}

input[type="submit"], input[type="button"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #0056b3;
}

#song-titles-container {
    margin-bottom: 20px;
}

#add-song-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #28a745; /* Match other button colors */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 20px; /* Added margin-bottom for spacing */
}

#add-song-button:hover {
    background-color: #218838; /* Match other button hover colors */
}

#remove-song-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #E00D0D; /* Match other button colors */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
}

#remove-song-button:hover {
    background-color: #BA0000; /* Darker red on hover */
}


#SERVICE {
    margin-bottom: 20px; /* Added margin-bottom for spacing */
}

.entry-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.entry-row label {
    width: 20%;
    margin-right: 10px;
    text-align: right;
}

.entry-row input, .entry-row textarea {
    flex: 1;
}

textarea {
    width: 100%;
    box-sizing: border-box; /* Ensures padding is included in width */
}

.song-entry {
    margin-bottom: 20px;
}

.file-input-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center; /* Align items vertically in the center */
}

.file-input-button {
    height: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 40px;
    padding: 0 20px;
}

.file-input-button:hover {
    background-color: #0056b3;
}

#pptxFile {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

#file-name {
    margin-left: 15px;
    color: #ddd;
    font-size: 14px;
}

/* Table container */
#data-table-container {
    display: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    width: 70%;
    -webkit-overflow-scrolling: touch;
    margin: 20px auto; /* Center the table container */
    border: 1px solid #ddd;
    text-align: center;
}

/* Table */
#data-table {
    /*width: 100%;*/
    /*border-collapse: collapse;*/
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

/* Table header */
#data-table table thead {
    background-color: #007bff;
    color: #fff;
}

/* Table cells */
#data-table th,
#data-table td {
    text-align: left;
    border: 1px solid #ddd;
    color: #000;
    padding: 12px 15px;
}

#data-table th {
    background-color: #007BFF;
    color: #fff;
    font-weight: bold;
    border-bottom: 2px solid #0056b3;
}
#data-table td {
    border-bottom: 1px solid #ddd;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-thumb {
    background-color: #007BFF;
    border-radius: 8px;
}

.table-container::-webkit-scrollbar-track {
    background-color: #f0f2f5;
}

/* Alternate row background */
#data-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Redirect button */
#redirect-button {
    display: block;
    width: 16%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    margin-top: 20px; /* Added margin-top for spacing */
    margin: 20px auto;
}

#redirect-button:hover {
    background-color: #0056b3;
}

/* Redirect button */
#home-redirect-button {
    display: block;
    width: 16%; /* Reduced width */
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    margin-top: 20px;
    margin: 20px auto;
}

#home-redirect-button:hover {
    background-color: #0056b3;
}

#reset-button {
    background-color: #E00D0D;
}

#reset-button:hover {
    background-color: #BA0000;
}
