/* Colour Curver styles */
/* SMACSS method, sort of http://smacss.com/ */

/* BASE 
////////////////////// */

header, main, footer {
	margin: 0;
	padding: 1em;
}
h1 {
	color: #515151;
	font-size: 1.5em;
}
h2 {
	color: #424242;
	font-size: 1.25em;
}
footer {
	color: #6f6f6f;
}
footer a {
	color: #6f6f6f;
}

input[type="text"] {
	line-height: 1.3;
	padding: .6em 1.4em .5em .8em;
	min-width: 20ch;
	border: 1px solid #aaa;
}

.site-logo {
	margin: 1em 0;
}

.icon {
	fill: currentColor;
	height: 1em;
	overflow: hidden;
	vertical-align: -.15em;
	width: 1em;
}

.icon-medium {
	font-size: 24px;
} 

.icon-red { fill: #EF0000; }
.icon-blue { fill: #0075FF; }

/* Custom select style */
.select {
	display: block;
	line-height: 1.3;
	padding: .6em 1.4em .5em .8em;
	width: 100%;
	min-width: 20ch;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	border: 1px solid #aaa;
	box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
	  linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
	background-repeat: no-repeat, repeat;
	background-position: right .7em top 50%, 0 0;
	background-size: .65em auto, 100%;
}
.select:hover {
	border-color: #888;
}
.select:focus {
	border-color: #aaa;
	box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
	box-shadow: 0 0 0 3px -moz-mac-focusring;
	color: #222;
	outline: none;
}

/* LAYOUT
////////////////////// */

main p {
	max-width: 45em;
}

/*
.layout-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

@media screen and (min-width: 840px) {
	.layout-grid {
		display: grid;
		grid-gap: 1em;
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: 1fr 2fr;
	}
	.layout-grid-form1 {
		grid-column: 1 / 4;
		grid-row: 1 / 2; 
	}
	.layout-grid-form2 {
		grid-column: 4 / 5;
		grid-row: 1 / 3;
	}
	.layout-grid-results {
		grid-column: 1 / 4;
		grid-row: 2 / 3;
	}
	.layout-results-inner {
		display: flex;
		flex-wrap: wrap;
	}
}
*/

form {
	display: flex;
	flex-wrap: wrap;
}
.form-input-wrapper {
	display: flex;
}


/* MODULES 
////////////////////// */

/* menu */
nav ul {
	margin: 0;
	padding: 0;
}
nav li {
	list-style-type: none;
	display: inline;
	padding-right: 1em;
}
nav a {
	text-decoration: none;
	color: #535353;
}
nav a[aria-current="page"] {
	text-decoration: underline;
	font-weight: bold;
}

/* Colour palette */



/* Colour panel */
.module-viewer-container {
	margin-left: auto;
	margin-right: auto;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  height: auto;
  background: hsl(0,100%,50%);
	position: relative;
}
.module-viewer-gradient {
	position: absolute;
	top: 0;
	left: 0;
  width: 100%;
  height: 100%;
  background:
      linear-gradient(to bottom, rgba(255,255,255,0), rgba(0,0,0,1)),
      linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,1))
}

/* Curve types */
.module-viewer-curve {
	position: absolute;
	width: 100%;
	height: 100%;
}
.module-viewer-curve svg {
	position: absolute;
	top: 0;
	left: 0;
}

/* Boundaries of WCAG text colours */
.boundary-disabled {
	display: none;
}
.module-viewer-boundary-lines {
	position: absolute;
	width: 100%;
	height: 100%;
}
.module-viewer-boundary-lines svg {
	position: absolute;
	top: 0;
	left: 0;
}

/* Dots */
.module-viewer-dots {
	position: absolute;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.module-viewer-dots svg {
	position: absolute;
	top: 0;
	left: 0;
}

/* Intervals */
.module-viewer-intervals {
	position: absolute;
	width: 100%;
	height: 100%;
}

.module-viewer-intervals button.interval {
	position: absolute;
	top: 0;
	left: 0;
	width: 14px;
	height: 14px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	z-index: 2;
	transform: translate(-50%, -50%);
}

.module-viewer-intervals button#control-point {
	position: absolute;
	top: 1px;
	left: 485px;
	width: 14px;
	height: 14px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	z-index: 2;
}

.module-viewer-intervals button#control-point:hover {
	cursor: all-scroll;
}

.module-viewer-intervals button.interval:hover circle,
.module-viewer-intervals button.interval:hover rect {
	stroke-width: 4px;
}

.module-viewer-intervals button.interval .invalid-interval {
	display: none;
}

.module-viewer-intervals button.white svg circle,
.module-viewer-intervals button.white svg rect {
	stroke: #ffffff;
}

.module-viewer-intervals button.black svg circle,
.module-viewer-intervals button.black svg rect {
	stroke: #000000;
}

.module-viewer-intervals button.disabledButton {
	display: none;
}

/* Inputs */
#hue-legend {
	margin: 0px;
}

.btn-toggletip {
	border-radius: 50%;
	border: none;
	padding: 0;
	background: transparent;
	float: right;
  margin-top: 5px;
}
.btn-clear {
	border-radius: 50%;
	border: none;
	padding: 0;
	background: transparent;
}
.btn-link {
	border: none;
	padding: 0;
	background: transparent;
	color: #0075FF;
	text-decoration: underline;
}


/*
.btn-lock, .btn-custom {
	border-radius: 50%;
	border: none;
	padding: 0;
	background: transparent;
	font-size: 24px;
}
.btn-save-custom {
	color: #FFFFFF;
	background-color: #000000;
	height: 33px;
	width: 65px;
}

.btn-save-custom:hover {
	color: #FFFFFF;
	background-color: #3d3d3d;
	height: 33px;
	width: 65px;
	cursor: pointer;
}
*/
.wrapper-slots .slot{
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  padding: 0 16px;
  border: 2px solid lightgrey;
  transition: all 0.3s ease;
}
.wrapper-slots .slot .dot{
  height: 20px;
  width: 20px;
  background: #d9d9d9;
  border-radius: 50%;
  position: relative;
  margin-right: 8px;
}
.wrapper-slots .slot .dot::before{
  position: absolute;
  content: "";
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  background: #0069d9;
  border-radius: 50%;
  opacity: 0;
  transform: scale(1.5);
  transition: all 0.3s ease;
}
input[type="radio"]{
  display: none;
}
#slot-1:checked:checked ~ .slot-1,
#slot-2:checked:checked ~ .slot-2{
  border-color: #0069d9;
  background: #0069d9;
}
#slot-1:checked:checked ~ .slot-1 .dot,
#slot-2:checked:checked ~ .slot-2 .dot{
  background: #fff;
}
#slot-1:checked:checked ~ .slot-1 .dot::before,
#slot-2:checked:checked ~ .slot-2 .dot::before{
  opacity: 1;
  transform: scale(1);
}
.wrapper-slots .slot span{
  font-size: 20px;
  color: #808080;
}
#slot-1:checked:checked ~ .slot-1 span,
#slot-2:checked:checked ~ .slot-2 span{
  color: #fff;
}

/* STATE
////////////////////// */

.is-hidden {
	display: none;
}
.is-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  border: 0;
}
.user-choice-hidden {
	display: none;
}

/* initial state */
#palette li:nth-child(1) .palette-info {background-color: #f8e2e2;}
#palette li:nth-child(2) .palette-info {background-color: #f6a2a2;}
#palette li:nth-child(3) .palette-info {background-color: #eb6161;}
#palette li:nth-child(4) .palette-info {background-color: #d42929;}
#palette li:nth-child(5) .palette-info {background-color: #ae0b0b;}
#palette li:nth-child(6) .palette-info {background-color: #ae0505;}
#palette li:nth-child(7) .palette-info {background-color: #4b0505;}
#palette li:nth-child(8) .palette-info {background-color: #2a0707;}
#palette li:nth-child(9) .palette-info {background-color: #130505;}
#palette li:nth-child(10) .palette-info {background-color: #060202;}

#palette li.disabledPalette {
	display: none;
}

button#b0 {left: 6%; top: 0%;}
button#b1 {left: 31%; top: 1%;}
button#b2 {left: 56%; top: 5%;}
button#b3 {left: 78%; top: 14%;}
button#b4 {left: 91%; top: 29%;}
button#b5 {left: 94%; top: 49%;}
button#b6 {left: 90%; top: 68%;}
button#b7 {left: 80%; top: 81%;}
button#b8 {left: 69%; top: 90%;}
button#b9 {left: 61%; top: 95%;}



/* THEME
////////////////////// */
/*
.layout-grid-form1 h2, 
.layout-grid-form2 h2 {
	padding-bottom: 0.5em;
	border-bottom: 1px solid #DCDCDC;
}
*/
