:root {
    /* theme colors */
    --theme-color-red: #a9243d;
    --theme-color-yellow: #ffd400;
    --theme-color-white: #fff5f5;
    --theme-color-dark: #343a40;
    --theme-color-background: #e3eaf1;
    --theme-color-placeholder: #cccccc;
    /* size */
    --header-height: 54px;
    --footer-height: 64px;
    /* util notch */
    --notch-top: constant(safe-area-inset-top); --notch-top: env(safe-area-inset-top);
    --notch-left: constant(safe-area-inset-left); --notch-left: env(safe-area-inset-left);
    --notch-right: constant(safe-area-inset-right); --notch-right: env(safe-area-inset-right);
    --notch-bottom: constant(safe-area-inset-bottom); --notch-bottom: env(safe-area-inset-bottom);
    /* nform height */
    --nform-line-height: 50px;
    --nform-height: 50px;
}
.btn-warning {
    background-color: var(--theme-color-yellow);
    border-color: var(--theme-color-yellow);
}

* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
    -webkit-overflow-scrolling: touch;
    -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
}
/* select disabled */
*:not(input):not(textarea) {
    /* disable user selection */
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* disable longpress on links */
    -webkit-touch-callout: none;
    /* disable drag and drop */
    -webkit-user-drag: none;
    /* transparent highlight color */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
*:focus {
    outline: none; 
    box-shadow: none;
}
::placeholder {
  color: var(--theme-color-placeholder) !important;
}

html {
    -webkit-user-select: none;
    position: fixed; top:0; left:0; right:0; bottom:0;
}

body {
    font-family: 'Nanum Square', 'Roboto', sans-serif;
    background-color: var(--theme-color-red);
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
    /*opacity: 0;*/
}
.sidebar {
    position: absolute;
    width: 250px;
    height: 100vh;
    z-index: 0;
    left: -260px;
    top: 0;
    transition: all ease 0.5s;
    -webkit-transition: all ease 0.5s;
    -moz-transition: all ease 0.5s;
    -ms-transition: all ease 0.5s;
    overflow-y: auto;
}
.wrapper {
    position: relative;
    height: auto;
    width: 100vw;
    overflow: hidden;
    transition: all ease 0.5s;
    -webkit-transition: all ease 0.5s;
    -moz-transition: all ease 0.5s;
    -ms-transition: all ease 0.5s;
    z-index: 1;
    min-height: 100vh;
    opacity:0;
}

/* header */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    width: 100vw;
    height: var(--header-height);
    height: calc(var(--header-height) + var(--notch-top));
    line-height: var(--header-height);
    padding-top: var(--notch-top);
    background-color: white;
}
/* main */
main {
    position: fixed; top: 0; left:0; right: 0; bottom: 0; z-index: 50;
    top: calc(var(--header-height) + var(--notch-top) - 1px);
    bottom: calc(var(--footer-height) + var(--notch-bottom) - 1px);
    width: 100vw;
    background: white;
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 0rem 0rem 1rem rgba(0,0,0,.15)!important;
}
/* footer */
footer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    width: 100vw;
    height: var(--footer-height);
    height: calc(var(--footer-height) + var(--notch-bottom));
    padding-bottom: var(--notch-bottom);
    background-color: white;
}

/* gap */
.gap-header {
	height: var(--header-height);
}.gap-notch-top {
	height: var(--notch-top);
}.gap-footer {
	height: var(--footer-height);
}.gap-notch-bottom {
	height: calc(var(--notch-bottom) - 1px);
}


/* card */
.card {
    border-radius: 15px;
    overflow: hidden;
    margin: 0;
}.card .card-body {
    padding: 15px;
}

/* btn-loader */
.btn-loader {
    vertical-align: middle;
    display: inline-block;
    position: relative;
    width: 24px;
    height: 24px;
}.btn-loader div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    margin: 3px;
    border: 3px solid #fff;
    border-radius: 50%;
    animation: btnloader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #ffffff transparent transparent transparent;
}.btn-loader div:nth-child(1) {
    animation-delay: -0.45s;
}.btn-loader div:nth-child(2) {
    animation-delay: -0.3s;
}.btn-loader div:nth-child(3) {
    animation-delay: -0.15s;
}@keyframes btnloader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* loading */
.loading {
    position: fixed!important;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 0;
    display: none;
    -ms-flex-align: center!important;
    align-items: center!important;
    -ms-flex-pack: center!important;
    justify-content: center!important;
    color: white;
}

/* modal */
.modal {
	top: var(--notch-top) !important;
	left: 0 !important;
	right: 0 !important;
	width: auto !important;
	height: auto !important;
	bottom: var(--notch-bottom) !important;
}
.modal.modal-top {
	  top: 0 !important;
}.modal.modal-top .modal-dialog {
	  position: absolute !important;
	  width: 100% !important;
	  top: 0 !important;
}
.modal.modal-bottom {
	  bottom: 0 !important;
}.modal.modal-bottom .modal-dialog {
	  position: absolute !important;
	  width: 100% !important;
	  bottom: 0 !important;
}
.modal.modal-center .modal-content {
    margin:0 auto;
}

/*
.modal-footer>:not(:last-child) {
  margin-right: -15px;
}.modal-footer>:not(:first-child) {
  margin-left: -15px;
}
*/

.list-group-item {
    margin: 0 !important;
}

/* app modal */
.appmodal-modal {
    position: absolute;
    display: none;
    align-items: center;
    z-index: 99999;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    text-align: center;
    padding: 50px;
}.appmodal-modal.h .appmodal-title{
    background:#313e88 !important; 
}.appmodal-modal.v .appmodal-title{
    background:#cd4d48 !important;
}.appmodal-modal .appmodal-wrap {
    background-color: white;
    border-radius: 20px;
    margin: 0 auto;
    overflow: hidden;
}
.appmodal-modal.show {
    display: flex;
}
.appmodal-title {
    position: relative;
}.appmodal-modal .appmodal-wrap .appmodal-content {
}.appmodal-modal .appmodal-wrap .appmodal-button {
    display: flex;
}.appmodal-modal .appmodal-wrap .appmodal-button > a {
    color: white;
    padding: var(--gap-size);
    width: 100%;
}

/* photoupload 버튼 */
.photoupload {
		position: relative;
}.photoupload input[type=file]{
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		opacity: 0;
		z-index: 9;
}

/* devcontroller */
.devcontroller {
	position: fixed;
	display: none;
	right: 10px;
	bottom: calc(var(--header-height) + var(--notch-top) + 20px);
	z-index: 999;
	text-align: right;
}