html {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
body {
    font-family: -apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft JhengHei", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;
    background-color: #EEE;
}

a,
button,
select {
    outline: none;
    cursor: pointer;
    border: none;
}

.img-responsive {
    width: 100%;
    height: auto;
    margin-bottom: -3px;
}

#container {
    width: 100%;
    min-width: 320px;
    max-width: 960px;
    margin: 0 auto;
}


#header-bar {
    width: 100%;
    height: 60px;
    color: #ffffff;
    background: rgb(3, 30, 77);
    /*background: rgba(204, 237, 255, 0.5);*/
    display: flex;
    align-items: center;
}
.page-logo {
    width: 60px;
}
.page-logo img {
    width: 50px;
    margin: 5px;
}
.page-title {
    width: 100%;
    text-align: center;
    /*margin-left: -60px;*/
    font-size: 1.1em;
    font-weight: bold;
}
.page-title-img {
    width: 240px;
    margin-top: 8px;
}


main {
    background-size: 100% 100%;
    /*background-position: 0 35px;*/
    background-image: url('files/bg_mid.jpg');
    position: relative;
}
#poem {
    width: 90%;
    margin: 0 auto 10px auto;
    color: #1c3683;
    text-align: center;
    line-height: 1.5em;
    font-size: 1em;
    font-weight: bold;
}
/* #symbol { */
   /* width: 50px; */
   /* display: block; */
   /* margin: auto auto -5px auto; */
/* } */


#guide {
    max-width: 960px;
    margin: -20px auto;
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: 99999;
}
#guide > div {
    margin: 0 auto;
    width: 90%;
    min-height: 550px;
    padding: 50px 12px;
    border-radius: 5px;
    background: #FFFE;
    box-shadow: 0 4px 3px #3333;
}
#guide > div > div {
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
    line-height: 2.5em;
}
#close-guide {
    width: 100%;
    text-align: center;
}

#mantra-grid {
    margin: 0 auto;
    overflow: hidden;
}
#mantra-grid {
    width: 70%;
    min-width: 300px;
    display: grid;
    grid-template-rows: 240px 60px auto 50px 120px 80px auto auto auto;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-gap: 10px 10px;
    justify-content: space-around;
    justify-items: center;
}
.mantra-wheel-box {
    grid-row: 1 / 3;
    grid-column: 1 / 4;
}
.faster-switch-box {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
}
.repeat-switch-box {
    grid-row: 2 / 3;
    grid-column: 3 / 4;
}

.mantra-control-button {
    grid-row: 3 / 4;
    grid-column: 1 / 4;
}

.mantra-text-box {
    grid-row: 4 / 5;
    grid-column: 1 / 4;
    align-self: center;
}
#mantra-select-box {
    grid-row: 5 / 6;
    grid-column: 1 / 4;
    text-align: center;
}
#mantra-counter-box {
    grid-row: 6 / 7;
    grid-column: 1 / 4;
    align-self: center;
    padding: 10px;
    border-radius: 6px;
    background: rgba(175, 206, 216, 0.5);
    text-align: center;
}
.fb-comments {
    grid-row: 7 / 8;
    grid-column: 1 / 4;
    margin-top: 40px;
}
#sponsor-box {
    grid-row: 8 / 9;
    grid-column: 1 / 4;
    margin-top: 40px;
}

#logo2 {
    grid-row: 8 / 9;
    grid-column: 1 / 4;
    display: flex;
    align-items: center;
    text-align: center;
}
.logo2 {
    width: 300%;
    max-width: 300px;
}


.mantra-wheel-box,
.mantra-wheel-center,
#mantra-wheel-spin {
    width: 300px;
    height: 300px;
}
.mantra-wheel-box {
    position: relative;
}
.mantra-wheel-center {
    position: absolute;
    top: 0;
    left: 0;
}
.mantra-wheel-button {
    cursor: pointer;
}

.switch-label {
    text-align: center;
    margin: 4px;
}

.mantra-text-box {
    width: 95%;
    overflow: hidden;
    padding: 8px;
    border-radius: 6px;
    background: #FFF9;
}
#mantra-text {
    white-space: nowrap;
}
.highlight {
    color: #999;
    -webkit-animation: pulse 0.5s ease-out;
    -moz-animation: pulse 0.5s ease-out;
    animation: pulse 0.5s ease-out;
}

#mantra-select-box {
    min-width: 180px;
}
#mantra-select-box > label {
    line-height: 1.5em;
}
#mantra-select-box > select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    background: #FFF9;
}


.button-img {
    margin: 10px auto;
    padding: 14px 0 18px;
    width: 120px;
    /*height: 60px;*/
    background-image: url("./files/draw_button.png");
    background-size: 100% 100%;
    background-color: unset;
    border: unset;
    font-family: unset;
    font-size: 1rem;
    font-weight: bold;
    /*letter-spacing: 3px;*/
    outline: none;
    cursor: pointer;
    color: #0f4391;
}


footer {
    position: relative;
}
#share-box {
    position: absolute;
    top: 40px;
    left: 50%;
    margin-left: -100px;
    width: 200px;
    line-height: 3rem;
    font-weight: bold;
}
#share-box img {
    width: 40px;
    padding-top: 20px;
}
#share-button {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: #1c3683;
}
#sponsor-box {
    width: 100%;
    text-align: center;
    line-height: 1.6em;
    color: #952521;
    font-weight: bold;
}


/* #onoffswitch */
.onoffswitch {
    position: relative; width: 72px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
    display: none;
}
.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 1px solid #999999; border-radius: 18px;
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.25s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 28px; padding: 0; line-height: 28px;
    font-size: 13px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-sizing: border-box;
}
.onoffswitch-inner:before {
    content: "ON";
    padding-left: 10px;
    background-color: #1c3683; color: #FFFFFF;
}
.onoffswitch-inner:after {
    content: "OFF";
    padding-right: 10px;
    background: #EEEEEE66; color: #999999;
    text-align: right;
}
.onoffswitch-switch {
    display: block; width: 14px; height: 14px ; margin: 7px;
    background: #FFFFFF;
    position: absolute; top: 0; bottom: 0;
    right: 38px;
    border: 1px solid #999999; border-radius: 11px;
    transition: all 0.25s ease-in 0s;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0;
}
