
#page.g {
	position: relative;
}
#related-wrap {
	display: none;
	position: absolute;
	right: 0;
	top: 80px;
	width: 180px;
	height: 700px;
	background-color: #fff;
	border: 1px solid #ccc;
	border-right: none;
	border-radius: 3px 0 0 3px;
}
.darkmode #related-wrap {
	background-color: #333;
	border-color: #666;
}
#related-wrap h2 {
	margin: 10px;
	font-size: 16px;
}
#related-gifs a {
	width: 90%;
	height: 150px;
	margin: 10px auto;
	display: block;
}
#related-gifs img {
	max-width: 100%;
	max-height: 150px;
	display: block;
	margin: 0 auto;
}
#vgif, #igif {
	min-height: 307px; /* To ensure ad doesn't bump up the height while loading (actually the ad isn't there anymore) */
	border-radius: 0 3px 3px 3px;
}
#vgif.hidden, #igif.hidden {
	display: none;
}
#vgif-info {
	margin: 15px 0 20px;
	font-size: 13px;
}
#vgif .mm-preview, #igif .mm-preview {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
}
.g-r90 {
	transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
}
.g-r180 {
	transform: rotate(180deg);
	-webkit-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
}
.g-r270 {
	transform: rotate(270deg);
	-webkit-transform: rotate(270deg);
	-ms-transform: rotate(270deg);
}
.vgif-limits {
	padding-left: 15px;
	margin-bottom: 5px;
}
.vgif-limit {
	position: relative;
	float: left;
	height: 30px;
	line-height: 28px;
	width: 25%;
	margin: 0 0 5px 5px;
	border: 1px solid #aaa;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
.darkmode .vgif-limit {
	border-color: #777;
}
#vgif-fps {
	margin-left: -15px;
}
#vgif-info .fill {
	position: absolute;
	height: 100%;
	width: 0%;
	background: #ddd;
	transition: .2s;
	-webkit-transition: .2s;
	-moz-transition: .2s;
}
.darkmode #vgif-info .fill {
	background: #555;
}
#vgif-info .red.fill {
	background: #f44;
	opacity: 0.5;
}
#vgif-info .orange.fill {
	background: #f70;
	opacity: 0.5;
}
#vgif-info .green.fill {
	background: #4b4;
	opacity: 0.5;
}
#vgif-info .text {
	position: relative;
	z-index: 5;
	font-size: 12px;
	padding: 0 5px;
	white-space: nowrap;
	overflow: hidden;
}

.g #dur {
	margin: 20px 0;
	height: 28px;
}
.g-slider-wrap .slider,
.g-adv .slider {
	width: 200px;
}
.g-adv .slider {
	float: right;
	margin-right: 10px;
}
.g-settings .mm-draw-width-slider.slider {
	width: 89px; /* just enough to stay on one line at 360px screen width */
}
#g-dur-slider {
	right: 0;
	width: 100%;
}
#g-dur-slider .slide-bar {
	background: #777;
	border: none;
	height: 8px;
}
#times {
	font-size: 12px;
	position: relative;
}
#t0, #t1 {
	color: #999;
}
#vgif-play {
	position: absolute;
	display: none;
	left: 50%;
	margin-left: -50px;
}
#t0 {
	float: left;
}
#t1 {
	float: right;
}
#vstart, #end {
	width: 80px;
}
.g .title {
	margin: 15px 0;
}
.g-settings-section {
	position: relative;
	width: 55.8%;
	float: right;
}
.g-preview-section {
	float: left;
	width: 41.2%;
	text-align: center;
}
.g-preview-info {
	margin: -10px 0 20px;
}
#g-preview-top {
	margin: 0 0 10px;
	text-align: right;
	position: relative;
}
#g-preview-top .reset {
	position: absolute;
	left: 0;
	top: 0;
}
#vgif-preview,
#yt-replace-me {
	vertical-align: top;
}
.g-preview-info,
#vgif-vid-info {
	font-size: 12px;
	color: #bbb;
}
.darkmode .g-preview-info,
.darkmode #vgif-vid-info {
	color: #777;
}
#frame-label {
	text-align: left;
	display: none;
	font-size: 12px;
	color: #666;
	margin: -10px 0 10px;
}
.darkmode #frame-label {
	color: #ccc;
}
.gif-crop-box {
	border-color: #00bff3 !important;
	z-index: 1;
}
.gif-crop-box:before {
	border-color: rgba(0, 0, 0, .5) !important;
}
.gif-crop-box.off .resize {
	display: block;
}
.g-no-media .g-settings-section,
.g-no-media .g-preview-wrap,
.g-no-media .g-preview-info,
.g-no-media #g-preview-top,
.g-no-media .vgif-time-section,
.g-no-media .gen-wrap,
.g-no-media #igif-arrange-wrap {
	display: none;
}

/*** MemeMaker text CSS for gif maker text ***/

.g-settings .mm-draw-panel {
	margin-bottom: 20px;
}
.g-overlay-settings {
	margin: 0 0 20px;
	display: none;
}
.g-settings .mm-spacing-settings {
	text-align: left;
}
.g-preview-wrap {
	margin: 0 auto 20px;
	position: relative;
}
#vgif .mm-opts, #igif .mm-opts {
	display: block;
	margin: 10px 0;
}
#gif-font {
	float: left;
	margin-left: 10px;
}
.box-slide-wrap {
	position: relative;
	border: solid #ccc;
	border-width: 0 2px 2px;
}
.darkmode .box-slide-wrap {
	border-color: #666;
}
.box-slide-wrap .g-opt {
	float: left;
	width: 100%;
	text-align: center;
	height: 24px;
	line-height: 24px;
}
.box-slide-wrap .g-sml-input {
	width: 60px;
}
.box-dur-slide {
	display: block;
	height: 28px;
	margin: 0 70px;
}
.box-start {
	float: left;
	margin: 1px 0 -1px -1px;
}
.box-end {
	float: right;
	margin: 1px -1px -1px 0;
}
.box-dur-slide .mark.m3 {
	display: none;
}
.g-motion-enabled .mark.m3 {
	display: block;
}
.g-motion-note {
	display: none;
}
.g-motion-enabled .g-motion-note {
	display: block;
}
.g-frame-mark {
	position: absolute;
	top: 50%;
	width: 6px;
	height: 6px;
	background: #00bff3;
	margin-top: -3px;
	margin-left: -3px;
	opacity: 0.5;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	pointer-events: none; /* so they don't obstruct slider handles */
}

.g-settings-section p {
	position: relative;
}
.g-opt {
	display: inline-block;
	vertical-align: middle;
	width: 100px;
	font-size: 15px;
	font-weight: bold;
	color: #333;
	padding: 2px 0; /* add a tiny bit of space on small screens when directly above title/tags input */
}
.darkmode .g-opt {
	color: #ccc;
}
.g-opt-suffix {
	font-size: 12px;
	display: inline-block;
	padding: 5px;
	min-width: 20px;
}
.g-opt-description {
	white-space: nowrap;
}
.g-slider-wrap {
	margin-bottom: 6px;
}
.g-btns-wrap {
	display: flex;
	flex-wrap: wrap;
	margin: 15px -5px;
}
.g-btns-wrap .but, .g-btns-wrap .a {
	margin: 5px;
	white-space: nowrap;
}
.g-pro-callout {
	margin: 20px 0;
}
#vgif-upload-panel.hidden {
	display: none;
}
#vgif-upload {
	width: 100%;
	padding: 0;
	vertical-align: top;
}
.g #url {
	height: 36px;
	padding: 3px 8px;
}
.vgif-url-section, .vgif-upload-section {
	position: relative;
	float: left;
	width: 45%;
}
.vgif-url-section input {
	width: 100%;
}
.vgif-or-section {
	float: left;
	width: 10%;
	line-height: 36px;
	text-align: center;
}
.vgif-recent-videos-title {
	margin: 40px 0 10px;
	font-size: 20px;
	font-weight: 300;
	color: #666;
}
.vgif-recent-video, .vgif-recent-video .a {
	color: #666;
}
.darkmode .vgif-recent-videos-title,
.darkmode .vgif-recent-video,
.darkmode .vgif-recent-video .a {
	color: #ccc;
}
.vgif-recent-video + .vgif-recent-video {
	margin-top: 10px;
}

.g-add-text, .g-crop, .g-rotate {
	margin-right: 10px;
}
.g-rotate svg {
	width: 24px;
	height: 24px;
	vertical-align: top;
	margin: 0 0 0 -5px;
}

input.g-sml-input {
	width: 75px; /* enough room for 4 digits plus browser up/down number buttons */
	height: 28px;
	line-height: 18px;
	vertical-align: middle;
}
.g-make-btn {
	display: block;
	width: 160px;
	font-weight: bold;
}


/*** Images-To-GIF ***/

.g-adv {
	display: none;
	border: 1px solid #ccc;
	background: #f5f5f5;
	padding: 0 10px;
	margin-bottom: 20px;
	color: #333;
}
.darkmode .g-adv {
	border-color: #666;
	background: #222;
	color: #ccc;
}
.show-adv {
	font-size: 13px; /* should match class="l but sml" */
	font-weight: normal;
}
.g-adv-section {
	margin: 10px 0;
}
.g-adv-section + .g-adv-section {
	margin-top: 25px;
}
.g-adv-sublabel {
	margin: 8px 0 0;
	font-size: 13px;
}
.g-adv-section .g-opt {
	vertical-align: top;
	width: 105px;
}
input.g-background-color, input.g-transparent-color {
	font-family: monospace;
	width: 80px;
}
input.g-loop {
	width: 50px;
}
.g-fit-method-wrap {
	display: none;
}
.g-fit-method-wrap .select {
	height: 28px;
}
#igif-fit-method {
	line-height: 28px;
}
.g-title-and-tags {
	margin: 20px 0;
}
.g-title-and-tags .atg-wrap {
	vertical-align: middle;
}
#vgif-size {
	margin: 20px 0 15px;
}
#vgif-size .g-opt {
	float: left;
	width: auto;
}
.g-sizes {
	margin-left: 80px;
	white-space: nowrap; /* make sure browser rounding errors don't cause overflow to next line */
}
.g-size {
	display: inline-block;
	vertical-align: top;
	width: 25%;
	height: 30px;
	line-height: 28px;
	color: #555;
	text-align: center;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 3px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
.darkmode .g-size {
	color: #aaa;
}
.g-size:hover {
	color: #000;
}
.g-size.on {
	border-color: #00bff3;
	cursor: default;
	color: #000;
}
.darkmode .g-size:hover,
.darkmode .g-size.on {
	color: #fff;
}

.play-button {
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-left: 13px solid #4b4;
	margin: 7px 0;
	float: left;
}
#igif-arrange-wrap {
	margin: 25px 0 0;
	border-top: 1px solid #ccc;
	position: relative;
}
.darkmode #igif-arrange-wrap {
	border-color: #666;
}
#igif-arrange {
	margin: 25px -5px 0;
}
#igif-arrange-title {
	position: relative;
	top: -15px;
	margin: 0 auto;
	text-align: center;
	width: 190px;
	height: 30px;
	line-height: 30px;
	background: #fff;
}
.darkmode #igif-arrange-title {
	background: #333;
}
#igif-auto-arrange {
	position: absolute;
	top: 15px;
	left: 0;
}
.igif-edit-delay {
	position: absolute;
	top: 15px;
	right: 0;
}
#igif-arrange canvas {
	position: relative;
	display: inline-block;
	vertical-align: top;
}
.igif-canv-wrap {
	position: relative;
	display: inline-block;
	vertical-align: top;
	padding: 4px;
	background: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	width: 116px;
	text-align: center;
	touch-action: none;
}
.darkmode .igif-canv-wrap {
	background-color: #333;
	border-color: #333;
}
.igif-canv-wrap:hover, .igif-canv-wrap.hovering {
	border: 1px solid #999;
	margin: 0;
	cursor: move;
}
.igif-canv-label {
	height: 15px;
	text-align: center;
	font-size: 10px;
}
.igif-canv-remove.but {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	opacity: 0.7;
	border-radius: 0;
	padding: 0;
}
.igif-canv-remove path {
	stroke: #000;
}
.darkmode .igif-canv-remove path {
	stroke: #ccc;
}
.igif-canv-remove:hover {
	opacity: 1;
}
.igif-canv-remove:hover path {
	stroke: #f44;
}
.igif-canv-delay.but {
	display: none;
	position: absolute;
	top: 4px;
	left: 4px;
	font-size: 10px;
	padding: 0 3px;
	height: 24px;
	line-height: 22px;
	opacity: 0.7;
	border-radius: 0;
}
.allow-edit-delay .igif-canv-delay {
	display: inline-block;
}
input.igif-canv-delay-input {
	position: absolute;
	top: 4px;
	left: 4px;
	font-size: 12px;
	width: 80px;
	height: 24px;
	line-height: 22px;
	padding: 0 5px;
}
.igif-canv-hidden {
	display: none;
}
#igif-arrange-toggle-more {
	display: block;
	margin-top: 20px;
}
#igif-final {
	display: block;
	margin: 20px auto;
}
#igif-preview {
	max-width: 100%;
}
#igif-upload-panel {
	margin-bottom: 20px;
}
#igif-upload {
	float: left;
	width: 45%;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
#igif-or-section {
	float: left;
	width: 10%;
	height: 36px;
	line-height: 36px;
	text-align: center;
}
#igif-url {
	float: left;
	width: 45%;
	height: 36px;
	padding: 3px 8px;
}
#igif-url.error {
	border-color: #f44;
}
#igif-title, #vgif-title, #igif-tags, #vgif-tags {
	width: 400px;
	max-width: 100%;
	vertical-align: middle;
}
.hovering {
	z-index: 99;
	cursor: move;
}
#images-or-video {
	margin: 20px 0 0;
	color: #333;
	height: 31px;
	line-height: 30px;
	position: relative;
	bottom: -1px;
}
.darkmode #images-or-video {
	color: #ccc;
}
#gif-from-video-btn, #gif-from-imgs-btn {
	height: 29px;
	padding: 0 10px;
	cursor: pointer;
	border: 1px solid #ccc;
	text-align: center;
	border-radius: 3px 3px 0 0;
	float: left;
	background: #e1e1e1;
	border-bottom: none;
	margin-right: 10px;
	user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
}
.darkmode #gif-from-video-btn,
.darkmode #gif-from-imgs-btn {
	border-color: #666;
	background: #222;
}
#gif-from-video-btn:hover, #gif-from-imgs-btn:hover {
	border-color: #666;
	color: #000;
}
.darkmode #gif-from-video-btn:hover,
.darkmode #gif-from-imgs-btn:hover {
	border-color: #999;
	color: #fff;
}
#gif-from-video-btn.on, #gif-from-imgs-btn.on {
	background: #fff;
	font-weight: bold;
	height: 30px;
}
.darkmode #gif-from-video-btn.on,
.darkmode #gif-from-imgs-btn.on {
	background: #333;
}
#gif-msg {
	display: none;
	float: left;
	position: relative;
	height: 31px;
	background: #fff;
	padding: 0 10px;
	margin-top: -1px;
	border: 1px solid #ccc;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}
.darkmode #gif-msg {
	background: #333;
	border-color: #666;
}
#gif-msg .load {
	float: left;
	display: none;
	margin: 4px 8px 4px -4px;
	width: 18px;
	height: 18px;
}
#pro-popup-wrap {
	display: none;
}
#page.g .gen-bottom-ad {
	margin: 10px 0 -10px;
}

/* save template popup */
.g-save-popup-btn {
	margin-left: 20px;
}
.g-save-settings-btn {
	margin-left: 20px;
	display: none;
}
#g-save-popup {
	margin: 30px;
}
#g-save-public-settings {
	margin: 20px 0;
}
#g-save-public-settings input, #g-save-public-settings textarea {
	width: 100%;
	margin: 5px 0 15px;
}
#g-save-btn {
	width: 100%;
}


@media (max-width: 800px) {
	.g-settings-section, .g-preview-section {
		float: none;
		width: 100%;
		max-width: 100%;
	}
	.vgif-url-section, .vgif-or-section, .vgif-upload-section {
		display: block;
		float: none;
		width: 100%;
	}
}

@media (max-width: 570px) {
	.g-slider-wrap .slider,
	.g-adv .slider {
		width: 100px;
	}
}

@media (max-width: 550px) {
	.g-slider-wrap .g-opt {
		width: 55px;
	}
	#gif-msg {
		width: 100%;
	}
	#vgif-fps, #vgif-dur, #vgif-frames, #vgif-pixels {
		width: 50%;
	}
	.vgif-limits {
		padding-left: 5px;
	}
	#vgif-fps, #vgif-frames {
		margin-left: -5px;
	}
}