#card {
    position: absolute;
    display: none;
    top: 100px;
    right: 40px;
    z-index: 1000;
}

.weather-card {
    width: 380px;
    padding: 35px;
    background: var(--bg);
    color: var(--text);
    border-radius: 32px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    font-family: sans-serif;
}

.wc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wc-header img {
    width: 50px;
    height: 50px;
}

.wc-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
}

.wc-location img {
    width: 26px;
}

.wc-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 30px;
}

.temp {
    font-size: 64px;
    line-height: 1;
    color: var(--text);
}

.temp .deg {
    color: #ff4d00;
}

.state {
    text-align: right;
    font-size: 26px;
    line-height: 1.2;
}

.state-small {
    font-size: 22px;
    color: #ff4d00;
}

.wc-big-icon {
    display: flex;
    justify-content: center;
    margin: 30px 0 20px 0;
}

.wc-big-icon img {
    width: 175px;
    height: auto;
}

.wc-hour-title {
    font-size: 22px;
    margin: 15px 0 12px 0;
}

.wc-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-temps,
.hours-icons,
.hours-times {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.hours-temps span {
    font-size: 22px;
    color: var(--text);
}

.hours-temps span .deg {
    color: #ff4d00;
}

.hour-icon {
    width: 40px;
    height: 40px;
}

.hours-times span {
    font-size: 18px;
    opacity: 0.85;
}

@media (max-width: 600px) {

    #card {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        top: 120px;
    }

    .weather-card {
        width: 300px;
        padding: 25px;
        border-radius: 25px;
    }

    .wc-location {
        font-size: 18px;
    }

    .wc-header img {
        width: 40px;
        height: 40px;
    }

    .temp {
        font-size: 48px;
    }

    .state {
        font-size: 20px;
    }

    .state-small {
        font-size: 18px;
    }

    .wc-big-icon img {
        width: 120px;
    }

    .hours-temps span {
        font-size: 18px;
    }

    .hours-times span {
        font-size: 14px;
    }

    .hour-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 380px) {

    .weather-card {
        width: 260px;
        padding: 18px;
    }

    .temp {
        font-size: 40px;
    }

    .wc-big-icon img {
        width: 100px;
    }

    .hours-temps span {
        font-size: 16px;
    }

    .hour-icon {
        width: 26px;
        height: 26px;
    }
}
