@charset "UTF-8";

/* 

    YDITS for Web

    Copyright (C) よね/Yone

    Licensed under the Apache License 2.0.

*/

/* ----- Button ----- */
.button {
    display: inline-block;
    border: solid 1px #ffffffff;
    border-radius: 2rem;
    padding: 1rem;
    background-color: #00000000;
    font-size: 1rem;
    transition: all .3s;
}

.button:hover {
    background-color: #ffffff;
    color: #404040ff;
}

/* ----- Dialog ----- */
.dialog {
    position: fixed;
    top: calc(50vh - 14rem);
    left: calc(50vw - 16rem);
    display: block;

    width: 32rem;
    height: 28rem;
    border: 0;
    border-radius: .8rem;
    box-shadow: 0 0 2px 2px #00000040;

    overflow: hidden;
    padding: 0;
    background-color: #202020ff;
    color: #ffffffff;

    z-index: 10;
}

.dialog .navBar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    height: 2rem;

    overflow: hidden;
    background-color: #404040ff;
}

.dialog .navBar .title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    height: 2rem;

    overflow: hidden;
}

.dialog .navBar .close {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: absolute;
    top: 0;
    right: 0;

    width: 3rem;
    height: 2rem;
    overflow: hidden;

    cursor: pointer
}

.dialog .navBar .close:hover {
    background-color: rgba(0, 0, 0, .2);
}

.dialog .content {
    padding: 1rem;
    overflow: auto;
    font-size: 12px;
}

@media (max-width: 769px) {
    .dialog {
        position: fixed;
        top: 8vh;
        left: 8vw;
        margin: 0;
        width: 84vw;
        height: 84vh;
    }
}

/* ----- Toggle switch ----- */
.toggle-switch {
    display: inline-flex;
    align-items: center;

    /* display: inline-block; */

    width: 52px;
    height: 26px;
    border-radius: 2em;

    background-color: #7f7f7f;
    cursor: pointer;

    transition: all .2s;
}

.toggle-switch>.span {
    position: relative;
    left: 0px;

    display: inline-block;

    height: 30px;
    width: 30px;
    border-radius: 15px;

    background-color: #fff;

    transition: all .2s;
}

.toggle-switch.on {
    background-color: #4040ffff;
}

.toggle-switch.on>.span {
    left: 22px;
}

/* ----- Notifycation ----- */
#notify {
    visibility: hidden;
    display: inline-block;

    position: fixed;
    bottom: 2rem;
    right: calc(100% * -1);

    margin-left: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 2px 2px #00000040;
    max-width: calc(100vw - 4rem);
    overflow: auto;
    padding: 1rem 2rem;
    background-color: #404040ff;
    color: #ffffffff;
    font-weight: bold;

    z-index: 2;
    transition: all .4s;
}

#notify.active {
    visibility: visible;
    right: 2rem;
}


/* ----- EEW Notify ----- */
#eewNotify {
    visibility: hidden;
    display: block;

    position: fixed;
    bottom: 2rem;
    left: calc(100% * -1);

    margin-right: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 2px 2px #00000040;
    max-width: calc(100vw - 4rem);
    overflow: auto;
    padding: 1rem 2rem;
    background-color: #f04040ff;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;

    z-index: 3;
    cursor: pointer;
    transition: all .4s;
}

#eewNotify.active {
    visibility: visible;
    left: 2rem;
}

#eewNotify:hover {
    background-color: #f01010ff;
}

@media (max-width: 768px) {
    #eewNotify {
        padding: 1rem 1rem;
        font-size: 1.1rem;
    }
}


/* ---------- EEW Warn ---------- */
#eewWarn {
    visibility: hidden;
    z-index: 4;
}

#eewWarn.active {
    visibility: visible;
    top: calc(env(titlebar-area-height, 2rem) + 1rem);
}

#eewWarn .closeBtn {
    left: unset;
    right: 1.5rem;
}

#eewWarn .warn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(100% - 4rem);
    padding: 2rem;
    background-color: #f05050ff;
}

#eewWarn .warn>.icon {
    margin-bottom: 2rem;
    font-size: 7.5rem;
}

#eewWarn .warn span:not(.icon) {
    display: inline-block;
    margin-bottom: .175em;
    font-size: 2.5rem;
    font-weight: bold;
}

#eewAreas {
    width: calc(100% - 10vw);
    padding: 2rem 5vw;
    font-size: 1.3rem;
}

#eewAreas>.label {
    display: block;
}

#eewForecast {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

#eewForecast>.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    text-align: center;
}

#eewForecast .value {
    font-size: 4rem;
    font-weight: bold;
}

#eewForecastDes {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    text-align: center;
}