/* style.css */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'DM Mono', monospace;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

#display {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #333333;
}

.buttons {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.buttons button, button#saveTime, button.remove, button#removeAll {
    padding: 10px 20px;
    font-size: 16px;
    margin: 5px 0;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    outline: none;
    transition: background-color 0.3s ease;
    color: #818181;
    width: 100%;
}

.buttons button#startButton {
    background: #0001ff;
    color: #fff;
}

.buttons button#startButton:hover {
    background: #0001fb;
    color: #fff;
}

.buttons button:hover, button#saveTime:hover, button#removeAll:hover {
    background-color: #d2d2d2;
    color: #747474;
}

textarea {
    width: 100%;
    height: 60px;
    margin-top: 10px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
    font-size: 16px;
    color: #333;
    background-color: #fff;
}

textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    text-align: left;
    padding: 8px;
    margin-top: 5px;
    background-color: #eee;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

button#removeAll {
    background-color: transparent;
    color: #818181;
    margin: 0;
    width: auto;
}

button#removeAll:hover {
    background-color: #ffe6e6;
    color: #ff4343;
}

button.remove {
    padding: 8px;
    margin: 0;
    width: auto;
    opacity: 0.3;
}

button.remove:hover, button.remove:focus {
    background: #ffe6e6;
    opacity: 1;
    color: #ff4343;
}

.headerSaveTimes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
}

li {
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

li::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background-color: rgba(0, 123, 255, 0.5);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    z-index: 0;
    animation: ripple 0.6s ease-out forwards;
}

@keyframes collapse {
    0% {
        transform: scale(1);
        opacity: 1;
        height: auto;
    }
    100% {
        transform: scale(0);
        opacity: 0;
        height: 0;
        padding: 0;
        margin: 0;
    }
}

li.collapsing {
    animation: collapse 0.5s ease-in forwards;
}

li.dragging {
    opacity: 0.5;
}

li.over {
    border: 2px dashed #000;
}
