/* FONTS */

@font-face {
  font-family: "FieldGothic75";
  src: url("../fonts/FieldGothicNo.75BoldWide.woff") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "FieldGothic72";
  src: url("../fonts/FieldGothicNo.72RegWide.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "FieldGothic73";
  src: url("../fonts/FieldGothicNo.73MedWide.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "TexGyreHerosBold";
  src: url("../fonts/TexGyreHerosBold.otf") format("otf");
  font-weight: 700;
  font-style: normal;
}

:root {
/*  colors  */
  --yellow-hex: #ffe209;
  --yellow-rgb: 255,226,9;
  --magenta-hex: #e5007d;
  --magenta-rgb: 229,0,125;
  --cyan-hex: #009ee3;
  --cyan-rgb: 0,158,227;
  
/*  fonts  */
  --fieldgothic75: "FieldGothic75", sans-serif;
  --fieldgothic73: "FieldGothic73", sans-serif;
  --fieldgothic72: "FieldGothic72", sans-serif;
  
/*  styles  */
	--line-height: 1.25;
	--transition: all .3s ease-in-out;
	
  --h1-font-size: calc(var(--stage-container-width) * .096);
	--h2-font-size: 1.5rem;
  
  --heading-margin-bottom: 10px;
	
  --intro-margin-bottom: 20px;
	--intro-font-size: 1rem;
  --intro-line-height: 1;
	
	--editor-width: min(calc(600px + var(--editor-padding-right-left) * 2), calc(100vw - var(--editor-margin-right-left) * 2 + var(--editor-padding-right-left) * 2));
	--editor-height: 100dvh;
	--editor-margin-top-bottom: 0px;
	--editor-margin-right-left: 30px;
  --editor-padding-top: 15px;
	--editor-padding-right-left: 16px;
	--editor-font-size: 1.125rem;
	
	--button-padding-top-bottom: 6px;
  --button-padding-right-left: 18px;
  --button-font-family: var(--fieldgothic75);
	--button-font-size: 1.125rem;
  --button-line-height: 1.125;
	
	--stage-container-width: calc(var(--editor-width) - var(--editor-padding-right-left) * 2);
	--stage-container-height: var(--stage-container-width);
	
	--stage-download-size: 1080px;
  
  --controls-margin-top: 10px;
  --controls-margin-bottom: 40px;
	
	--control-buttons-height: calc(var(--button-font-size) * var(--button-line-height) + var(--button-padding-top-bottom) * 2);
	--control-buttons-border-width: 1px;
  
  --gallery-images-per-row: 2;
  --gallery-width: calc(var(--editor-width) - var(--editor-padding-right-left) * 2);
  --gallery-gap: 10px;
  --gallery-gap-count: calc(var(--gallery-images-per-row) - 1);
  --gallery-image-width: calc((var(--gallery-width) - var(--gallery-gap) * var(--gallery-gap-count)) / var(--gallery-images-per-row));
  --gallery-image-height: var(--gallery-image-width);
  
	width: 100vw;
	height: 100dvh;
  font-family: var(--fieldgothic75);
  font-size: 16px;
  line-height: var(--line-height);
	word-wrap: break-word;
	color: #000;
}

body {
  width: 100vw;
  height: 100dvh;
  display: flex;
	flex-direction: column;
	align-items: center;
  position: relative;
  margin: 0;
	overflow: hidden;
  background-color: var(--yellow-hex);
}

body *,
body *::before,
body *::after {
  box-sizing: border-box;
}

h1 {
  margin: 0;
  font-size: var(--h1-font-size);
  font-family: var(--fieldgothic75);
}

h2, h3, h4, h5, h6 {
	overflow-wrap: break-word;
  margin: 0;
	text-align: center;
	font-weight: 700;
}

h2 {
  font-family: var(--fieldgothic75);
  font-size: var(--h2-font-size);
}

input {
  display: none;
}

label {
	cursor: pointer;
}

a {
	color: var(--magenta-hex);
	text-decoration: none;
}

a:hover {
	text-decoration: none;
}

button,
.button {
	-webkit-appearance: none;
  -moz-appearance: none;
	width: fit-content;
	padding: var(--button-padding-top-bottom) var(--button-padding-right-left);
	border: 0px;
	border-radius: 100px;
	background-color: var(--yellow-hex);
  border: 1px solid #000;
	cursor: pointer;
	font-family: var(--button-font-family);
	font-size: var(--button-font-size);
  line-height: var(--button-line-height);
	color: #000;
  transition: var(--transition);
}

button:hover,
.button:hover {
	background-color: #000;
  color: var(--yellow-hex);
}

button[disabled],
.button[disabled] {
	opacity: .5;
	cursor: not-allowed;
}

button[disabled]:hover,
.button[disabled]:hover {
	opacity: .5;
  background-color: var(--magenta-hex);
/* 	transition: var(--transition); */
}

#editor {
	width: var(--editor-width);
  height: var(--editor-height);
  display: flex;
  flex-direction: column;
  align-items: center;
	position: relative;
	margin: var(--editor-margin-top-bottom) 0;
  padding: var(--editor-padding-top) 0 0;
	font-size: var(--editor-font-size);
}

#editor > * {
	padding: 0 var(--editor-padding-right-left);
}

#website-heading {
  margin-bottom: var(--heading-margin-bottom);
}

#intro {
  margin-bottom: var(--intro-margin-bottom);
  font-family: var(--fieldgothic73);
  font-size: var(--intro-font-size);
  line-height: var(--intro-line-height);
}

#scroll-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-y: scroll;
/*   scrollbar-width: thin; */
/*   scrollbar-color: #000 transparent; */
}

#scroll-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

#scroll-container::-webkit-scrollbar-thumb {
  width: 6px;
  border-radius: 8px;
  background-color: #000;
}

#scroll-container::-webkit-scrollbar-track {
  width: 12px;
  background-color: transparent;
  border: 1px solid #000;
  border-radius: 8px;
}

#scroll-container::-webkit-scrollbar-track-piece {
  background: transparent;
}

#stage-controls-container {
  width: 100%;
  height: calc(var(--stage-container-width) + var(--controls-margin-top) + var(--control-buttons-height) + var(--controls-margin-bottom));
  display: flex;
  flex-direction: column;
}

#stage-container {
  flex-shrink: 0;
  width: var(--stage-container-width);
  height: var(--stage-container-height);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  
/*   border: 1px solid #000; */
}

#stage {
  flex-shrink: 0;
  transform: scale(var(--stage-scale));
	position: relative;
}

#stage-caption-container:empty,
#stage-caption-container:focus,
#stage-caption-container:hover {
	outline: 0;
	background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23E5007DFF' stroke-width='3' stroke-dasharray='15%2c 15' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e");
}

#stage-caption:focus {
	outline: 0;
}

#controls {
  width: var(--stage-container-width);
  display: flex;
  justify-content: space-between;
	align-items: center;
  margin: var(--controls-margin-top) 0 var(--controls-margin-bottom);
	user-select: none;
}

#controls-container,
.buttons-container {
	display: flex;
  gap: var(--controls-margin-top);
}

#social-icons {
  height: var(--control-buttons-height);
  display: flex;
  align-items: center;
  padding: 0 calc(var(--button-padding-right-left) - var(--controls-margin-top) * .75);
}

#social-icons:hover {
  background-color: var(--yellow-hex);
  color: #000;
}

.social-icon {
  display: flex;
  align-items: center;
  padding: 0 calc(var(--controls-margin-top) * .75);
}

.social-icon > svg {
  width: auto;
  height: calc(var(--control-buttons-height) * .6);
}

.control {
	height: var(--control-buttons-height);
  display: flex;
	justify-content: space-between;
	align-items: center;
  gap: 7.5px;
	border: var(--control-buttons-border-width) solid #000;
  border-radius: var(--control-buttons-height);
	font-size: var(--button-font-size);
}

.control#format-buttons {
  width: 13.2em;
  position: relative;
}

.control#format-buttons::before {
	content: '';
	width: 50%;
	height: 100%;
	position: absolute;
	z-index: -1;
	border-radius: var(--control-buttons-height);
	background-color: #000;
}

.control#format-buttons.square::before {
	left: 0%;
	transition: var(--transition);
}

.control#format-buttons.landscape::before {
	left: 50%;
	transition: var(--transition);
}

.control-button {
	height: var(--control-buttons-height);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
  border: none;
	border-radius: var(--control-buttons-height);
  background-color: transparent;
}

.control-button:hover {
  background-color: transparent;
}

.control-button[disabled],
.control-button[disabled]:hover {
  opacity: .5;
  background-color: transparent;
}

.control-button.format {
/*   padding: 0 var(--button-padding-right-left); */
  width: 50%;
  background-color: transparent;
}

#format-buttons.square > #landscape,
#format-buttons.landscape > #square {
  color: #000;
}

.control-button.font-size {
	width: var(--control-buttons-height);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.control-button.font-size::before {
  content: '';
  width: 60%;
  height: 2px;
  position: absolute;
  background-color: #000;
}

.control-button.font-size#font-up::after {
  content: '';
  width: 2px;
  height: 60%;
  position: absolute;
  background-color: #000;
}

#font-size-letter {
  font-size: 1.25em;
}

#font-size-letter > span {
  font-size: .75em;
}

#gallery {
  flex-shrink: 0;
  width: var(--gallery-width);
  display: flex;
  gap: var(--gallery-gap);
  flex-wrap: wrap;
}

.gallery-image {
  width: var(--gallery-image-width);
  height: var(--gallery-image-height);
  background-size: contain;
}

#footer {
  flex-shrink: 0;
  width: 100%;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--editor-margin-right-left);
  padding: 0;
  font-family: var(--fieldgothic72);
}

a.footer-link {
  font-size: .8rem;
  color: #000;
}

a.footer-link:hover {
  color: var(--magenta-hex);
  text-decoration: none;
}

#loading {
  width: 100%;
  height: 100%;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 30px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(var(--yellow-rgb),.9);
}

#loading-animation {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

#loading-animation div {
  animation: loading-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
#loading-animation div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #000;
  margin: -4px 0 0 -4px;
}
#loading-animation div:nth-child(1) {
  animation-delay: -0.036s;
}
#loading-animation div:nth-child(1):after {
  top: 63px;
  left: 63px;
}
#loading-animation div:nth-child(2) {
  animation-delay: -0.072s;
}
#loading-animation div:nth-child(2):after {
  top: 68px;
  left: 56px;
}
#loading-animation div:nth-child(3) {
  animation-delay: -0.108s;
}
#loading-animation div:nth-child(3):after {
  top: 71px;
  left: 48px;
}
#loading-animation div:nth-child(4) {
  animation-delay: -0.144s;
}
#loading-animation div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
#loading-animation div:nth-child(5) {
  animation-delay: -0.18s;
}
#loading-animation div:nth-child(5):after {
  top: 71px;
  left: 32px;
}
#loading-animation div:nth-child(6) {
  animation-delay: -0.216s;
}
#loading-animation div:nth-child(6):after {
  top: 68px;
  left: 24px;
}
#loading-animation div:nth-child(7) {
  animation-delay: -0.252s;
}
#loading-animation div:nth-child(7):after {
  top: 63px;
  left: 17px;
}
#loading-animation div:nth-child(8) {
  animation-delay: -0.288s;
}
#loading-animation div:nth-child(8):after {
  top: 56px;
  left: 12px;
}
@keyframes loading-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-caption {
	padding: 0 30px;
	font-size: 1.125rem;
	text-align: center;
}

/* #confirm-checkboxes {
	flex-direction: column;
	gap: .75em;
	font-size: .875rem;
}

label.confirm-label {
	display: flex;
	gap: .75em;
  cursor: pointer;
}

.confirm-circle {
	flex-shrink: 0;
	width: 2em;
	height: 2em;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	border: 2px solid #000;
	border-radius: 100%;
}

.confirm-check {
	width: 30%;
	height: 30%;
	position: absolute;
	opacity: 0;
	rotate: -10deg;
	background-image: url("../images/icons/list-marker-1.svg");
	background-size: contain;
	background-size: 60%;
  background-repeat: no-repeat;
	background-position: 79% 5%;
	transition: var(--transition);
}

input.checked + label.confirm-label .confirm-check {
	width: 300%;
	height: 300%;
	opacity: 1;
	transition: var(--transition);
} */



/* MEDIA QUERIES */

@media screen and (max-width: 1355px) {
  #line-decor {
    background-size: contain;
  }
}

@media screen and (max-width: 1200px) {
  :root {
    --editor-font-size: 1rem;
  }
}

@media screen and (max-width: 540px) {
  :root {
    --intro-font-size: 1.125rem;
    --editor-margin-right-left: 20px;
    --editor-font-size: .9375rem;
  }
  #stage-controls-container {
    height: calc(var(--stage-container-width) + var(--controls-margin-top) * 2 + var(--control-buttons-height) * 2 + var(--controls-margin-bottom));
  }
  #controls {
    align-items: flex-start;
  }
  .buttons-container {
    flex-direction: column;
  }
}

@media screen and (max-width: 400px) {
  :root {
    --button-padding-right-left: 24px;
/*     --button-font-size: 1rem; */
  }
}

@media screen and (max-width: 360px) {
  :root {
    --button-font-size: 1rem;
  }
}



















