@font-face {
	font-family: "Agency FB";
	src: local("./Agency_FB.ttf");
}
@font-face {
	font-family: "Agency FB";
	src: url("../Agency_FB.ttf");
}

@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");

:root {
	--brand: #fff7ae;
	--bgGrey: #575757;
}

#body_parent {
	background-color: #121212;
	padding-bottom: 50px;
}

#d3-viz {
	/* background-color: white; */
	margin-left: calc(0px - 7vw);
	min-height: 400px;
	opacity: 0;
	transform: translateY(50px);
	transition: all 0.3s ease-out;
}

#real-viz {
	/* background-color: white; */
	margin-left: calc(-7.7vw);
	transform: scale(var(--vw-scale));
}

#freeze-viz {
	/* background-color: white; */
	margin-left: calc(-7.7vw);
	transform: scale(var(--vw-scale));
}

#drift_velocity_viz {
	/* background-color: white; */
	margin-left: calc(-7.7vw);
	transform: scale(var(--vw-scale));
}

#temperature_viz {
	/* background-color: white; */
	margin-left: calc(-7.7vw);
	transform: scale(var(--vw-scale));
}

.words_template {
	padding-left: 200px;
}

.title-row {
	margin-top: 300px;
}

.title-row h1 {
	font-family: Agency FB;
	font-style: normal;
	font-weight: bold;
	letter-spacing: 2px;
	font-size: 48px;
	line-height: 96px;
	/* identical to box height */

	text-align: center;

	color: #fff7ae;
}

.title-row p {
	margin-top: 30px;
	font-family: Bai Jamjuree;
	font-style: normal;
	font-weight: normal;
	font-size: 20px;
	line-height: 30px;

	color: #ffffff;

	text-align: center;
}

.sub-atomic-particle-row,
.classical-model-row,
.real-life-row,
.experiment-row,
.conclusion-row,
.graph-row,
.next-row {
	margin-top: 200px;
	opacity: 0;
	transform: translateY(50px);
	transition: all 0.4s ease-out;
}

.next-row {
	margin-bottom: 300px;
}

.sub-atomic-particle-row h1,
.classical-model-row h1,
.real-life-row h1,
.experiment-row h1,
.conclusion-row h1,
.graph-row h1,
.next-row h1 {
	margin-left: calc(0px - 7vw);
	font-family: Agency FB;
	font-style: normal;
	font-weight: normal;
	font-size: calc(2vw);
	line-height: calc(3.75vw);

	color: #fff7ae;
}

.sub-atomic-particle-row p,
.classical-model-row p,
.real-life-row p,
.experiment-row p,
.conclusion-row p,
.graph-row p,
.next-row p {
	margin-left: calc(0px - 7vw);
	margin-top: 30px;
	font-family: Bai Jamjuree;
	font-style: normal;
	font-weight: normal;
	font-size: calc(1vw);
	line-height: calc(1.4vw);

	color: #ffffff;
}

.fade-in {
	opacity: 1 !important;
	transform: translateY(0px) !important;
}

#visualization {
	position: fixed;
	top: 0px;
	right: 0px;
	z-index: -100;
}

.axis line {
	stroke: #fff;
}

.axis path {
	fill: none;
	stroke: #fff;
}
.axis text {
	fill: white;
}

.label {
	fill: #fff;
}

/*#d3-viz {

  min-height: 400px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.3s ease-out;
}
*/

.noselect {
	-webkit-touch-callout: none;
	/* iOS Safari */
	-webkit-user-select: none;
	/* Safari */
	-khtml-user-select: none;
	/* Konqueror HTML */
	-moz-user-select: none;
	/* Old versions of Firefox */
	-ms-user-select: none;
	/* Internet Explorer/Edge */
	user-select: none;
	/* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.cursor-grab {
	cursor: -webkit-grab;
	cursor: grab;
}

.cursor-point {
	cursor: pointer;
}

#back-icon {
	width: 36px;
	height: 36px;
	position: fixed;
	top: 10px;
	left: 10px;
	cursor: pointer;
}

.switch-toggle {
	width: 10em;
}

.switch-toggle label:not(.disabled) {
	cursor: pointer;
}

/* The switch - the box around the slider */
.switch {
	margin-left: calc(0px - 7vw);
	position: relative;
	display: inline-block;
	min-width: 50px;
	height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

/* The slider */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

input:checked + .slider {
	background-color: var(--brand);
}

input:focus + .slider {
	box-shadow: 0 0 1px var(--brand);
}

input:checked + .slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
	background-color: #756800;
}

/* Rounded sliders */
.slider.round {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--bgGrey);
	transition: 0.4s;
	border-radius: 34px;
}

.slider.round:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: #cccccc;
	transition: 0.4s;
	border-radius: 50%;
}

.sliderticks {
	margin-top: -20px;
	display: flex;
	justify-content: space-between;
	padding: 0 -40px;
	margin-bottom: 20px;
}

.sliderticks p {
	/* position: relative; */
	display: flex;
	justify-content: center;
	text-align: center;
	width: 1px;
	background: #d3d3d3;
	height: 10px;
	line-height: 40px;
	margin: 0 0 20px 0;
}

/* Back button */
.backButton {
	background-color: #191919;
	border: 2px solid var(--brand);
	border-radius: 8px;
	color: var(--brand);
	padding: 12px 16px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
}

.backButton a {
	color: var(--brand);
	text-decoration: none;
}

.backButton a:hover {
	color: var(--brand);
	text-decoration: none;
}

/* Range slider */

.sliderContainer {
	margin-top: 32px;
	margin-bottom: 32px;
}

.sliderLabel {
	color: white;
}

input[type="range"] {
	-webkit-appearance: none;
	width: 240px;
	height: 6px;
	background: #575757;
	border-radius: 5px;
	outline: none;
	transition: background 0.3s;
	position: relative;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	background: #fff7ae;
	border-radius: 50%;
	cursor: pointer;
	position: relative;
	box-shadow: none;
}

input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	background: #fff7ae;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: none;
}

input[type="range"]::-moz-range-progress {
	background: #fff7ae;
	height: 6px;
	border-radius: 5px;
}

input[type="range"]::-ms-fill-lower {
	background: #fff7ae;
	border-radius: 5px;
}

datalist {
	display: flex;
	justify-content: space-between;
	color: white;
	width: 70%;
}

datalist option {
	font-size: 0.8rem;
}

/* ToggleGroup */
.ToggleGroup {
	display: flex;
	position: relative;
	background: var(--bgGrey);
	border-radius: 24px;
	padding: 5px;
	width: 200px;
	justify-content: space-between;
	margin-top: 32px;
	margin-bottom: 32px;
}

.ToggleGroup input {
	display: none;
}

.ToggleGroup label {
	color: white;
	flex: 1;
	text-align: center;
	padding: 8px;
	border-radius: 20px;
	cursor: pointer;
	transition: background 0.3s, color 0.3s;
}

.ToggleGroup input:checked + label {
	background: var(--brand);
	color: black;
	font-weight: bold;
}

.ToggleGroup a {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
}

/* override bootstrap */
label {
	display: inline-block;
	margin-bottom: 0 !important;
}
