/* demo-grid.css */
/* Controls */

.controls {
    margin: 30px -10px;
}

.control {
    position: relative;
    float: left;
    width: 25%;
    padding: 0 10px;
}

.control-icon {
    position: absolute;
    left: 10px;
    top: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.control-field {
    position: relative;
    padding-left: 40px;
    z-index: 1;
}

/* Grid */

.grid {
    position: relative;
    max-width: 100%; /*960px;*/
    margin: 0 -10px;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

img {
    max-width: 400px;
}

@media (max-width: 400px) {
    img {
        max-width: 100%;
    }
}

/*
.item {
  position: absolute;
  width: 100px;
  height: 100px;
  line-height: 100px;
  margin: 10px;
  z-index: 1;
  will-change: transform;
}
 */
.item.muuri-item-positioning {
    z-index: 2;
}

.item.muuri-item-dragging,
.item.muuri-item-releasing {
    z-index: 9999;
}

.item.muuri-item-dragging {
    cursor: move;
}

.item.muuri-item-hidden {
    z-index: 0;
}

.item.h2 {
    height: 220px;
    line-height: 220px;
}

.item.w2 {
    width: 220px;
}

.item-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid;
    color: #333;
    border-radius: 4px;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.item.red .card {
    color: #f94a7a;
}

.item.green .card {
    color: #2ac06d;
}

.item.blue .card {
    color: #4A9FF9;
}

.card-id {
    position: absolute;
    left: 7px;
    top: 0;
    height: 30px;
    line-height: 30px;
    text-align: left;
    font-size: 16px;
    font-weight: 400;
}

.card-remove {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    -moz-transform: scale(0);
    -webkit-transform: scale(0);
    -o-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    -webkit-transition: all 0.15s ease-out;
    -moz-transition: all 0.15s ease-out;
    -ms-transition: all 0.15s ease-out;
    -o-transition: all 0.15s ease-out;
    transition: all 0.15s ease-out;
}

.card:hover > .card-remove {
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    -o-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

/* Grid Footer */

.grid-footer {
    margin: 60px 0;
    text-align: center;
}

.grid-footer .btn .material-icons {
    margin-right: 10px;
    font-size: 24px;
}


/* Icons in the selector */
/* fallback */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialicons/v29/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format('woff2');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}


/* main.css */
/* Base */

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

html {
    overflow-y: scroll;
    overflow-x: hidden;
    background: #fff;
}

html.dragging body {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    position: relative;
    /*font-family: 'Fira Sans', Helvetica, Arial, sans-serif;*/
    font-size: 18px;
    line-height: 1.5;
    margin: 0 20px;
    color: #6e6e6e;
}

/* Clearfix */

.cf:before,
.cf:after {
    content: " ";
    display: table;
}

.cf:after {
    clear: both;
}

/* Material icons */

.material-icons {
    display: inline-block;
    vertical-align: top;
    line-height: inherit;
    font-size: inherit;
}

/* Buttons */

.btn {
    display: inline-block;
    position: relative;
    vertical-align: top;
    margin: 0;
    border: 0;
    outline: 0;
    padding: 0px 15px;
    font-size: 16px;
    font-weight: 400;
    line-height: 40px;
    height: 40px;
    text-align: center;
    white-space: nowrap;
    background: #4a9ff9;
    color: #fff;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border-radius: 3px;
}

.btn:focus,
.btn:hover,
.btn:active {
    outline: 0;
}

.btn:hover {
    background: #3989de;
}

.btn:active {
    background: #3075bf;
}

.btn.active {
    background: #60ca47;
}

.btn.active:hover {
    background: #40b325;
}

.btn.active:active {
    background: #309818;
}

/* Forms */

.form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 5px 15px;
    font-size: 16px;
    line-height: 26px;
    color: inherit;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
}

select.form-control {
    padding-right: 40px;
    cursor: pointer;
}

select.form-control::-ms-expand {
    display: none;
}

.select-arrow {
    position: absolute;
    right: 10px;
    top: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.form-control:focus {
    outline: 0;
    border-color: #4a9ff9;
}

/* Header */

header {
    margin: 30px auto;
    max-width: 940px;
}

header .logo {
    max-width: 240px;
    margin: 60px auto 60px auto;
}

header .logo svg {
    width: 100%;
    height: 100%;
}

header h1 {
    display: none;
}

header h2 {
    text-align: center;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 400;
    max-width: 940px;
    margin: 0 auto;
    color: #6e6e6e;
}

header h2 > span {
    display: block;
    font-size: 18px;
    color: #aaa;
    margin-top: 3px;
}

header h2 > span > i {
    margin: 0 10px;
    color: #ccc;
}

header aside {
    color: #bbb;
    font-size: 15px;
    margin-top: 5px;
    font-style: italic;
    text-align: center;
}

header nav {
    text-align: center;
}

header nav a {
    position: relative;
    display: inline-block;
    vertical-align: top;
    position: relative;
    padding: 20px;
    font-size: 20px;
    font-weight: 400;
}

header nav a i {
    display: block;
    position: absolute;
    height: 2px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #FF4BD8;
    opacity: 0;
    z-index: 2;
    -moz-transform: scale(0, 1);
    -webkit-transform: scale(0, 1);
    -o-transform: scale(0, 1);
    -ms-transform: scale(0, 1);
    transform: scale(0, 1);
    -webkit-transition: -webkit-transform 0.2s ease-out, opacity 0s ease 0.2s;
    -moz-transition: -moz-transform 0.2s ease-out, opacity 0s ease 0.2s;
    -ms-transition: -ms-transform 0.2s ease-out, opacity 0s ease 0.2s;
    -o-transition: -o-transform 0.2s ease-out, opacity 0s ease 0.2s;
    transition: transform 0.2s ease-out, opacity 0s ease 0.2s;
}

header nav a:hover i {
    opacity: 1;
    -moz-transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
    -o-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    transform: scale(1, 1);
    -webkit-transition: -webkit-transform 0.2s ease-out, opacity 0s ease 0s;
    -moz-transition: -moz-transform 0.2s ease-out, opacity 0s ease 0s;
    -ms-transition: -ms-transform 0.2s ease-out, opacity 0s ease 0s;
    -o-transition: -o-transform 0.2s ease-out, opacity 0s ease 0s;
    transition: transform 0.2s ease-out, opacity 0s ease 0s;
}

@media (max-width: 600px) {
    header {
        margin-bottom: 0;
    }

    header h2 {
        font-size: 21px;
    }

    header h2 > span {
        margin-top: 20px;
    }

    header h2 > span > i {
        display: none;
    }

    header h2 > span > span {
        display: block;
    }

    header nav {
        margin-top: 20px;
        border-bottom: 0;
        border-top: 1px solid #e5e5e5;
    }

    header nav a {
        display: block;
        vertical-align: top;
        padding: 10px 20px;
        border-bottom: 1px solid #e5e5e5;
    }

    header nav a i {
        bottom: -1px;
        left: 0;
        right: 0;
    }
}

/* Footer */

footer {
    margin: 0 auto;
    max-width: 940px;
    text-align: center;
    border-top: 2px solid #e5e5e5;
    padding-top: 30px;
    padding-bottom: 30px;
}

footer p {
    margin: 0;
}

footer .credits {
    color: #aaa;
    margin-bottom: 5px;
    font-style: italic;
}

footer .copyright i {
    font-size: 24px;
    height: 27px;
    line-height: 32px;
    display: inline-block;
    vertical-align: top;
}

/* Sections */

mu section {
    margin: 60px auto;
    padding-top: 0;
    max-width: 940px;
    border-top: 2px solid #e5e5e5;
    text-align: left;
}

mu section.demo {
    margin-top: 30px;
}

mu section h4 {
    margin: 30px 0 15px 0;
    font-weight: 500;
    font-size: 20px;
    color: #3e3e3e;
}

@media (max-width: 600px) {
    section.demo {
        border-top: 0;
    }
}

/* Section titles */

.section-title {
    color: #3e3e3e;
    font-size: 26px;
    font-weight: 700;
    margin: 40px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.section-title > span {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.section-title > span:after {
    content: "";
    display: block;
    position: absolute;
    left: 10px;
    bottom: 0;
    right: 10px;
    height: 2px;
    background: #3e3e3e;
}

/* Feature list */

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list-item {
    position: relative;
    padding-left: 80px;
    margin: 30px 0;
    overflow: hidden;
}

.feature-list-icon {
    display: block;
    float: left;
    margin-left: -80px;
    width: 80px;
    font-size: 48px;
    line-height: 48px;
    text-align: left;
    color: #3396FF;
}

.feature-list-text h4 {
    margin: 0 0 15px 0;
    font-weight: 500;
    font-size: 20px;
}

@media (max-width: 600px) {
    .feature-list-item {
        padding-left: 0;
    }

    .feature-list-icon {
        margin: -4px 10px 0 0;
        width: 24px;
        font-size: 24px;
        line-height: inherit;
    }
}

/* Author */

.author {
    margin: 60px 0;
    font-weight: 500;
    font-size: 20px;
    color: #3e3e3e;
    font-style: italic;
    text-align: center;
}

/* 由 demo-grid.css 取出再覆蓋執行一次 */
.control-field {
    position: relative;
    padding-left: 40px;
    z-index: 1;
}