body{
    text-align: center;
}

ul {
  padding: 0;
}

li{
    list-style:none;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}

.circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
}

.milliseconds {
    font-size: 0.5em;
    vertical-align: super;
}

button {
    cursor: pointer;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#reset-button {
    padding: 10px 20px;
    font-size: 1em;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

#reset-button:hover:not(:disabled) {
    background: #0056b3;
}

.link-button {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    padding: 5px;
    margin: 0 5px;
}

.link-button:hover:not(:disabled) {
    color: #0056b3;
}


#history {
    display: block;
    max-width: 600px;
    margin: 20px auto;
    padding: 0;
    text-align: center;
}

#history li {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.stats-container {
    margin-top: 10px;
}

/* カレンダーのスタイル */
#calendar-container {
    max-width: 600px;
    margin: 20px auto;
    font-family: sans-serif;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
}

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

.calendar-header h2 {
    margin: 0;
    flex-grow: 1;
    text-align: center;
    cursor: pointer;
}

.calendar-header button {
    padding: 5px 10px;
    font-size: 0.9em;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-day-header {
    font-weight: bold;
    color: #555;
    padding: 5px;
}

.calendar-cell {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    position: relative;
    box-sizing: border-box;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.calendar-cell:hover:not(.empty) {
    background-color: #f9f9f9;
    cursor: pointer;
}

.calendar-cell.empty {
    background-color: #f0f0f0;
    cursor: default;
}

.calendar-cell.today {
    border: 2px solid #007bff;
}

.calendar-cell.has-history {
    border-color: #a0c4ff;
}

.history-count {
    font-size: 0.7em;
    color: #333;
    display: block;
    margin-top: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    text-align: left;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#edit-form input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    box-sizing: border-box;
}

#edit-form button {
    padding: 10px 20px;
    margin-right: 10px;
}

#day-history-modal .modal-content {
    max-height: 80%;
    overflow-y: auto;
}

#day-history-list {
    display: block;
}

.day-history-item {
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
    margin-bottom: 15px;
}

.day-history-item:last-child {
    border-bottom: none;
}

.history-item-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.action-buttons {
    margin-top: 8px;
}

.action-buttons button {
    margin-left: 10px;
}

@media (max-width: 500px) {
    #calendar-container {
        display: none;
    }
    .circle {
        width: 250px;
        height: 250px;
        font-size: 1.5em;
    }
}