body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.menu {
    display: flex;
    justify-content: center;
    background-color: #333;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.menu li {
    margin: 0;
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu a:hover {
    background-color: #555;
    color: white;
    transform: scale(1.05);
}

.form-table, table, .logout, .event-details, .thumbnails, .uploaded-files {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 20px;
}

input, textarea, .button {
    width: calc(100% - 22px); /* Adjust for padding */
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
}

.logout a, .button, .edit-button, .delete-button, .add-button, .view-button, .save-button, .upload-button {
    display: inline-block;
    text-align: center;
    color: white;
    padding: 10px 20px; /* ボタンサイズ調整 */
    border-radius: 5px;
    text-decoration: none;
    margin-right: 5px;
    box-sizing: border-box;
}

.edit-button {
    background-color: #4CAF50;
    width: 82px;
    height: 42px;
}

.delete-button {
    width: 82px;
    height: 42px;
    background-color: #f44336;
}
.delete-button_s {
    width: 40px;
    height: 42px;
    background-color: #f44336;
    color: white;
    padding: 10px 20px; /* ボタンサイズ調整 */
    border-radius: 5px;
    text-decoration: none;
}

.add-button {
    background-color: #4CAF50;
    color: white;
}

.view-button {
    background-color: #007BFF;
    color: white;
}

.save-button {
    background-color: #28a745;
    color: white;
}

.upload-button {
    background-color: #17a2b8;
    color: white;
}

.login-button {
    display: inline-block;
    text-align: center;
    color: white;
    padding: 10px 20px; /* ボタンサイズ調整 */
    border-radius: 5px;
    text-decoration: none;
    margin-right: 5px;
    box-sizing: border-box;
    background-color: #007BFF;
    color: white;
}

.logout a:hover, .button:hover, .edit-button:hover, .delete-button:hover, .add-button:hover, .view-button:hover, .save-button:hover, .upload-button:hover{
    background-color: #ff4d4d;
    cursor: pointer;
}

.login-button:hover{ 
    background-color: #7ab2ee;
    cursor: pointer;
}

.view-button:hover, .upload-button:hover{
    background-color: #307dba;
    cursor: pointer;
}

button {
    background-color: transparent;
    border: none;
    padding: 0;
    text-align: center;
}

.actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.delete-form, .delete-event-form {
    margin: 0;
    display: inline-block;
}

.form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;

    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 20px;
}

.login-heading {
    margin-bottom: 20px;
    text-align: center;
}

.login-form .form-group {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
}

.login-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.thumbnails ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.thumbnails li {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    width: calc(33.333% - 20px);
    text-align: center;
}

.thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .container {
        width: 100%;
    }

    input, textarea, .button {
        width: calc(100% - 20px);
    }

    table th, table td {
        padding: 5px;
    }

    .menu {
        flex-direction: column;
        align-items: center;
    }

    .menu ul {
        flex-direction: column;
        gap: 10px;
    }

    .thumbnails li {
        width: calc(100% - 20px);
    }
}

       .linked {
            background-color: #d4edda; /* 緑系の背景色 */
        }
        .not-linked {
            background-color: #f8d7da; /* 赤系の背景色 */
        }


.button_zip form {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 240px;
    padding: 10px 25px;
    color: #FFF;
    transition: 0.3s ease-in-out;
    font-weight: 600;
    background: #6bb6ff;
    border-radius: 8px;
    border-bottom: solid 5px #1d7fde;
}
.button_zip form:hover {
    border-bottom: solid 2px #1d7fde;
    transform: translateY(3px);
}
