
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #000;
    transition: background-color 0.3s, color 0.3s;
}
body.dark-mode {
    background-color: #3a3a3a;
    color: #fff;
}
body.dark-mode .grid div {
    background-color: #4a4a4a;
}
body.dark-mode .events {
    background-color: #4a4a4a;
}
body.dark-mode .confirmation {
    background-color: #444;
    color: #ccffcc;
}
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(0.25in, 5vw, 1.5in);
    padding: 20px;
    flex-wrap: wrap;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, 180px);
    grid-gap: 15px;
}
.grid div {
    width: 180px;
    height: 180px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.grid div::before {
    content: attr(data-box);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 100px;
    color: #000;
    opacity: 0.1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
    flex: 1 1 auto;
}
.inputs input {
    width: 250px;
    height: 35px;
    font-size: 16px;
    padding: 5px;
}
.inputs button {
    width: 260px;
    height: 45px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.confirmation {
    font-size: 16px;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    background-color: #e0ffe0;
    color: #006600;
}
.events {
    width: 200px;
    background-color: #eee;
    padding: 10px;
    flex: 0 0 auto;
}
.events div {
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: #555;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: fixed;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
.bottom-bar {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #2196F3;
}
input:checked + .slider:before {
    transform: translateX(22px);
}
