@charset "UTF-8";

/*!

    YDITS for Web

    Copyright (C) よね/Yone
    Licensed under the Apache License 2.0.

    https://github.com/YDITS/YDITS-Web

*/

/* button */

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

    &:hover {
        background-color: #fff;
        color: #404040;
    }
}

/* 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;

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

        height: 2rem;

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

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

        height: 2rem;

        overflow: hidden;
    }

    .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
    }

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

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

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

/* toggle-swtich */

.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;

    &>.span {
        position: relative;
        left: 0px;

        display: inline-block;

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

        background-color: #fff;

        transition: all .2s;
    }

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

    &.on>.span {
        left: 22px;
    }
}

/* notify */

#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;

    &.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;

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

    &.active {
        visibility: visible;
        left: 2rem;
    }

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

/* eew-warn */

#eewWarn {
    visibility: hidden;
    z-index: 4;

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

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

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

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

    .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;

    &>.label {
        display: block;
    }
}

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

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

    .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;
}
