/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
    font-family: system-ui, -apple-system, -apple-system-font, 'Segoe UI', 'Roboto', sans-serif;
    font-size:12px;
    margin:0px;
    padding:0px;
    
    /* Padding to avoid the "unsafe" areas behind notches in the screen */
    padding-top: 1.8em; /* iOS 11.0 */
    
    text-transform:uppercase;
    width:100%;
    height: 100vh;
}

p{
    text-transform:none;

}

.fixed-bottom {
    padding-bottom: calc(10px + constant(safe-area-inset-bottom)); /* iOS 11.0 */
    padding-bottom: calc(10px + env(safe-area-inset-bottom)); /* iOS 11.2 */
}

.container {
    padding-left: 5px;
    padding-right: 5px;
    height: calc( 100vh - 85px);
    overflow: auto;
}

.mb-6{
    margin-bottom: 6rem!important;
}

.nav-bar{
    padding: .625rem .625rem !important;
}

.nav-link{
    padding: 0rem .625rem .625rem .625rem !important;
    font-size: .8rem !important;
    line-height: 1.5rem !important;
    height: 2.6rem !important;
}

#map_canvas { /* Must bigger size than 100x100 pixels */
    width: 100%;
    height: calc(65vh - 5.5rem);
}

#forcast {
    width: 100%;
    height: calc(23vh);
    max-height: 120px;
}

#forcast p{
    margin-bottom: 0px;
}

.day{
    font-size: .8rem;
    font-weight: 700;
}

.date{

}

.tmp{
    
}

.rain{
  font-weight: 600;
}

#sign-up-dialogue{
  display: none;
}

#risk-dialogue{
  display: none;
}

#overlay{
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
}

.col-24 {
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
    min-height: 1px;
    padding-left: 5px;
    padding-right: 5px;
    position: relative;
    width: 100%;
}

.badge{
    border-radius: 100px;
    width: 90%;
    padding-top: 90%;
    display: inline-block;
    /* box-shadow: 0 0 4px 0 rgba(0,0,0,.14), 0 3px 4px 0 rgba(0,0,0,.12), 0 1px 5px 0 rgba(0,0,0,.2); */
    position: relative;
    margin: auto;
    margin-left: 5%;
}

.badge span{
    font-size: 2rem;
    position: absolute;
    top: calc( 50% - 0.5rem );
    left: 0;
    bottom: 0;
    right: 0;
}

.badge-text{
    text-transform: uppercase;
    font-size: .7em;
    font-weight: 600;
    /* color: rgba(0,0,0,0.87); */
    margin-bottom: 0;
    margin-top: 10px;
}

.lowRisk{
    color: #4caf50!important;
}

.midRisk{
    color: #ff9800!important;
}

.highRisk{
    color: #f44336!important;
}

.flush-accordion{
    box-shadow: none;
    margin-left: -1rem;
    margin-right: -1rem; 
}

.btn-accordion {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    color: rgba(0,0,0,0.87);
    font-weight: 400;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    text-align: left;
    line-height: normal;
}

.btn-accordion.active, .btn-accordion:active {
    background-color: transparent;
    box-shadow: none;
}

.btn-accordion:focus, .btn-accordion:hover {
    background-image: none;
}

.btn-accordion:active, .btn-accordion:focus, .btn-accordion:hover {
    color: rgba(0,0,0,0.87);
    text-decoration: underline;
}

.card-header {
    border-bottom: none;
    border-top: 1px solid rgba(0,0,0,.12);
}

.navbar-nav .nav-link {
    opacity: .55;
}

.no-padding{
    padding-left: 0px;
    padding-right: 0px;
    display: inline-table;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.bold{
  font-weight: bold;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* IOS */
/*
#rainfallCard{
    position: absolute;
    margin-top: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    width: calc(100% - 2rem);
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
}
*/

/* Android */
#rainfallCard{
  position: absolute;
  bottom: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
  width: calc(100% - 2rem);
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
}

#riskCard{
  max-height: 80vh;
  overflow-x: auto;
}

@media only screen and (max-width: 320px) {
    .nav-link{
        padding: 0rem .625rem .625rem .54rem !important;
        font-size: .67rem !important;
    }
}