@import url('https://fonts.googleapis.com/css?family=Kanit:400,700');

#map {
    height: 300px;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

html, body {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    background-color: #212121;
    color: white;
}

.controls {
    margin-top: 10px;
    border: 1px solid transparent;
    border-radius: 2px 0 0 2px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    height: 32px;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#pac-input {
    background-color: #fff;
    font-family: Roboto;
    font-size: 15px;
    font-weight: 300;
    margin-left: 12px;
    padding: 0 11px 0 13px;
    text-overflow: ellipsis;
    width: 300px;
}

#pac-input:focus {
    border-color: #4d90fe;
}

.pac-container {
    font-family: Roboto;
}

#type-selector {
    color: #fff;
    background-color: #4d90fe;
    padding: 5px 11px 0px 11px;
}

#type-selector label {
    font-family: Roboto;
    font-size: 13px;
    font-weight: 300;
}

#target {
    width: 345px;
}

#qrcode {
    display: none;
    border: 3px solid white;
}

.crop {
    display: none
}

/* ----- */

* {
    box-sizing: border-box;
}

.container {
    max-width: 768px;
    margin: 0 auto;
    background-color: #3d3d3d;
}
.container:not(#main-container) {
    display: none;
}
.container--show {
    display: block !important;
}
.container--no-background {
    background: none;
}
.container__content {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.row {
    display: flex;
    margin-bottom: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row .col {
    flex: 1;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.col--label {
    display: flex;
    flex: 0.6 !important;
    align-items: center;
    height: 2rem;
    justify-content: flex-end;
    text-align: right;
}
.col--center {
    display: flex;
    justify-content: center;
}
.col--text-center {
    text-align: center;
}

.stop-scrolling {
    overflow: hidden;
}

.container__content input[type=text], .container__content input[type=date], .container__content input[type=time] {
    width: 100%;
    height: 2rem;
    border: none;
    font-size: 1em;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-family: inherit;
    text-overflow: ellipsis;
    outline: none;
}

.container__content label {
    color: white;
}

.cover-image {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.cover-image label {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    height: 240px;
    width: 100%;
    background-color: #616161;
    font-size: 2em;
    background-size: cover;
    background-position: center;
    color: rgba(255, 255, 255, 0.5);
}
.cover-image input {
    display: none;
}
.cover-image__content {
    width: 320px;
}

button {
    padding: 0.5rem;
    font-size: 1em;
    font-family: inherit;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}
.modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modal__close-button {
    z-index: 200;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    margin-bottom: -1rem;
}
.modal__close-button:before {
    content: '\f2d3';
    font-family: FontAwesome;
    font-size: 3em;
    cursor: pointer;
    opacity: 0.5;
}

.croppie-container {
    height: unset !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.note {
    font-size: 0.9em;
    background-color: #2196F3;
    padding: 0.5rem;
    margin: 0;
}
.note:before {
    content: '\f05a';
    font-family: FontAwesome;
    margin-right: 0.5rem;
}
.note ul {
    margin: 0;
}

.event-info {
    font-size: 1.5em;
    flex-direction: column;
}

.input-required {
    border: 2px solid #F44336 !important;
}

.map-area {
    margin: 1rem;
}

.input-error {
    display: none;
    background-color: #F44336;
    padding: 0.25rem 0.5rem;
    font-size: 0.75em;
}
.input-error:before {
    content: '\f071';
    font-family: FontAwesome;
    margin-right: 0.25rem;
}

.cr-boundary {
    width: auto !important;
    max-width: 600px;
}

.download-button {
    text-decoration: none;
    color: white;
    background-color: #43A047;
    padding: 0.5rem;
}
.download-button:before {
    content: '\f019';
    font-family: FontAwesome;
}

@media (max-width: 500px) {
    .row {
        display: block;
    }

    .col--label {
        justify-content: flex-start;
        text-align: left;
    }
}