
body {
    font-family: arial, "微軟正黑體";
    color: #1A1A1A;
}

section {
    width: 100%;
    height: 100%;
    background: #fff;
    position: absolute;
}

article {
    width: 100%;
    max-width: 800px;
    height: 100%;
    background: #fff;
    margin: 0 auto;
    padding: 20px;
    min-width: 600px;
    position: relative;
}

h1 {
    font-size: 2em;
    line-height: 3;
}

#controller {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}
#controller > h3 {
    display: inline-block;
    margin: 50px auto 10px 0;
    font-weight: 600;
    color: rgba(0, 109, 173, 1);
}

#fixed-wh {
    width: 100%;
    padding-top: 60%;
    position: relative;
    background: rgba(43, 182, 214, 1);
    box-shadow: 15px 0px 15px -15px rgba(0, 109, 173, 0.3) inset,0px 15px 15px -15px rgba(0, 109, 173, 0.3) inset,0px -15px 15px -15px rgba(0, 109, 173, 0.3) inset;    

}

.wave-area {
    position: absolute;
    top: 0;
    overflow: hidden;
    height: 100%;
}

#wave-area0{
    width: 25%;
    left: 0;
}

#wave-area1{
    width: 100%;
    left: 0;
}
#no-wave-board {
    position: absolute;
    top: 0;
    height: 100%;
    width: 90%;
    left: 10%;
}
#no-wave {
    position: absolute;
    top: 0;
    height: 100%;
    width: 25%;
    right: 0;
    border-left: 1px solid rgba(0, 109, 173, 0.3);
    box-shadow: 15px 0 15px -15px rgba(0, 109, 173, 0.3) inset;
    background: rgba(43, 182, 214, 1);
}

#wave-origin {
    position: absolute;
    top: 50%;
    left: 50%;
}

#wave-source1 {
    position: absolute;
    left: calc(10% + 1px);
}
#wave-source2 {
    position: absolute;
    left: calc(10% + 1px);
}

#no-wave a {
    position: absolute;
    height: 100%;
    width: 20px;
    top: 0;
    left: -10px;
    cursor: pointer;
    z-index: 10;
}
#no-wave a span {
    position: absolute;
    width: 100px;
    top: 50%;
    color: #fff;
    font-size: 1em;
    font-weight: 900;
    z-index: 100;
}
#no-wave a:hover {
    border: 1px solid #fff;
}
#no-wave span {
    position: absolute;
    top: calc(50% - 0.4em);
    left: -4px;
    font-size: 1em;
    padding-left: 13px;
    color: rgba(86, 255, 255, 1);
    opacity: 0;
    transition: opacity 1s;
    display: none;
    width: 50px;
    margin-top: -3px;
}
#no-wave span.darkDot {
    color: rgba(0, 109, 173, 1);
}
#no-wave[data-show="true"] span{
    opacity: 1;
}
#no-wave span::before {
    content: "";
    position: absolute;
    width: 3px;
    height: 3px;
    left: 1px;
    top: 6px;
    border-radius: 50%;
    border: 1px solid rgba(86, 255, 255, 1);
    background: rgba(86, 255, 255, 1);
}
#no-wave span.darkDot::before {
    border: 1px solid rgba(0, 109, 173, 1);
    background: rgba(0, 109, 173, 1);
}
#no-wave span i {
    font-size: 0.5em;
    vertical-align: middle;
    bottom: 2px;
    position: absolute;
    width: 300px;
    left: 5em;
    color: rgba(0, 109, 173, 1);
}
.lightDot::after,
.darkDot::after {
    content: "";
    position: absolute;
    left: 4px;
    top: -7px;
    height: 2em;
    width: 8px;
    background: linear-gradient(to bottom, rgba(86, 255, 255,0) 0%,rgba(86, 255, 255,0.7) 50%,rgba(86, 255, 255,0) 100%);
}
.darkDot::after {
    background: linear-gradient(to bottom, rgba(0, 109, 173,0) 0%,rgba(0, 109, 173,0.7) 50%,rgba(0, 109, 173,0) 100%);
}
.board {
    position: absolute;
    height: 100%;
    width: 2px;
    left: 10%;
    top: 0;
    z-index: 10;
    box-shadow: 15px 0 15px -15px rgba(0, 109, 173, 0.6) inset;
}

.board > span {
    position: relative;
    display: block;
    width: 8px;
    height: 8px;
    background: #444;
    left: -3px;
    border: 2px solid #333;
    border-radius: 4px;
}

.board > span:after{
    content: "";
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
    left: -9px;
    bottom: -9px;
    cursor: pointer;
    z-index: 10;
    border-radius: 10px;
}

.board > span:focus {
    outline: none;
}


/* wave animation */

.wave {
    width: 2400px;
    height: 2400px;
    display: block;
    top: 0;
    bottom: 0;
    left: -1200px;
    right: 0;
    margin: auto;
    position: absolute;
}

.wave span {
    border-radius: 50%;
    position: absolute;
    animation-name: wave;
    animation-duration: 9000ms;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
    transform-origin: center center;
    right: 0;
    left: 0;
    margin: auto;
    top: 0;
    bottom: 0;
}


.wave-area[data-play="play"] .wave span{
    animation-play-state: running;
}
.wave-area[data-play="paused"] .wave span{
    animation-play-state: paused;
}


#fixed-wh:hover .wave span {
    animation-play-state: paused;
}


/* 波峰 */
.wavetop {
}

/* 波谷 */
.wavebottom {
}

@keyframes wave {
    0%   {width: 0; height: 0;}
    100% {width: 100%; height: 100%;}
}


/* touch area */
#touch-area {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}
#touch-area.active {
    z-index: 99;
    background-color: rgba(255, 255, 255, 0.1)
}

/* ruler */
#wrapper{
    position:absolute;
    width:300px;
    height:60px;
    box-sizing: content-box;
    border:1px solid #666;
    background-color: rgba(255, 255, 255, 1);
    transform-origin: 0 0;
    transform: rotate(90deg);
    opacity: 0.7;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
}
#canvasBottom{
    position:absolute; top:0px; left:0px;
}
#canvasTop{
    position:absolute; top:0px; left:0px;
}
#rulerLine{
    position:absolute; top:0px; left:5px;
    height: calc(100% + 1px);
    width: 1px;
    background-color: red;
    pointer-events: none;
    z-index: 10;
}
#movelog {
    position:absolute; top:40px; left: 5px;
    font-size: 12px;
    width: 100px;
}
#rulerRotate {
    position:absolute; top:30px; right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: url('../img/ic_replay_black_24px.svg') #ccc no-repeat;
    background-size: 80%;
    background-position: 50% 45%;
    cursor: pointer;
}
#rulerRotate:hover {
    background-color: #aaa;
}
#ceter {
    position:absolute; top:30px; left:0;
    width: 0px;
    height: 0px;
}
.ui-resizable-se {
    margin-bottom: 0;
}
#dragger {
    z-index: 999;
    margin-left: 70px;
    margin-top: 5px;
}


/* bottons */
.switch-btn {
    background-color: #fff;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3),0 0px 2px rgba(0,0,0,0.12);
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1rem;
    color: #4D4D4D;
    font-family: arial, "微軟正黑體";
    display: inline-block;
    min-height: 45px;
    vertical-align: top;
    transition: box-shadow 0.2s ease-in-out;
    margin-bottom: 15px;
}
.switch-btn > * {
	vertical-align: middle;
}
.switch-btn:hover {
	box-shadow: 0 1px 2px rgba(0,0,0,0.6),0 0px 2px rgba(0,0,0,0.24);
}
.switch-btn + .switch-btn {
	margin-left: 15px;
}
button, a {
	cursor: pointer;
}
.btn-text {
    margin-right: 10px;
    line-height: 25px;
    color: #1281D6;
}
.btn-now {
	color: #4D4D4D;
	min-width: 40px;
	text-align: center;
	display: inline-block;
}
.btn-icon {
	display: inline-block;
}

/* play btn */
.play-text::before {
	content: "暫停";
}
.active .play-text::before {
	content: "播放";
}
.play-button {
	height: 18px;
	width: 16px;
	overflow: hidden;
	position: relative;
}
.left,.right {
	height: 100%;
	float: left;
	background-color: #4D4D4D;
	width: 6px;
	-webkit-transition: all 0.25s ease;
	transition: all 0.25s ease;
	overflow: hidden;
}
.right {
	float: right;
}
.triangle-1 {
	-webkit-transform: translate(0, -100%);
	        transform: translate(0, -100%);
}
.triangle-2 {
	-webkit-transform: translate(0, 100%);
	        transform: translate(0, 100%);
}
.triangle-1,
.triangle-2 {
	position: absolute;
	top: 0;
	right: 0;
	background-color: transparent;
	width: 0;
	height: 0;
	border-right: 16px solid #fff;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	-webkit-transition: -webkit-transform 0.25s ease;
	transition: -webkit-transform 0.25s ease;
	transition: transform 0.25s ease;
	transition: transform 0.25s ease, -webkit-transform 0.25s ease;
}

.switch-btn.active .left {
	width: 50%;
}
.switch-btn.active .right {
	width: 50%;
}
.switch-btn.active .triangle-1 {
	-webkit-transform: translate(0, -50%);
	        transform: translate(0, -50%);
}
.switch-btn.active .triangle-2 {
	-webkit-transform: translate(0, 50%);
	        transform: translate(0, 50%);
}

/* speed btn */
.btn-speed {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #EfEfEf;
	box-shadow: 0 1px 1px rgba(0,0,0,0.16) inset,0 0px 2px rgba(0,0,0,0.12) inset;
	position: relative;
	transition: box-shadow 0.2s ease-in-out;
}
.btn-speed:hover {
	background-color: #e6e6e6;
}
.btn-speed:active {
	background-color: #e0e0e0;
}
.btn-speed::before {
	content: "";
	position: absolute;
	border-top: 8px solid #4d4d4d;
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
	width: 0;
	height: 0;
	top: 7px;
    left: 5px;
}
#speed-up::before {
	border-top: none;
	border-bottom: 8px solid #4d4d4d;
	top: 6px;
}


/* wave btn */
.icon-wavetop,
.icon-wavebottom {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	box-shadow: 0 0 6px rgba(0,0,0,0.3),0 0 6px rgba(0,0,0,0.3) inset;
}
.icon-wavebottom {
	margin-left: 8px;
	box-shadow: 0 0 6px rgba(0,0,0,0.8),0 0 6px rgba(0,0,0,0.8) inset;
}
.active .icon-wavetop {
	box-shadow: none;
	border: 1px solid #ccc;
}
.active .icon-wavebottom {
	box-shadow: none;
	border: 1px solid #4d4d4d;
}

/* ctr card */
.ctr-card {
    background-color: #fff;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3),0 0px 2px rgba(0,0,0,0.12);
    border-radius: 5px;
    padding: 15px 15px;
    font-size: 1rem;
    color: #4D4D4D;
    font-family: arial, "微軟正黑體";
    display: inline-block;
    min-height: 45px;
    vertical-align: top;
    transition: box-shadow 0.2s ease-in-out;
    margin-bottom: 15px;
    width: calc(33% - 11px);
}
.ctr-card > * {
	vertical-align: middle;
}
.ctr-card:hover {
	box-shadow: 0 1px 2px rgba(0,0,0,0.6),0 0px 2px rgba(0,0,0,0.24);
}
.ctr-card + .ctr-card {
	margin-left: 15px;
}
.ctr-text {
    margin-right: 10px;
    line-height: 25px;
    color: #1281D6;
}
.input-box {
	background-color: #F2F2F2;
	border-radius: 8px;
	padding: 8px 12px;
	display: inline-block;
}
.input-box input{
    border: 0;
    background: transparent;
    font-size: 1em;
    max-width: 53px;
}

.input-box input:focus {
    outline:none;
}
input#amount {
	width: 40px;
}
input#delay {
	width: 26px;
}
input#no-wave-now {
	max-width: 60px;
}
.ctr-note {
	font-size: 12px;
	color: #ccc;
	display: inline-block;
	line-height: 1.3;
}
/* slider var */
.var-slider {
    display: inline-block;
    background-color: #E6E6E6;
    width: 100%;
    position: relative;
    border-radius: 15px;
    height: 15px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.16) inset,0 0px 2px rgba(0,0,0,0.12) inset;
    margin-top: 20px;
}
.var-slider > span {
    background-color: #666;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    top: -4px;
    border-radius: 50%;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.6) inset;
}
#touch-area span {
    position: absolute;
    display: none;
    color: #fff;
    cursor: default;
}
.var-slider i {
    position: absolute;
    top: 2px;
    font-size: 12px;
    color: #B3B3B3;
}
.var-slider i:first-of-type {
    left: 5px;
}
.var-slider i:last-of-type {
    right: 5px;
}

/* left cont */
.left-cont {
    position: absolute;
    top: 290px;
    left: -100px;
    width: 105px;
    text-align: center;
}
.left-cont .ctr-card {
	width: 100%;
}
.btn-text.noicon,
.ctr-text.noicon {
	margin-right: 0;
}
.ruler-block {
	height: 400px;
}
#between {
	font-size: 14px;
}
#no-wave-show {
	position: absolute;
    top: -45px;
    right: 0;
    padding: 4px 10px;
    height: 45px;
    width: 214px;
    z-index: 10;
}
#no-wave-show::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 0;
	height: 0;
	border-bottom: 8px solid #4d4d4d;
    border-left: 8px solid transparent;
}