/*
    style.css
    for red tide map
-------------------------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
}

a:link    { color: #eee; }
a:visited { color: #eee; }
a:hover   { color: #eee; }
a:active  { color: #eee; }

body {
    background-color: #030303;
    color: #e0e0e0;
    font-family: 'YuGothic', 'Hiragino Sans', 'Meiryo', 'MS PGothic', sans-serif;
    font-size: 1em;

}

div {
    box-sizing: border-box;
}
div .fw {
    width: 100vw;
    white-space: nowrap;
    overflow: hidden;
}
div .buttonCsv {
    display: inline-block;
}
@media screen and (max-width: 768px) {  /* width:768px 以下のとき */
    div .buttonCsv {
        display: none;
    }
}

#header {
    height: 60px;
    border-bottom: 1px solid #666;
    line-height: 60px;
    /* padding-left: 1em; */
    font-size: 1.2em;
    font-weight: bold;
}

#header .icon {
    width: 30px;
    height: 30px;
    margin-bottom: -7px;
    cursor: pointer;
}

#footer {
    margin-bottom: 0;
    height: 60px;
    /* border-top: 1px solid #666; */
}
@media screen and (min-width: 768px) {  /* width:768px 以上のとき */
    #footer {
        height: 0;
    }
}


/* マップ選択 */
#areaselector, #datepicker {
    width: 35%;
    max-width: 10em;
    background-color: #222;
    color: #eee;
    font-size: 1em;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 3px 6px;
    box-sizing: border-box;
}

/* 地図を表示する領域 */
#map {
    position: relative;
    height: calc(100vh - 120px);
    overflow: hidden;
}
@media screen and (min-width: 768px) {  /* width:768px 以上のとき */
    #map {
        height: calc(100vh - 60px);
    }
}

#unit {
    width: 2em;
    height: 2em;
    z-index: 20;
    position: absolute;
    right: 0;
    top: 0;
    pointer-events: none;
}

#scale {
    width: 2em;
    height: calc(100vh - 120px - 2em);
    z-index: 20;
    position: absolute;
    right: 0;
    top: 2em;
    pointer-events: none;
}
@media screen and (min-width: 768px) {  /* width:768px 以上のとき */
    #scale {
        height: calc(100vh - 60px - 2em);
    }
}

#level {
    width: 2em;
    height: auto;
    z-index: 20;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

/* 地図画像 */
#tile {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    will-change: transform;
    user-select: none;
    touch-action: none;
    max-width: none;
}

/* 観測地点 */
.point {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-9999px, -9999px); /* 初期非表示 */
}
.point:hover {
    cursor: pointer;
}
.z0 {
    z-index: 10;
}
.z1 {
    z-index: 11;
}

/* ポップアップウインドウ */
#info, #form {
    position: fixed;
    left: 0;
    top: 100vh;
    width: 100vw;
    height: 100vh;
    z-index: 90;

    background-color: #222;
}

#info table, #form table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    line-height: 2.5;
}

#info th, #form th {
    white-space: nowrap;
}

#form input[type="text"] {
    width: 100%;
    background-color: #222;
    color: #eee;
    font-size: 1em;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 3px 6px;
    box-sizing: border-box;
}

#form select {
    width: 100%;
    background-color: #222;
    color: #eee;
    font-size: 1em;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 3px 6px;
    box-sizing: border-box;
}

#form input[name="density"] {
    width: 50%;
}

#info button, #form button {
    background-color: #222;
    color: #eee;
    font-size: 1em;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 3px 6px;
    box-sizing: border-box;
    cursor: pointer;
}

#info .entry, #form .submit {
    background-color: #444;
}


/* login form */
.wrap {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    line-height: 3;
    color: #eee;
}
h1 {
    font-size: 1.2em;
}
h1 img {
    width: 1.2em;
    height: 1.2em;
    margin-bottom: -4px;
}
.message {
    font-weight: bold;
    color: #a11;
}
#loginform input {
    box-sizing: border-box;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 3px 6px;
    background-color: #030303;
    color: #eee;
    font-size: 1em;
}
#loginform .button {
    width: 20em;
    cursor: pointer;
}
