body {
    font-family: Arial, sans-serif;
    transition: background-color 0.1s ease;
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#grid {
    display: grid;
    grid-template-columns: repeat(12, auto); 
    grid-template-rows: repeat(5, auto);
    gap: 10px;
    width: 20vw;
    align-items: center;
    justify-content: center; 
}

.colorSquare {
    width: 30px; 
    height: 30px; 
    background-color: white;
    transition: background-color 0.5s ease;
    border-bottom-right-radius: 15px;
    align-items: center;
    justify-content: center;
}

#hexTime {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: monospace;
    font-size: 1.2rem;
    color: white;
    z-index: 100;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    mix-blend-mode: difference;
}

.clock-container {
    display: contents;
}

#infoButton {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-family: serif;
    font-style: italic;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    mix-blend-mode: difference;
    z-index: 101;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.modal-content {
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    color: #ffffff;
}

.modal-content h2 {
    margin-top: 0;
    color: #ffffff;
}