/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#favourites-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    text-align: right;
}

#favourites-panel h2 {
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: lowercase;
}

#favourites-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.favourite-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid white;
    color: white;
    cursor: pointer;
    text-transform: lowercase;
    transition: all 0.2s;
}

.favourite-item:hover {
    background: transparent;
    text-shadow: 5px 5px 20px currentColor;
    transform: scale(1.1);
}

.fav-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px;
    margin-left: 5px;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s;
    vertical-align: middle;
}

.fav-btn:hover {
    transform: scale(1.2);
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: black;
    color: white;
    height: 100vh;
    overflow: hidden;
    min-width: 1440px;
}

/* For day/night theme switching */
body[data-time="day"] {
    background: white;
    color: black;
}

body[data-time="day"] #ascii-canvas {
    color: black;
    background-color: white;
}

body[data-time="day"] .floating-city {
    color: black;
    border-color: black;
    background-color: white;
}

body[data-time="day"] .city-label {
    color: black;
    border-color: black;
    background-color: white;
}

body[data-time="day"] .info-box {
    color: black;
    border-color: black;
    background-color: white;
}

body[data-time="day"] #back {
    color: black;
    border-color: black;
    background-color: white;
}

body[data-time="day"] .favourite-item {
    color: black;
    border-color: black;
    background-color: white;
}

body[data-time="day"] .favourite-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body[data-time="night"] {
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}

body[data-time="night"] #ascii-canvas {
    color: rgb(255, 255, 255);
    background-color: black;
}

body[data-time="night"] .floating-city {
    color: rgb(255, 255, 255);
    background-color: black;
    border-color: white;
}

body[data-time="night"] .city-label {
    color: rgb(255, 255, 255);
    background-color: black;
    border-color: white;
}

body[data-time="night"] .info-box {
    color: rgb(255, 255, 255);
    background-color: black;
    border-color: white;
}

body[data-time="night"] #back {
    color: rgb(255, 255, 255);
    background-color: black;
    border-color: rgb(255, 255, 255);
}

body[data-time="night"] .favourite-item {
    color: rgb(255, 255, 255);
    background-color: black;
    border-color: white;
}

/* ASCII canvas background */
#ascii-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Force viewport width */
    height: 100%;
    /* Force viewport height */
    min-width: 100%;
    /* Add this */
    min-height: 100%;
    /* Add this */
    white-space: pre;
    font-size: 12px;
    line-height: 1.2;
    color: white;
    pointer-events: none;
    overflow: hidden;
}

/* floating city names */
#locations {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-city {
    position: fixed;
    font-size: 24px;
    padding: 10px 20px;
    border: 2px solid white;
    background: transparent;
    color: white;
    animation: float 15s infinite ease-in-out;
    z-index: 8;
    text-transform: lowercase;
    line-height: 1.5;
}

.floating-city:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgb(244, 244, 248);
    text-shadow: 0 0 20px #b3acb4,
        0 0 40px #a39ca0,
        0 0 60px #a39da0;

}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(50px, -30px);
    }

    50% {
        transform: translate(-30px, 40px);
    }

    75% {
        transform: translate(40px, 20px);
    }
}

/* center box - hidden */
#center-box {
    display: none;
}

/* city label at top */
.city-label {
    position: fixed;
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    padding: 15px 40px;
    border: 2px solid white;
    background: transparent;
    z-index: 11;
    text-align: left;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* info box */
.info-box {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px 40px;
    border: 2px solid white;
    background: transparent;
    z-index: 10;
    font-size: 18px;
    text-align: left;
    line-height: 2;
    margin: 10px;
}

/* back btn */
#back {
    position: fixed;
    top: 30px;
    left: 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid white;
    color: white;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s;
}

#back:hover {
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px currentColor;
    transform: scale(1.1);
}

* {
    cursor: none !important;
}

/* Hide weather panel initially */
#weather-panel {
    display: none;
}