.view_container.forecast_viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 0px 10px;
    margin: 0px;
    box-sizing: border-box;
    background: var(--system-background);   
}

.forecast_viewer .location_name_container {
    margin-top: 50px;
    font-size: 20px;
    display: inline-block;
    position: relative;
    color: var(--label);
    animation-name: wxFadeIn;
    animation-duration: 0.8s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    opacity: 0;
}

.forecast_viewer .location_name_container i {
    position: absolute;
    left: calc(100% + 5px);
}

.forecast_viewer .current_weather_container:empty {
    display: none;
}

.forecast_viewer .current_weather_container {
    margin-bottom: 40px;
    animation-name: wxFadeIn;
    animation-duration: 0.8s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes wxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.forecast_viewer .current_weather_container .current_temperature {
    font-size: 60px;
    font-weight: 300;
    margin-top: 20px;
    color: var(--label);
    position: relative;
    display: inline-block;
}

.forecast_viewer .current_weather_container .current_temperature:after {
    content: '°';
    position: absolute;
    left: 100%;
    font-size: 40px;
}

.forecast_viewer .current_weather_container .feels_like {
    margin-top: 3px;
    color: var(--tertiary-label);
    font-size: 16px;
}

.forecast_viewer .current_weather_container .category_icon_container img {
    width: 180px;
    height: 180px;
    margin-bottom: -40px;
}

.forecast_viewer .current_weather_container .condition_description {
    font-size: 16px;
    color: var(--secondary-label);
}

.forecast_viewer .current_weather_container .high_low_sun_cont {
    color: var(--tertiary-label);
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 180px;
    margin: 10px auto 0px auto;
}

.forecast_viewer .current_weather_container .high_low_sun_cont .condition_icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-left: -8px;
}

.forecast_viewer .forecast_container:empty {
    display: none;
}

.forecast_viewer .forecast_container {
    text-align: left;
    animation-name: wxFadeIn;
    animation-duration: 0.8s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    opacity: 0;
    
}

.forecast_viewer .forecast_content {
    padding-top: var(--notch-inset-top);
}

.forecast_viewer .unsaved_header {
    display: flex;
    justify-content: space-between;
    color: var(--label);
    margin-bottom: -40px;
}

.forecast_viewer .unsaved_header .add {
    font-weight: bold;
    padding-left: 10px;
    padding-bottom: 10px;
    cursor: pointer;
}

.forecast_viewer .unsaved_header .cancel {
    padding-right: 10px;
    padding-bottom: 10px;
    cursor: pointer;
}

.current_conditions_container:empty {
    display: none;
}

.current_conditions_container {
    position: relative;
    margin-bottom: 40px;
    animation-name: wxFadeIn;
    animation-duration: 0.8s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    opacity: 0;
}

.current_conditions_container .conditions_container {

    white-space: normal;
    text-align: left;

    --mask-image-content: linear-gradient( to bottom, transparent, black var(--mask-height), black calc(100% - var(--mask-height)), transparent );
    --mask-size-content: calc(100% - var(--scrollbar-width)) 100%;
    --mask-image-scrollbar: linear-gradient(black, black);
    --mask-size-scrollbar: var(--scrollbar-width) 100%;

    -webkit-mask-image: var(--mask-image-content), var(--mask-image-scrollbar);
    -webkit-mask-size: var(--mask-size-content), var(--mask-size-scrollbar);
    -webkit-mask-position: 0 0, 100% 0;
    -webkit-mask-repeat: no-repeat, no-repeat;

    max-height: 260px;
    padding-top: 20px;
    margin-top: -20px;
    overflow: hidden;

    transition: max-height 0.5s ease-in-out;

    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    padding-left: 10px;
    padding-right: 10px;
}

.current_conditions_container .conditions_container .condition_container {
    display: inline-block;
    padding: 10px;
    box-sizing: border-box;
    height: 95px;
    margin-bottom: 0px;
    margin-right: 0px;
    min-width: 0px;
    max-width: 100%;
    position: relative;
}

.current_conditions_container .conditions_container .condition_container .condition_description {
    position: absolute;
    bottom: 10px;
    width: calc(100% - 23px);
    height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.current_conditions_container .view_more {
    background: var(--system-background);
    color: var(--label);
    padding: 8px 15px;
    margin: 0 auto;
    display: inline-block;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--secondary-system-background);
}

.weather_location_modal_container .content_container {
    background: var(--system-background);
    color: var(--label);
}

.view_container.locations {
    padding: 20px 10px;
    box-sizing: border-box;
}

.view_container.locations .scroll_container {
    position: relative;
}

.view_container.locations .locations_search_results {
    position: absolute;
    background: var(--system-background-transparent);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    top: 82px;
    z-index: 1;
    display: none;
    animation-name: fadeInSearchResultsContainer;
    animation-duration: 0.8s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    transition: background 0.8s ease;
    color: var(--label);
    text-align: left;
    z-index: 2;
}

.view_container.locations .locations_search_results .search_result:first-of-type {
    margin-top: 20px;
}

.view_container.locations .locations_search_results .search_result {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 16px;
}

.view_container.locations .locations_search_results .search_result .distance {
    color: var(--secondary-label);
}

.view_container.locations .locations_search_results .search_result .result_name {
    font-weight: 500;
}

@keyframes fadeInSearchResultsContainer {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.view_container.locations .locations_search_results.solid_bg {
    background: var(--system-background);
}

.view_container.locations .search_mode_active .locations_search_results {
    display: block;
}

.view_container.storm_scope_settings .settings_title,
.view_container.locations .locations_title {
    font-size: 26px;
    font-weight: bold;
    color: var(--label);
    text-align: left;
    transition: transform 0.8s ease;
    transform-origin: top left;
}

.view_container.storm_scope_settings .settings_title {
    position: absolute;
    top: 0px;
    padding: 10px 20px 5px 20px;
    background: var(--secondary-system-background);    
    border-radius: 15px;
}

.view_container.locations .search_mode_active .locations_title {
    transform: scale3d(0.8, 0.8, 0.8);
}

.view_container.locations .input_container {
    position: relative;
    margin-top: 15px;
    transition: margin 0.8s ease;
    text-align: left;
}

.view_container.locations .search_mode_active .input_container {
    margin-top: 8px;
}

.view_container.locations .input_container i {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    color: var(--secondary-label);
    padding: 10px;
}

.view_container.locations .input_container .cancel_btn {
    display: none;
}

.view_container.locations .search_mode_active .input_container .cancel_btn {
    position: absolute;
    right: 0;
    top: 0px;
    color: var(--system-blue);
    cursor: pointer;
    display: block;
    font-weight: 500;
    padding: 10px;
    animation-name: fadeInSearchResultsContainer;
    animation-duration: 0.8s;
    animation-delay: 0.4s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    opacity: 0;
}

.view_container.locations .search_mode_active .input_container .cancel_btn:active {
    color: var(--secondary-label);
}

.view_container.locations input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-size: 16px;
    background: var(--secondary-system-background);
    border-radius: 8px;
    outline: none;
    color: var(--label);
    border: none;
    padding-left: 34px;
    transition: width 0.8s ease;
}

.view_container.locations .search_mode_active input {
    width: calc(100% - 70px);
}

.view_container.locations .sv_location_element_container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 10px;
}

.view_container.locations .sv_location_element_container.collapse {
    animation-name: collapse;
    animation-duration: 0.5s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    transform-origin: top;
}

@keyframes collapse {
    0% {
        height: 100px;
        margin-bottom: 0px;
    }
    100% {
        height: 0px;
        margin-bottom: -10px;
    }
}

.view_container.locations .sv_location_element_container .reveal_right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 80px;
    right: 0px;
    background: var(--system-red);
    color: var(--light-text);
    font-weight: 500;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.view_container.locations .sv_location_element {
    background: var(--secondary-system-background);
    padding: 10px 15px;
    text-align: left;
    min-height: 100px;
    position: relative;
    color: var(--label);
    z-index: 1;
}

.view_container.locations .sv_location_element .local_name {
    font-size: 18px;
    font-weight: bold;
}

.view_container.locations .sv_location_element .local_name i {
    color: var(--secondary-label);
    margin-left: 5px;
}

.view_container.locations .saved_locations_container {
    margin-top: 15px;
}

.view_container.locations .sv_location_element .local_time {
    margin-top: 4px;
    color: var(--secondary-label);
}

.view_container.locations .sv_location_element .condition_text {
    position: absolute;
    bottom: 10px;
    color: var(--secondary-label);
    font-weight: 500;
}

.view_container.locations .sv_location_element .current_temp {
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 36px;
    font-weight: 400;
}

.view_container.locations .sv_location_element .wx_stats {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: var(--secondary-label);
}

.view_container.storm_scope_settings,
.view_container.notification_settings {
    background: var(--secondary-system-background);
}

.view_container.storm_scope_settings .scroll_container {
    padding: 0px 20px;
}

body.showing_banner_ad .view_container.storm_scope_settings:after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--notch-inset-bottom) + 75px);
    background: var(--secondary-system-background);
    z-index: 1;
}

body.showing_banner_ad .view_container.forecast_viewer:after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--notch-inset-bottom) + 75px);
    background: var(--system-background);
    z-index: 1;
}

.action-btn {
    background: var(--system-blue);
    color: var(--light-text);
    border-radius: 10px;
    padding: 15px 0px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    width: calc(100vw - 40px);
    cursor: pointer;
}

.forecast_viewer .nws_container .nws_alerts_container {
    margin-top: -20px;
    margin-bottom: 20px;
}