* {
    box-sizing: border-box;
}

body {
    background-color: #1e1e1e;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    background-color: #2c2c2c;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
    color: #f0f0f0;
}

#clocks-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.clock {
    font-size: 2em;
    font-family: 'Digital-7 Mono', sans-serif;
    background: #000;
    color: #0f0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.date {
    font-size: 1em;
    font-family: 'Courier New', Courier, monospace;
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.timezone {
    font-size: 0.8em;
    margin-bottom: 10px;
}

.input {
    padding: 10px;
    font-size: 1em;
    margin-bottom: 20px;
    width: 80%; 
    max-width: 300px;
    border: none;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
}

.timezone-list {
    flex-grow: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: max-content max-content 1fr max-content 1fr max-content;
    gap: 10px;
}

.timezone-item {
    display: contents;
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align:left;
}

.timezone-item.header {
    font-weight: bold;
    position: sticky;
    top: 0;
    background-color: #2c2c2c;
}

.timezone-item span {
    padding: 10px;
    border-bottom: 1px solid #333;
}

.timezone-item.header span {
    border-bottom: 2px solid #fff;
}

.timezone-item:last-child span {
    border-bottom: none;
}

.timezone-item.highlight {
    background-color: #444;
}

button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Add custom font for digital clock */
@font-face {
    font-family: 'Digital-7 Mono';
    src: url('https://fonts.cdnfonts.com/s/12018/Digital7Mono.woff') format('woff');
}
