/*
Theme Name: Eventr
Theme URI: https://harmonicdesign.ca
Author: Harmonic Design
Author URI: https://harmonicdesign.ca
Description: Like Tinder, but for local events
*/

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body,
main {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-size: 20px;
    line-height: 1.6;
    color: #222;
    font-family: sans-serif;
    overflow-x: hidden;
}

.full_div {
    display: none;
    height: calc(100vh - 60px);
    width: 100%;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 1;
    padding: 0.8rem;

    -webkit-transition: all 250ms ease-in-out !important;
    -moz-transition: all 250ms ease-in-out !important;
    -o-transition: all 250ms ease-in-out !important;
    -ms-transition: all 250ms ease-in-out !important;
    transition: all 250ms ease-in-out !important;
}

.animate {
    -webkit-transition: all 1000ms ease-in-out;
    -moz-transition: all 1000ms ease-in-out;
    -o-transition: all 1000ms ease-in-out;
    -ms-transition: all 1000ms ease-in-out;
    transition: all 1000ms ease-in-out;
}

#login_signup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    color: #fff;
    text-align: center;
    background: #8b6aef;
    z-index: 9999;
    overflow: hidden;
    word-wrap: none;
}

.login_title {
    letter-spacing: 0.1rem;
}

.login_title,
.tagline {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.tagline {
    font-size: 1.3rem;
    font-weight: normal;
}

#gSignIn {
    display: inline-block;
    margin-top: 1rem;
}

header {
    position: fixed;
    height: 3rem;
    width: 100%;
    top: 0;
    left: 0;
    background: #8b6aef;
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    align-content: center;
    padding: 0 0.8rem;
    column-gap: 0.8rem;
    border-bottom: 1px solid #6d4ad4;
    z-index: 80;
}

#header_title {
    line-height: 1;
    padding: 0;
    margin: 0;
    color: #fff;
    font-size: 1rem;
    margin-bottom: -4px;
}

.nav_menu {
    width: 25px;
    height: 18px;
    margin: 0;
    -webkit-transform: rotate(0);
    -moz-transform: rotate(0);
    -o-transform: rotate(0);
    transform: rotate(0);
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
    cursor: pointer;
    z-index: 100;
}
.nav_menu span {
    position: absolute;
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0);
    -moz-transform: rotate(0);
    -o-transform: rotate(0);
    transform: rotate(0);
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
}

.nav_menu span:nth-child(1) {
    top: 0;
}

.nav_menu span:nth-child(2),
.nav_menu span:nth-child(3) {
    top: 8px;
}

.nav_menu span:nth-child(4) {
    top: 16px;
}

.nav_menu.open span:nth-child(1),
.nav_menu.open span:nth-child(4) {
    top: 18px;
    width: 0;
    left: 50%;
}

.nav_menu.open span:nth-child(2) {
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.nav_menu.open span:nth-child(3) {
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#sidebar {
    background: #8b6aef;
    width: 0;
    height: calc(100vh - 60px);
    top: 60px;
    left: 0;
    position: fixed;
    overflow: hidden;
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
    z-index: 99;
}

.nav_open #sidebar {
    width: 60vw;
}

#navigation {
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    color: #fff;
}

.nav_item {
    padding: 0.4rem;
    margin: 0 0.2rem;
    white-space: nowrap;
}

#logout {
    color: #fff;
    position: absolute;
    bottom: 0;
    padding: 0.4rem 1rem;
    display: none;
    z-index: 1;
    opacity: 0;
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
    white-space: nowrap;
}

#sidebar_profile {
    padding: 0.8rem;
    color: #fff;
}

#sidebar_profile_pic {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    line-height: 100px;
    overflow: hidden;
}

#profile_sidebar_pic {
    width: 100%;
    display: block;
}

#sidebar_user_meta {
    padding: 0.4rem 0;
    white-space: nowrap;
}

#sidebar_name {
    font-weight: bold;
}

#sidebar_meta {
    font-size: 0.7rem;
}

.nav_open #logout {
    display: block;
    opacity: 1;
}

#logout_icon {
    margin-bottom: -3px;
}

.nav_open .full_div {
    left: 60%;
}

.title {
    margin: 0;
    font-size: 1.4rem;
    color: #444;
}

#events {
    align-items: center;
    display: grid;
    grid-template-rows: 1fr max-content;
    height: calc(100vh - 60px);
}

#cards {
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 80%;
    height: 80%;
    justify-content: center;
    display: flex;
}

.card {
    background-color: #fff;
    height: 100%;
    width: 100%;
    border-radius: 4px;
    text-align: center;
    overflow: hidden;
    position: absolute;
    opacity: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
    border-radius: 0.4rem;
    color: #fff;

    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
    box-shadow: 0 0 12px -2px #777;
    max-width: 400px;

    background-size: cover;
    background-position: center;
}

.card_active {
    opacity: 1;
    pointer-events: auto;
    z-index: 4;
    transform: scale(1);
    background-color: #8b6aef;
    box-shadow: 0 1px 12px -2px #777;

    background-size: cover;
    background-position: center;
}

.card:nth-child(2) {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
    transform: scale(0.95) translate3d(0px, -5%, -100px);
    background-color: #9977ff;
    width: 95%;
}

.card:nth-child(3) {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    transform: scale(0.9) translate3d(0px, -10%, -200px);
    background-color: #b39bff;
    width: 90%;
}

.card_meta {
    padding: 0.4rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    background: rgba(139, 106, 239, 0.8);
}

.card_meta_title,
.card_meta_desc {
    margin: 0;
}

.card_map {
    display: block;
    height: 100%;
}

#controls {
    padding-bottom: 2rem;
    text-align: center;
    align-content: flex-start;
}

.control {
    border-radius: 50%;
    background: #fff;
    border: none;
    background: none;
    position: relative;
    display: inline-block;
    padding: 0.25em;
    margin: 0 2rem;
    cursor: pointer;
    font-size: 1rem;
    width: 60px;
    height: 60px;
    z-index: 1;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    box-shadow: 0px 0px 8px #777;
}

.control:focus {
    outline: 0;
    /* hate having to do this, but it looks broken having it in a "native" app */
}

.control.active::before {
    -webkit-animation: anim-effect-sonar 0.3s ease-out forwards;
    animation: anim-effect-sonar 0.3s ease-out forwards;
    opacity: 1;
}

.control::before {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    content: "";
    opacity: 0;
    pointer-events: none;
    border: 4px solid rgba(0, 0, 0, 0.4);
    margin: -35px 0 0 -35px;
    width: 70px;
    height: 70px;
}

.control_reject {
    color: #e66868;
}

.control_accept {
    color: #81d47d;
}

.reject {
    -webkit-animation: yudaReject 0.5s forwards;
    animation: yudaReject 0.5s forwards;
}

.accept {
    -webkit-transform-origin: 50% 300%;
    transform-origin: 50% 300%;
    -webkit-animation: yudaAccept 0.5s forwards;
    animation: yudaAccept 0.5s forwards;
}

@-webkit-keyframes anim-effect-sonar {
    0% {
        opacity: 1;
        -webkit-transform: scale3d(0.9, 0.9, 1);
        transform: scale3d(0.9, 0.9, 1);
    }
    to {
        opacity: 0;
        -webkit-transform: scale3d(1.4, 1.4, 1);
        transform: scale3d(1.4, 1.4, 1);
    }
}

@keyframes anim-effect-sonar {
    0% {
        opacity: 1;
        -webkit-transform: scale3d(0.9, 0.9, 1);
        transform: scale3d(0.9, 0.9, 1);
    }
    to {
        opacity: 0;
        -webkit-transform: scale3d(1.4, 1.4, 1);
        transform: scale3d(1.4, 1.4, 1);
    }
}

@-webkit-keyframes yudaReject {
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, 200px, 0);
        transform: translate3d(0, 200px, 0);
    }
}

@keyframes yudaReject {
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, 200px, 0);
        transform: translate3d(0, 200px, 0);
    }
}

@-webkit-keyframes yudaAccept {
    to {
        opacity: 1;
        -webkit-transform: rotate3d(0, 0, 1, 20deg);
        transform: rotate3d(0, 0, 1, 20deg);
    }
}

@keyframes yudaAccept {
    to {
        opacity: 1;
        -webkit-transform: rotate3d(0, 0, 1, 20deg);
        transform: rotate3d(0, 0, 1, 20deg);
    }
}

@-webkit-keyframes jackInTheBox {
    from {
        opacity: 0;
        -webkit-transform: scale(0.1) rotate(30deg);
        transform: scale(0.1) rotate(30deg);
        -webkit-transform-origin: center bottom;
        transform-origin: center bottom;
    }

    50% {
        -webkit-transform: rotate(-10deg);
        transform: rotate(-10deg);
    }

    70% {
        -webkit-transform: rotate(3deg);
        transform: rotate(3deg);
    }

    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes jackInTheBox {
    from {
        opacity: 0;
        -webkit-transform: scale(0.1) rotate(30deg);
        transform: scale(0.1) rotate(30deg);
        -webkit-transform-origin: center bottom;
        transform-origin: center bottom;
    }

    50% {
        -webkit-transform: rotate(-10deg);
        transform: rotate(-10deg);
    }

    70% {
        -webkit-transform: rotate(3deg);
        transform: rotate(3deg);
    }

    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.logo_ani {
    -webkit-animation-name: jackInTheBox;
    animation-name: jackInTheBox;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    animation-delay: 0.5s;
    letter-spacing: initial;
}

.logo_spanchar {
    color: #ff9be0; /* #14276d */
}

/* forms and tooltips */

.hd_form {
    padding: 1rem 0;
    color: #888;
}

label {
    display: block;
}

.hd_row {
    margin-bottom: 22px;
}

.hd_tooltip {
    position: relative;
    font-size: 0.7rem;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    text-align: center;
    line-height: 1rem;
    background: #8b6aef;
    color: #fff;
    display: inline-block;
    top: -2px;
    font-weight: bolder;
}

.hd_tooltip_content {
    position: fixed;
    font-size: 0.85rem;
    border-radius: 10px;
    box-shadow: 0 -1px 10px rgba(72, 72, 72, 0.025), 0 10px 20px rgba(72, 72, 72, 0.05);
    background: #8b6aef;
    color: #fff;
    padding: 1rem;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    font-weight: normal;
    width: calc(100vw - 2rem);
    bottom: 1rem;
    left: 1rem;
}

.hd_tooltip_content span {
    display: block;
}

.hd_tooltip:hover .hd_tooltip_content {
    opacity: 1;
    z-index: 99999;
}

.hd_input {
    padding: 0.4rem 0;
    font-size: 1em;
    width: 100%;
    border: none;
    box-shadow: none;
    color: #2d2d2d;
    border-bottom: 1px dashed #aaa;
    line-height: inherit;
    height: auto;
}

.hd-options-check {
    font-size: 24px;
}

.hd-options-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    display: none;
}

.hd-options-check label {
    width: 2em;
    height: 1em;
    position: relative;
    cursor: pointer;
    display: block;
    font-size: 22px !important;
}

.hd-options-check input[type="checkbox"]:checked + label:before {
    background: #72c474;
    box-shadow: inset 0px 1px 1px rgba(84, 152, 140, 0.5);
}
.hd-options-check label:before {
    content: "";
    position: absolute;
    width: 2em;
    height: 1em;
    left: 0.1em;
    transition: background 0.1s ease;
    background: #f25f5c;
    border-radius: 50px;
    box-shadow: inset 0px 1px 1px rgba(171, 66, 63, 0.5);
}

.hd-options-check input[type="checkbox"]:checked + label:after {
    animation: hdq_switch-on 0.2s ease-out;
    left: 1.1em;
    background: #efefef;
}
.hd-options-check label:after {
    content: "";
    position: absolute;
    width: 1em;
    height: 1em;
    border-radius: 50px;
    left: 0;
    transition: all 0.2s ease;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
    background: #efefef;
    animation: hdq_switch-off 0.2s ease-out;
    z-index: 2;
}

.hd_radio_row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    grid-gap: 0.4rem;
}
