* {
    margin:  0;
    padding: 0;
    --text: #fff;
    --background: transparent;
    --border-thickness: 0.2rem;
    --placeholder-text: #fffa;
    --focus-outline: #fff8;
    background: var(--background);
    color: var(--text);
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-hue: 0;
    font-size: min( 1em, 100vw / 28 );
}

body {
    display: grid;
    justify-content: center;
    justify-items: center;
    align-items: start;
    padding: 0 1.5rem 4rem 1.5rem;
/*  background-image: url("images/mesh-gradient.png");
    background-size: 100vw 100vh;*/
}

#title-holder {
    padding-top: 2.5rem;
    width: 24rem;
    display: grid;
    grid-template-columns: 4.4rem 1fr;
}


#how-does-it-work {
    margin-top: 2rem;
}


#how-does-it-work-button,
#how-does-it-work-button:focus,
#how-does-it-work-button:active,
#how-does-it-work-button:hover {
    border: none;
    padding: 0;
    text-align: left;
    box-shadow: none;
    transform: scale(1.0);
    transition: transform 0.07s;
}

#how-does-it-work-button:hover {
    transform: scale(1.04);
}

#how-does-it-work-inner {
    margin-top: 0.4rem;
    display: grid;
    grid-gap: 0.5rem;
    text-align: justify;
}

#previous-meets {
    display: none;
    margin-top: 0.5rem;
}

.previous-meet {
    cursor: pointer;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr auto;
    transform: scale(1.0);
    transition: transform 0.07s;
}

.previous-meet:hover {
    transform: scale(1.04);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.5rem;
}
   
h3 {
    font-size: 1.17rem;
}

p {
    font-size: 1rem;
}

input, button, select {
    border: var(--border-thickness) solid var(--text);
    padding: 0.7rem;
    font-size: 1rem;
    width: 100%;
    border-radius: 0.7rem;
    background: transparent;
}

button, select, input[type="date"] {
    cursor: pointer;
}

button {
    user-select: none;
}

select {
    margin-top: -0.8rem;
}

input:focus, button:focus, select:focus {
    padding: 0.7rem;
    outline: none;
    transform: scale(1.04);
    box-shadow: 0 0 0 0.2rem var(--focus-outline);
}

a {
    display: grid;
    text-decoration: none;
}

.center-card {
    width: 24rem;
    display: grid;
    grid-row-gap: 1.5rem;
}

.center-card#about p a {
    display: inline;
    color: #8ff;
}

.top-ui {
    padding-top: 2rem;
    margin-bottom: -0.5rem;
    z-index: 1;
    display: grid;
}

.top-ui img {
    justify-self: right;
    height: 2.25rem;
    margin-top: -2.25rem;
    transform: translateY(-1.38rem);
    pointer-events: none;
}

#meet-title {
    margin-top: 0;
    margin-left: -0.8rem;
    font-size: 2.5rem;
    border: none;
    width: calc(100% + 1.6rem);
    height: 5.2rem;
}

.wide-button {
    cursor: pointer;
    text-align: left;
    transition: transform 0.07s;
}

.wide-button:hover {
    transform: scale(1.04);
}

.wide-button:active {
    transform: scale(0.95);
}

input[type="text"] {
    -webkit-user-select: text;
    user-select: text;
    color: var(--text);
    margin-top: -1rem;
    transition: transform 0.07s;
}

::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

input[type="text"]:hover, input[type="date"]:hover {
    transform: scale(1.04);
}

#google-signin {
    display: grid;
    grid-row-gap: 0.7rem;
	display: none;
}

.google-authorize-button {
    display: grid;
    margin-top: -0.2rem;
    grid-template-columns: 2.2rem 1fr;
    grid-gap: 0.6rem;
    text-align: left;
    justify-items: left;
    background: white;
}

.google-authorize-button h4 {
    color: black;    
}

.google-authorize-button img {
    display: grid;
    height: 1.5rem;
    width: 2rem;
    margin-left: 0.2rem;
    transform: scale(1.15);    
}

#import-calendar-feedback {
    margin-left: 0.9rem;
    font-size: 1.1rem;
}

#months, .month-holder, #user-calendar, #group-calendar, #calendar {
    display: grid;
    grid-row-gap: 1.5rem;
}

.bottom-buttons {
    display: grid;
    grid-gap: 0.5rem;
    margin-top: 4rem;
    justify-items: start;
}

.bottom-buttons a {
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.07s;
    transform: scale(1.0);
}

.socials {
    display: grid;
    margin-top: 1rem;
    grid-gap: 1rem;
    grid-template-columns: 1fr 1fr 1fr;
}

.bottom-buttons img {
    width: 2rem;
    align-self: center;
}

.a2hs {
    display: none;
}

.bottom-buttons a:hover {
    transform: scale(1.04);
}

#months.my-availability .month-holder button,
#months.my-availability .hours-day-template button {
    background: hsla( 0, 100%, 60%, 0.7 );
}

#months.my-availability .month-holder button.selected,
#months.my-availability .hours-day-template button.selected {
    background: hsla( 120, 100%, 60%, 0.7 );
    /*border: calc( var(--border-thickness) * 2 ) solid var(--text);*/
}

#months.group-availability button {
    background: var(--group-availability-bg);
}

form.toggle-form {
    display: grid;
    grid-template-columns: 1fr min-content 1fr;
    font-size: 1.2rem;
    align-items: center;
    text-align: center;
}

.hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
    max-width: 24rem;
}

#months.my-availability #calendar-instruction .group-availability,
#months.group-availability #calendar-instruction .my-availability {
    display: none;
}

.days-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-top: -0.3rem;
    margin-bottom: -0.5rem;
    text-align: center;
}

.days-labels h4 {
    /*padding-left: 0.4rem;*/
    justify-self: center;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-top: -0.6rem;
}

.hours-holder {
    display: grid;
    grid-row-gap: 1.5rem;
    text-align: center;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    grid-template-rows: 1fr;
}

.hours-holder #times-holder {
    display: grid;
    transform: translateX(0.5rem) translateY(3.4em);
    height: calc( 100% - 2.2rem );
}

.hours-holder #times-holder h4 {
    font-size: 0.9rem;    
}

.hours-day-template {
    display: grid;
    margin-left: -0.2rem;
}

.hours-day-template .day-label {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.days-grid button {
    padding: 0;
    margin: -0.05rem;
    height: 3.2rem;
    transition: transform 0.07s;
    width: auto;
    /*border: none;*/
}

.hours-day-template button {
    padding: 0;
    border-radius: 0;
    margin-bottom: -0.2rem;
    height: 2rem;
    transition: transform 0.07s;
    transform: scale(1.0);
    display: grid;
}

#months.my-availability .days-grid button,
#months.my-availability .hours-day-template button {
    ctouch-action: none;
}

.hours-day-template:nth-child(1) {
    margin-left: 0;
}

.hours-day-template:nth-child(1) button {
    border: none;
    background-clip: content-box;
}

.hours-day-template:nth-child(1) button button {
    background: transparent !important;
    border: var(--border-thickness) solid var(--text); 
    pointer-events: none;
    clip-path: polygon( 0 0, 0.5rem 0, 0.5rem 100%, 0 100%, 0 0, 3.05rem 0, 3.05rem 100%, 100% 100%, 100% 0  );
    -webkit-clip-path: polygon( 0 0, 0.5rem 0, 0.5rem 100%, 0 100%, 0 0, 3.05rem 0, 3.05rem 100%, 100% 100%, 100% 0  );
}

.hours-day-template:nth-child(1) button h4 {
    font-size: 0.85rem;
    transform: translateY(-2.4rem);
    margin-left: 0.6rem;
    width: 2.3rem;
    justify-self: left;
    font-weight: 600;
    text-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.4); 
    pointer-events: none;
}

.hours-day-template:nth-child(1) button button:hover {
    transform: scale(1.0);
}

c.hours-day-template:nth-child(2) button {
    border-top: none;
    border-bottom: none;
}

.hours-day-template button:nth-child(15),
.hours-day-template button:nth-child(15) button {
    border-radius: 0 0 0.5rem 0.5rem;
}

.hours-day-template button:nth-child(2),
.hours-day-template button:nth-child(2) button {
    border-radius: 0.5rem 0.5rem 0 0;
}

.days-grid button:hover, c.hours-holder button:hover {
    transform: scale(1.1);
}

.days-grid button:active, c.hours-holder button:active {
    transform: scale(0.9);
}

.hours-holder button:hover,
.hours-holder button:active,
.hours-holder button:focus {
    transform: scale(1.0);
}

.days-grid button.selected {
    text-decoration: underline;
}

.center-card svg {
    width: 100%;
    height: 24rem;
    padding: 2rem;
    overflow: visible;
}

.center-card #qr-button {
    margin-top: -0.5rem;
}

.center-card #qrcode rect {
    stroke: black;
    stroke-width: 0.045;
}

.popup-holder {
}

.popup {
    display: grid;
    grid-row-gap: 0.2rem;
    border: var(--border-thickness) solid var(--text);
    border-radius: 0.7rem;
    padding: 0.7rem;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    max-width: 24rem;
    width: calc(100% - 3rem);
    cursor: pointer;
    transition: transform 0.34s;
    transform: translateY(calc(100% + 2rem)) translateX(-50%);
    background: hsla( var(--bg-hue), 70%, 30%, 0.8 );
}

@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .popup {
    background: hsla( var(--bg-hue), 70%, 30%, 0.4 );
    -webkit-backdrop-filter: blur(0.25rem);
    backdrop-filter:         blur(0.25rem);
  }
}

.popup:focus {
    outline: none;
}

.popup:focus, .popup.show {
    transform: translateY(0) translateX(-50%);
}

#confirm-popup.show + #available-popup:focus,
#confirm-popup.show + #available-popup.show {
    transform: translateY(-4rem) translateX(-50%);
}

#confirm-popup svg, #available-popup svg {
    background: transparent; 
    width: 1rem; 
    grid-column: 2; 
    align-self: end; 
    justify-self: right; 
    overflow: visible;
    margin-bottom: 0.4rem;
    margin-right: 0.2rem;
}

#confirm-popup svg path, #available-popup svg path {
    stroke: var(--text); 
    stroke-width: 0.4; 
    stroke-linecap: round; 
    fill: none; 
    stroke-linejoin: round;
}

#available-popup h3 {
    grid-column: 1/3;
}

#available-popup p {
    margin-left: 0.5rem;
    max-height: 10.6rem;
    width: 19.5rem;
    overflow: scroll;
    line-height: 1.4rem;
    white-space: pre-wrap;
}

#available-popup p {
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}
#available-popup p::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}

#background-canvas {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: -100;
    background: #da5ea1; /*hsl(calc(0.9*360deg), 100%, 75%);*/
    background: linear-gradient(27deg, rgba(219,68,193,1) 0%, rgba(235,107,151,1) 100%);
}

#center-logo-holder {
    display: grid;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-content: center;
}

#privacy p {
    text-align: justify;
}

#center-logo-holder img, #center-logo-holder svg {
    height: 5.2rem;
}

#ad {
    margin-top: 10rem;
    grid-gap: 0.7rem;
    justify-self: center;
}

#ad.shown {
    display: grid;
}

#ad iframe {
    height: 32rem;
    justify-self: center;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--placeholder-text);
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: var(--placeholder-text);
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: var(--placeholder-text);
}
