/* check contrast https://webaim.org/resources/contrastchecker */

/* general content */
* {
    box-sizing: border-box;
    font-family: 'Varela Round', sans-serif;
}

:root {
    direction: rtl;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    width: 100%;
    height: 6vh;
    min-height: 55px;
    background-color: rgb(193,229,245);
    display: flex;
    align-items: center;
    overflow: visible;
    justify-content: center;
    box-shadow: 0 1px 2px;
    order: 0;
}

header span {
    font-size: 100%;
    width: 40%;
    color: rgb(14, 40, 65);
    font-weight: bold;
    margin: 5%;
}

#header-left {
    direction: rtl;
    text-align: right;
}

#header-right {
    direction: rtl;
    text-align: left;
}

header img {
    width: auto;
    height: 100%;
    cursor: pointer;
}

#app {
    flex: 1;
    overflow-y: auto;
    order: 1;
    scrollbar-width: none;
}

#map {
    height: 100%;
}

footer {
    order: 2;
}

footer nav {
    display: flex;
    width: 100%;
    height: 5.5vh;
    min-height: 50px;
    border-top: 1px solid rgba(171, 171, 171, 0.7);
    overflow: hidden;
    background-color: white;
    justify-content: space-between;
}

footer a {
    line-height: 100%;
    color: rgb(128, 128, 128);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: white;
    flex-direction: column;
    font-size: 80%;
    cursor: pointer;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.material-icons {
    font-size: 220%;
}

footer nav a:hover {
    color: #457B9D;
}

footer nav a.active {
    color: #38b166;
}

/* ripple effect */
.ripple {
    position: absolute;
    background: rgba(0,0,0,0.25);
    border-radius: 100%;
    pointer-events: none;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    z-index: 12
}

.ripple.show {
    -webkit-animation: ripple 0.45s ease-out;
    animation: ripple 0.45s ease-out;
}

@-webkit-keyframes ripple {
    to {
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes ripple {
    to {
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
        opacity: 0;
    }
}

.navbar-ripple {
    background: rgba(69,123,157,0.25);
}

/* share */
#curtain {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
}

#share-options {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    min-width: 50%;
    width: 350px;
    height: auto;
    background-color: white;
    border-radius: 20px;
    padding: 3% 0;
    z-index: 2001;
}

.share-option {
    border-top: 1px solid rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(0,0,0,0.25);
    padding: 0 5%;

    display: flex;
    align-items: center;
    cursor: pointer;
    color: black;
    text-decoration: none;
}

.share-option img {
    width: 30px;
    height: 30px;
}

.share-option p {
    padding-right: 5%;
}

/*snackbar*/
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: white /*#fff*/;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 2002;
    left: 50%;
    bottom: 6.5%;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 1.5s;
    animation: fadein 0.5s, fadeout 0.5s 1.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {/*bottom: 5.5vh; */opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {/*bottom: 5.5vh; */opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {/*bottom: 5.5vh; */opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {/*bottom: 5.5vh; */opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* coming-soon */
.coming-soon {
    display: inline-block;
    padding: 6px 14px;
    background-color: #e53935; /* vibrant red */
    color: white;
    font-weight: bold;
    font-size: 14px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
    }
    70% {
      transform: scale(1.05);
      box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
    }
  }

#home, #not-found {
    padding: 15px;
}