html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}
body {
    background-color: #f9f7fe;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 1200px;
    margin: 60px auto;
    background: white;
    padding: 30px;
    box-shadow: 10px 5px 5px rgba(100,100,111,0.2) 0px 7px 29px 0px;
    border-radius: 10px;
}
.city {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.4);
    padding: 30px 10px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 243, 249, 0.9), rgba(250, 241, 255, 0.95));
}
.city > * {
    position: relative;
    z-index: 1;
    min-width: 220px;
}
.city::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background-image:
      radial-gradient(circle at 20% 20%, rgba(255, 193, 193, 0.14) 0, transparent 35%),
      radial-gradient(circle at 80% 25%, rgba(255, 240, 245, 0.12) 0, transparent 30%),
      radial-gradient(circle at 50% 80%, rgba(237, 222, 255, 0.14) 0, transparent 40%);
    z-index: 0;
}
.city > * {
    position: relative;
    z-index: 1;
}
.city:last-child {
    border-bottom: none;
}
.time {
    font-size: 48px;
    font-weight: bold;
    padding: 0px 0;
}
.time small {
    font-size: 18px;
    vertical-align: middle;
}
select{
    display: block;
    width: 100%;
    font-size: 18px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid purple;
    margin-bottom: 20px;
    background-color: rgb(255, 241, 249);
    color: #000;
    font-family: sans-serif;
    font-weight: bold;
}
h2 {
    margin: 0 0 0px;
    font-size: 28px;
}
h1 {
    text-align: center;
    font-family: sans-serif;
    font-size: 36px;
    padding: 0px 0;
    margin: 0px 0;
}
footer {
    text-align: center;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.8);
}
.date {
    opacity: 0.7;
}

/* All Cities Grid Layout */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .cities-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .container {
        max-width: 95%;
        padding: 20px;
        margin: 30px auto;
    }
    
    .city {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 12px;
    }
    .city > * {
        min-width: auto;
        width: 100%;
    }
    .city > div {
        margin-bottom: 16px;
    }
    .city .time {
        font-size: 36px;
    }
    .city .time small {
        font-size: 16px;
    }
    .city-card .city .time {
        font-size: 28px;
    }
    .city-card .city h2 {
        font-size: 18px;
    }
    .back-link {
        display: block;
        width: 100%;
        text-align: center;
    }
}

.city-card {
    background: linear-gradient(135deg, rgba(255, 246, 250, 0.95), rgba(248, 245, 255, 0.95));
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.city-card::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background-image:
      radial-gradient(circle at 20% 15%, rgba(255, 207, 217, 0.14) 0, transparent 35%),
      radial-gradient(circle at 80% 20%, rgba(244, 232, 255, 0.12) 0, transparent 32%),
      radial-gradient(circle at 60% 75%, rgba(239, 246, 255, 0.14) 0, transparent 35%);
    z-index: 0;
}

.city-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.city-card .city {
    margin: 0;
    padding: 0;
    border-bottom: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.city-card .city h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.city-card .city .date {
    font-size: 14px;
    margin-bottom: 10px;
}

.city-card .city .time {
    font-size: 32px;
    margin: 0;
}

.city-card .city .time small {
    font-size: 14px;
}

/* Back link styling */
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #007bff;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.back-link:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}