/*
-----------------------------------------------
WGBH Interactive
Sample stylesheet for use with HTML5 Drawing Tool
Kal Gieber
Kit Buckley
Copyright © 2013 WGBH Digital

----------------------------------------------- 
*/


/* -------------------- GENERAL ------------------------ */



.drawtool button {
	border:none;
	outline:none;
	width:58px;
	height:46px;
	margin-left:6px;
	margin-top:2px;
	
	padding-top:1px;
	
	background-repeat:no-repeat;
	background-color:transparent;
	background-image:url('../i/drawing/full_btn_off.svg');
}

.drawtool button:hover, .drawtool button:focus, .drawtool button:active {
	background-image:url('../i/drawing/full_btn_on.svg');
}

.drawtool button.round {
	background-image:url('../i/drawing/round_btn_off.svg');
	margin-bottom:0;
}

.drawtool button.round:hover, .drawtool button.round:focus, .drawtool button.round:active {
	background-image:url('../i/drawing/round_btn_on.svg');
}


.hidden {visibility:hidden;}

/* -------------------- DRAW TOOL - MAIN --------------- */


.drawtool {
/*	width:100%;
	min-width:995px; */
	margin-top:2em;
/*	background-color:#faf9f7;*/
	margin-bottom:2em;

}

.drawtool .additional-buttons {
	margin:6px 0;
	padding:6px;
	background-color:#ccc;
}

.drawtool-canvas-block {
	max-width:568px;
	max-height:568px;
	margin:10px;
	
	width:568px;
	height:568px;
	
}

.drawtool .extra-bar {
	float:left;
	height:586px;
	width:33%;
	background-color:#faf9f7;
/*	background-color:#fff;*/
	border:1px solid #999;
	-webkit-border-bottom-right-radius: .632em; /* 12/19 */
	-moz-border-bottom-right-radius: .632em;
	border-bottom-right-radius: .632em;
}

.drawtool .fullsize {
	background-color:#faf9f7;	
	border:1px solid #999;
	-webkit-border-bottom-left-radius: .632em; /* 12/19 */
	-moz-border-bottom-left-radius: .632em;
	border-bottom-left-radius: .632em;
	
	-webkit-border-bottom-right-radius: .632em; /* 12/19 */
	-moz-border-bottom-right-radius: .632em;
	border-bottom-right-radius: .632em;
}



/* -------------------- DRAW TOOL - TOOLBOX ------------ */



.drawtool-toolbox button {
	cursor:pointer;
	margin-right:2px;
	margin-bottom:6px;
	
}

.tool-bar {
	width:65px;
	float:left;
	background-color:#faf9f7;
	padding-bottom:12px;
	
	-webkit-border-bottom-left-radius: .632em; /* 12/19 */
	-moz-border-bottom-left-radius: .632em;
	border-bottom-left-radius: .632em;
	
	border:1px solid #999;	
	background-repeat:repeat-y;
	background-image:url('../i/drawing/bg_highlight.png');
	
}

.shadowed {
	-moz-box-shadow:    0px 15px 0px 0px rgba(0, 0, 0, 0.5);
	-webkit-box-shadow: 0px 15px 0px 0px rgba(0, 0, 0, 0.5);
	box-shadow:         0px 15px 0px 0px rgba(0, 0, 0, 0.5);
}


.tool-bar button img {
	width:40px;
}

.tool-bar .active-button, .drawtool .active-stamp{
	background-image:url('../i/drawing/full_btn_on.svg');
}


#flip-bt {
	position:absolute;
	bottom:0;
	right:-4px;
}

#flip-bt.disabled {
	display:none;
}

#sticker-bt {
	vertical-align:bottom;
}

#sticker-bt img {
	width:46px;
	margin:3px 0 0 1px;	
}

.color-bar {
	display:inline-block;
	width:100%;
}

.color-bar button {
	float:left;
	background-image:none;
	padding:0;
	display:block;
	margin-bottom:1px;
}

.color-bar button svg {
	width:58px;
	margin:0;
}


.color-bar button:hover, .color-bar button:focus, .color-bar button:active, .drawtool .active-color {
	background-image:url('../i/drawing/full_btn_on.svg');
}



.size-bar {
	width:100%
	height:160px;
	border-bottom:1px solid #999;
	text-align:center;
	
}


.size-bar button {
	display:inline-block;
	background-size:100%;
	text-indent:-9999px;
	padding:0;
	margin:0;
}


#small-bt {
	width:40px;
	height:40px;
	margin-left:15px;
	margin-right:5px;
}

#medium-bt{
	width:63px;
	height:63px;
}
#large-bt{
	width:84px;
	height:84px;
}

.drawtool .size-bar button:hover, .drawtool .size-bar button:focus, .drawtool .size-bar button:active,.drawtool .size-bar .active-size  {
	background-image:url('../i/drawing/round_btn_on.svg');
}

#preview-bar {
	width:100%;
	border-bottom:1px solid #999;
	padding-bottom:.5em;
	margin-bottom:.5em;
	/*display:none;*/
}

#save-bar {
	border-bottom:1px solid #999;
	margin-bottom:.5em;
	padding-top:.5em;
}

#login-prompt a {
/*	width:70%;*/
}

.bg-bar {
	width:100%;
	border-bottom:1px solid #999;
}

.bg-bar button {
	width:58px;
	margin-right:-4px;
}

.stamp-bar {
	width:100%;
	margin-top:.5em;
	display:inline-block;
}

.stamp-bar button {
}

#sizeslider {
}

.slidecontainer {
	clear:both;
	width:200px;
}

.slidecontainer>img {
	margin-top:12px;
	display:inline-block;
	float:left;
}

.slidecontainer>.slider {
	display:inline-block;
	float:left;
}

.slider {
	width:90px;
	height:50px;
	position:relative;
	margin:0 18px;
	background-image:url('../i/drawing/slidertrack.png');
	background-repeat:no-repeat;
	background-position:0 21px;
}

.slidelabelmin, .slidelabelmax {
	display:inline-block;
	margin-top:12px;
	float:left;
}

.thumb {
	width:38px;
	height:100%;
	position:absolute;
}

.widg td {
	padding-right:10px;
}

#canvasframe {
	
	float:left;
	position:relative;
	
	background-color:#faf9f7;
	background-image:url('../i/drawing/frame.png');
}

#showpreview {
	position:relative; width:110px;float:left;
	margin:0 6px 0 8px;
}

#preview-canvas {
	border:1px solid #999;
	overflow:hidden;
	margin-top:10px;
	background-color:#fff;
}

#overlay {
	width:100%;
	height:100%;
	position:absolute;
	top:0;
	left:0;
}

#dialog {
	background-color:#e1e0df;
	position:absolute;
	top:60px;
	left:90px;
	color:#311c79;
	text-align:center;
	padding:20px;
	width:370px;
}

#dialog p {
	color:#311c79;
	font-size:1.5em;
	font-weight:600;
	font-family:Dosis, Helvetica, Arial, sans-serif;
}

#dialog p.small {
	font-size:1.25em;
	margin-bottom:1.25em;
}


/* separate these to prevent unwanted clears */
#noclear {
	margin-right:10px;
}

#yesclear {
	margin-left:10px;
}

#d_description {
	height:180px;
	width:90%;
	margin-bottom:.75em;
	resize:none;
}

#thumbnail {
	border:1px solid #999;
}


p.question {
	display:inline-block;
	height:6em;
	width:90%;
}

textarea.answer {
	display:inline-block;
	height:175px;
	width:90%;
}

button {
	cursor:pointer;
}

button.disabled:hover,.disabled button:hover,.disabled a:hover {
	background-image:url('../i/drawing/full_btn_off.svg');
}

.disabled button.round:hover, .disabled button.round:focus, .disabled button.round:active {
	background-image:url('../i/drawing/round_btn_off.svg');
}
