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

.taiji-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.taiji {
    width: 100px;
    height: 100px;
    background-image: conic-gradient(white 0 50%, black 50% 100%);
    border-radius: 50%;
    position: relative;
    animation: rotate 5s linear infinite;
}

.taiji::before,
.taiji::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.taiji::before {
    background-color: black;
    top: 0;
    left: 25px;
}

.taiji::after {
    background-color: white;
    bottom: 0;
    left: 25px;
}

.taiji::before::after,
.taiji::after::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.taiji::before::after {
    background-color: white;
    top: 15px;
    left: 15px;
}

.taiji::after::after {
    background-color: black;
    top: 15px;
    left: 15px;
}

#speedSlider {
    margin-top: 10px;
    width: 100px;
}

.calculator {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.display {
    font-size: 32px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #222;
    color: #fff;
    text-align: right;
    border-radius: 5px;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.btn {
    padding: 20px;
    font-size: 24px;
    background-color: #eee;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #ddd;
}

.btn.operator {
    background-color: #f9a825;
    color: #fff;
}

.btn.operator:hover {
    background-color: #f57f17;
}

.btn.equal {
    background-color: #388e3c;
    color: #fff;
    grid-column: span 2;
}

.btn.equal:hover {
    background-color: #2e7d32;
}

.btn[data-clear] {
    background-color: #d32f2f;
    color: #fff;
}

.btn[data-clear]:hover {
    background-color: #c62828;
}

.random-number-container {
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.random-display {
    flex-grow: 1;
    font-size: 32px;
    padding: 10px;
    background-color: #222;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    margin-right: 10px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.number-group {
    display: inline-block;
    padding: 0 5px;
}

.number-group.first {
    color: #4CAF50;
}

.number-group.second {
    color: #FFC107;
}

.number-group.third {
    color: #2196F3;
}

.pause-btn {
    padding: 15px 25px;
    font-size: 18px;
    background-color: #f9a825;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pause-btn:hover {
    background-color: #f57f17;
}

.pause-btn.active {
    background-color: #388e3c;
}

.timestamp-container {
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.timestamp-display {
    font-size: 24px;
    padding: 10px;
    background-color: #222;
    color: #fff;
    text-align: left;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.timestamp-label {
    color: #f9a825;
    margin-right: 10px;
}

.timestamp-value {
    color: #4CAF50;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
