/*---- GLOBAL STYLES ---- */

/* Roboto: clean and functional */
@import url("https://fonts.googleapis.com/css?family=Roboto:300");

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

html {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 20px;
  text-rendering: optimizeLegibility;
}

/* ---- COMMON ----  */

h1,
h2,
h3,
h4,
h5,
h6 {
  text-shadow: none;
}

h1 {
  margin: 0 auto;
  padding-bottom: 2rem;
  text-align: center;
  font-size: 160%;
}

h2 {
  font-size: 120%;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* buttons animation */

@keyframes button-pulse {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

/* landing */

/* NAVBAR */

#navbar .nav-link:hover {
  color: #fff;
}

#navbar .nav-link {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease-in-out;
}

#navbar a.navbar-brand {
  padding-left: 0.1rem;
  padding-top: 0.5rem;
  margin-left: -12px;
}

.navbar-brand img {
  height: 50px;
}

#navbar .nav-link {
  transition: all 0.4s ease-in-out;
}

/* landing page overlay */

.overlay {
  height: 100vh;
  color: rgb(215, 215, 215);
  background: radial-gradient(
      rgba(0, 0, 0, 0.7) 0%,
      rgba(153, 218, 255, 0) 100%
    ),
    url("../images/landing-background.jpg"); /* radial scrim and background image */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* only display landing page for larger devices */
@media (min-width: 768px) {
  .overlay {
    height: 100vh;
    display: flex;
  }
}

.overlay-title {
  margin: 0;
  font-size: 2rem;
}

.overlay-content {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .overlay {
    display: flex;
  }
}

/* WORKING AREA */

#working-area {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 768px) {
  #working-area {
    grid-template-columns: 1fr 2fr;
  }
}

@media (min-width: 1224px) {
  #working-area {
    grid-template-columns: 1fr 4fr;
  }
}

/* WHO IS COMING SECTION */

#who-is-coming-section {
  padding: 20px;
  min-height: 100vh;
}

#who-is-coming-section .grid-container {
  display: grid;
  grid-template-columns: auto 60px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  #who-is-coming-section .grid-container {
    grid-template-columns: auto;
    justify-content: center;
  }
}

#who-is-coming-section h2 {
  font-size: 1.3rem;
}

/* MAP button for mobile devices to navigate
from Who-is-coming section MAP view */
.map-view-float-button {
  /* position: absolute; */
  width: 2.5rem;
  height: 2.5rem;
  top: 105px;
  right: 25px;
  border-radius: 5px;
  text-align: center;
}

.map-view-float-button img {
  height: 3rem;
  width: 3rem;
}

@media (min-width: 768px) {
  .map-view-float-button {
    display: none;
  }
}

#who-is-coming-section .add-participant {
  width: 100%;
}

/* let 'Add Row' button be of the same width as inputs */
@media (min-width: 300px) {
  #who-is-coming-section .container {
    max-width: 100%;
  }
}

/* enable scrollbar on who-is-coming section for large devices */
@media (min-width: 768px) {
  #who-is-coming-section {
    height: 100vh;
    overflow: auto;
  }
}

#addrow:first-letter {
  text-decoration: underline;
}

#who-is-coming-table input {
  text-align: center;
}

.participant-row {
  margin-bottom: 0.5rem;
}

.participant-row input {
  margin: 0.5rem;
  padding: 0;
}

.participant-row button {
  margin: 0.5rem;
  padding: 0;
  height: 3rem;
}

.participant-row ion-icon {
  font-size: 3rem;
  border-radius: 0.25rem;
  border: 0;
}

.add-participant-button {
  margin-bottom: 20px;
  display: none;
}

/* MAP VIEW */

.map-view-section {
  height: 100vh;
  position: relative;
}

#map {
  height: 100%;
}

/* PLUS button for mobile devices to navigate
from MAP view to Who-is-coming section */
.add-participant-float-button {
  position: absolute;
  width: 2rem;
  height: 2rem;
  top: 10px;
  right: 10px;
  background-color: #62c462;
  border-radius: 5px;
  text-align: center;
  z-index: 1;
}

@media (min-width: 768px) {
  .add-participant-float-button {
    visibility: hidden;
  }
}

#central-pin-info-window {
  padding: 0.2rem;
  font-size: 1rem;
  color: #000;
  transition: all 1s ease-in-out;
}

/* HELP */

/* hide from the main page - we load this content into help modal */
.help-section {
  display: none;
}

.swal2-title,
.swal2-header {
  margin: 0 auto;
}

div[class~="swal2-popup"] {
  padding: 0.8rem;
}

div[class~="swal2-popup"] p,
div[class~="swal2-popup"] div {
  text-align: justify;
  line-height: 150%;
  margin-bottom: 0.8rem;
}
#help-modal a:link,
a:visited {
  color: rgb(48, 133, 214);
  text-decoration: none;
}

#help-modal a:hover,
a:active {
  text-decoration: underline;
}

#help-modal ol {
  margin: 0.8rem;
}

#help-modal ol li {
  /* padding: 20px; */
  list-style-type: decimal;
  text-align: left;
  margin-top: 0.8rem;
  line-height: 150%;
}

#help-modal img {
  display: block;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  z-index: 99;
}

#swal2-content .help-heading {
  font-size: 1.3rem;
  text-align: center;
}

@media (min-width: 768px) {
  #help-modal img {
    width: 40%;
  }

  #help-modal {
    padding: 1.125rem;
    padding-bottom: 0;
  }

  div[class~="swal2-popup"] pб div[class~="swal2-popup"] div {
    font-size: 1.125rem;
    padding: 0.5rem;
    margin: 1.5rem;
    text-align: justify;
  }
}

div.swal2-actions {
  margin-top: 0;
}

/* FOOTER */

footer {
  font-size: 0.7rem;
  text-align: center;
}

@media (min-width: 768px) {
  footer {
    text-align: left;
  }
}

footer a,
footer a:visited {
  color: #fff;
}
footer a:hover,
footer a:active {
  color: #5bc0de;
}
