@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

html {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

body{
  background-color: #ffffff;
  color: #596165;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  padding: 0;
  margin: 0;
  -webkit-user-select: none;
  user-select: none;
}

h1,h2,h3{
  color: black;
  margin-top: 4px;
  margin-bottom: 4px;
}

p{
  margin-top: 4px;
  margin-bottom: 8px;
  line-height: 1.5;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.heroImage{
  width: 100%;
  height: auto;
  margin-top: 36px;
  margin-bottom: 24px;
}

.centered{
  width: 100%;
  text-align: center;
}

.Container{
  width: 480px;
  transition: all 400ms cubic-bezier(0.335, 0.000, 0.225, 1.000);
  /* transform: scale(1); */
  margin: auto;
  padding-bottom: 128px;
}

.Container.pushedBack{
  transform: none;
}



form .hidden{
  display: none;
}

form .ResponseButton{
  width: calc(50% - 8px);
  float: left;
  -webkit-appearance: none;
  /* border: 2px solid #D8DCDF; */
  border: none;
  border-radius: 24px;
  height: 44px;
  margin: 0px 8px 0px 0px;
  background-color: white;
  font-family: "Inter", -apple-system;
  font-weight: normal;
  font-size: 18px;
  color: #596165;
  font-size: 18px;
  border: 2px solid rgba(0,0,0,0.2);
  box-sizing: border-box;
  /* box-shadow: 0px 1px 2px rgba(0,0,0,0.1), 0px 1px 4px rgba(0,0,0,0.1), 0px 6px 4px rgba(0,0,0,0.02); */
}

form .ResponseButton:active{
  /* transform: scale(0.98); */
  filter: brightness(92%);
}

form .ResponseButton.Primary{
  margin: 0px 0px 0px 8px;
  background-color: #0081cc;
  color: white;
  font-weight: bold;
  border: none;
  /* box-shadow: 0px 1px 2px rgba(0,129,204,0.1), 0px 1px 4px rgba(0,129,204,0.2), 0px 6px 4px rgba(0,129,204,0.1); */
}

.labelButton{
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 600;
  color: #0081CC;
}

form #responseIsPublicLabel{
  float: left;
  display: block;
  margin-bottom: 32px;
  line-height: 1.3;
  width: calc(100% - 70px);
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  float: right;
  margin-top: -13px;
  display: inline-block;
  width: 54px;
  height: 50px;
}

/* 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;
  margin: 8px 0px 8px 0px;
  background-color: #E9EDF0;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
  /* box-shadow: inset 0px 0px 0px 2px #D8DCDF; */
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0px 1px 2px rgba(0,0,0,0.2), 0px 2px 4px rgba(0,0,0,0.1), 0px 6px 4px rgba(0,0,0,0.1)
}

input:checked + .slider {
  background-color: #0081cc;
  /* box-shadow: inset 0px 0px 0px 26px #0081cc; */
}

input:focus + .slider {
  /* box-shadow: 0 0 1px #0081cc; */
}

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

.segmentedControl{
  margin-top: 32px;
  background-color: transparent;
  width: 100%;
  height: auto;
  border-radius: 0px;
  display: flex;
  align-items: stretch;
/*
  box-shadow: 0px 1px 2px rgba(0,0,0,0.1), 0px 1px 4px rgba(0,0,0,0.1), 0px 6px 4px rgba(0,0,0,0.02);
 */
}

.segmentedControl button{
  -webkit-appearance: none;
  background-color: white;
  border: none;
  /* border-top: 2px solid #D8DCDF;
  border-bottom: 2px solid #D8DCDF; */
  width: 33.3%;
  color: #596165;
  font-size: 16px;
  padding: 8px 0px 12px 0px;
  /* border-bottom: 1.5px solid #D8DCDF; */
  box-shadow: inset 0px -1.5px 0px #D8DCDF;
  box-sizing: border-box;
}

.segmentedControl button:active{
  -webkit-appearance: none;
  background-color: rgba(0,0,0,0.1);
  /* border-top: 2px solid #D8DCDF; */
  width: 33.3%;
/*
  color: #596165;
 */
}

.segmentedControl button.selected{
  color: black;
  font-weight: 500;
  /* border-bottom: 3px solid #0081cc; */
  box-shadow: inset 0px -3px 0px #0081cc;
}

ul.guestlist{
  padding-left: 24px;
}

ul.guestlist.accepted{
  list-style-image: url('img/icon/accepted.svg');
}

ul.guestlist.declined{
  list-style-image: url('img/icon/declined.svg');
}

.guestlist.no_response{
  padding-left: 0;
}

.guestlist.no_response h1{
  text-align: center;
  width: 100%;
  margin-top: 48px;
  opacity: 0.5;
}

.guestlist.no_response .emptystateTitle{
  text-align: center;
  display: block;
  width: 100%;
  opacity: 0.5;
}

.infoTable{
  padding-left: 0px;
  list-style: none;
  margin-top: 32px;
  margin-bottom: 32px;
}

.dropdownListItem{
  position: relative;
  display: inline-block;
  width: 100%;
}

.dropdownListItem:first-child .tableRow{
  border-bottom: none;
}

.tableRow{
  cursor: default;
  padding-top: 3px;
  height: 48px;
  border-top: 1.5px solid #D8DCDF;
  border-bottom: 1.5px solid #D8DCDF;
}

.tableRow .title{
  padding-top: 2px;
  line-height: 48px;
}

.tableRow .title:before{
  content: "";
  width: 32px;
  height: 32px;
  display: block;
  background-color: transparent;
  background-size: 32px 32px;
  float: left;
  margin-top: 6px;
  margin-right: 12px;
}

.dropdownListItem #location .title:before{
  background-image: url('img/icon/location.svg');
}

.dropdownListItem #date .title:before{
  background-image: url('img/icon/date.svg');
}

.tableRow.apple .title:before{
  background-image: url('img/icon/apple.svg');
}

.tableRow.google .title:before{
  background-image: url('img/icon/google.svg');
}

.tableRow .title:after{
  content: "";
  width: 32px;
  height: 32px;
  display: block;
  background-color: transparent;
  background-image: url('img/icon/chevron.svg');
  float: right;
  margin-top: 6px;
}

.tableRow.calendar .title:after{
  display: none;
}

.tableRow.maps .title:after{
  background-image: url('img/icon/external.svg');
}

.dropdownContent.hidden{
  pointer-events: none;
  transform: translateY(-12px) scaleY(0.75);
  opacity: 0;
}

.dropdownContent{
  transform: translateY(0px) scaleY(1);
  opacity: 1;
  pointer-events: all;
  transform-origin: top;
  transition: all 300ms cubic-bezier(0.335, 0.000, 0.225, 1.000);
  position: absolute;
  background-color: white;
  right: 0px;
  top: 36px;
  padding: 4px 12px 4px 12px;
  border-radius: 12px;
  box-shadow: 0px 1px 2px rgba(0,0,0,0.1), 0px 1px 4px rgba(0,0,0,0.1), 0px 6px 4px rgba(0,0,0,0.02);
  z-index: 11;
}

.dropdownContent .tableRow{
  border-top: 1.5px solid #D8DCDF !important;
  border-bottom: none !important;
}

.dropdownContent a:first-child .tableRow{
  border-top: none !important;
}

.dropdownContent a{
  text-decoration: none;
  color: #596165;
  font-size: 18px;
}

.dropdownContent .tableRow .title{
  padding-right: 24px;
}

.dimmer{
  pointer-events: all;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.1);
  position: fixed;
  left: 0px;
  top: 0px;
  transition: all 0.2s ease-in-out;
  /* -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px); */
  z-index: 10;
  transform: scale(1.2);
}

.dimmer.hidden{
  background-color: rgba(0,0,0,0);
  /* -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px); */
  pointer-events: none;
}

.dropdownContent a{
  width: 100%;
  display: block;
  clear: both;
}

.dropdownContent span.close{
  display: none;
}

@media only screen and (max-width: 600px) {
  .Container{
    width: 100%;
    padding: 16px;
    padding-bottom: 180px;
    box-sizing: border-box;
  }

  .dropdownListItem{
    position: static;
  }

  .dropdownContent.hidden{
    position: fixed;
    bottom: 0px;
    transform: translateY(200px) scaleY(1);
    opacity: 1;
  }

  .Container.pushedBack::after{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom: -20px;
    z-index:-1;
  }

  .dimmer{
    background-color: rgba(100,100,100,0.5);
    /* -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px); */
  }

  .dropdownContent .close{
    display: block;
    pointer-events: none;
    opacity: 0;
  }

  .dropdownContent{
    position: fixed;
    box-sizing: border-box;
    transform: translateY(0px) scale(1);
    transition: all 400ms cubic-bezier(0.335, 0.000, 0.225, 1.000);
    opacity: 1;
    left: 0px;
    top: auto;
    bottom: -20px;
    width: 100vw;
    height: calc(180px + env(safe-area-inset-bottom));
  }

  .dropdownContent span.close{
    display: block;
  }
}
