@font-face {
    font-family: InterRegular;
    src: url(fonts/Inter_18pt-Regular.ttf);
}
@font-face {
    font-family: InterLight;
    src: url(fonts/Inter_18pt-Light.ttf);
}
@font-face {
    font-family: TeXGyreHerosRegular;
    src: url(fonts/TeX-Gyre-Heros/texgyreheros-regular.otf);
}
@font-face {
    font-family: TeXGyreHerosBold;
    src: url(fonts/TeX-Gyre-Heros/texgyreheros-bold.otf);
}
@font-face {
    font-family: TeXGyreHerosCnRegular;
    src: url(fonts/TeX-Gyre-Heros/texgyreheroscn-regular.otf);
}
@font-face {
    font-family: TeXGyreHerosCnBold;
    src: url(fonts/TeX-Gyre-Heros/texgyreheroscn-bold.otf);
}
:root {
    --primary: black; /*#F28E8E*/
    --secondary: #FFC4D8;
    --tertiary: #F2F2F2;
}
*, html {
    box-sizing: border-box;
}
::selection {
    background-color: var(--secondary);
    color: var(--primary);
}

/* SCROLLBAR */
/* width */
::-webkit-scrollbar {
  width: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--primary); 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--primary); 
}

/* GLOBAL */
body {
    margin: 0;
    box-sizing: border-box;
    color: var(--primary);
    background-color: var(--tertiary);
    padding: 20px;
    font-family: TeXGyreHerosRegular;
    height: 100vh;
    overflow: hidden;
}
nav {
    position: fixed;
    top: 20px;
    left: 20px;
}
#nav-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
#nav-links a {
    text-decoration: none;
    color: var(--primary);
}
h1 {
    font-weight: 100;
    font-family: 'Times New Roman', Times, serif;
    margin: 0 0 10px 0;
    font-size: 40px;
}
h2 {
    font-weight: 100;
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    font-size: 36px;
}
.section {
    text-transform: uppercase;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

/* ABOUT */
#about {
    width: 400px;
    background-color: var(--primary);
    color: white;
    position: fixed;
    top:0;
    left:0;
    padding: 20px 40px 20px 20px;
    height: fit-content;
    z-index: 100;
    font-family: 'Times New Roman', Times, serif;
    display: none;
}
#about li {
    margin-bottom: 10px;
}
#open-about, #open-gallery {
    cursor: pointer;
}
#open-about:hover, #open-gallery:hover {
    border-bottom: 1px solid var(--primary);
}
#close-about {
    cursor: pointer;
    display: block;
    margin-bottom: 60px;
}
#about.open {
    display: block;
}
/* VISITING CARD */
#canvas {
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#meme-canvas {
    background-color: #ffffff;
    color: black;
    transform: scale(0.4);
    transform-origin: center;
    filter: drop-shadow(0px 10px 8px rgba(0,0,0,0.25));
    padding: 10px;
    margin-left: -100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: all 0.75s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/*#meme-canvas:hover {
    transform: rotate(3deg);
}*/
#content {
    width: 100%;
    height: 100%;
}
.meme-canvas-1 {
    width: 1080px;
    height: 1080px;
}
.meme-canvas-2 {
    width: 1080px;
    height: 1440px;
}
.meme-canvas-3 {
    width: 1080px;
    height: 566px;
}
#output-lineone, #output-linetwo {
    font-size: 50px;
    line-height: 50px;
    letter-spacing: -1%;
}

/* RIGHT TOOLBAR */
#right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    padding: 50px 40px;
    overflow-y: auto;
    overflow-x: hidden;
}
#toolbar {
    width: 350px;
    border: 1px solid var(--primary);
    padding: 20px;
    background-color: #f2f2f290;
    backdrop-filter: blur(5px);
}
.toolbar-section {
    margin-bottom: 60px;
}
/* TOOLBAR */
#dimension-options, #border-options, #font-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
#dimension-options span {
    border: 1px solid var(--primary);
    padding: 5px;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
}
#dimension-options span:hover {
    background-color: var(--primary);
    color: var(--secondary);
}
label {
    font-size: 12px;
    text-transform: uppercase;
}
input {
    background: none;
    border: 0px;
    border-bottom: 1px solid var(--primary);
}
input:focus {
    outline: none;
}
#meme-imgs, #font-colors, #stroke-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.meme-img {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    cursor: pointer;
    background-size: cover;
    background-repeat: no-repeat;
}
#font-color-picker, #stroke-color-picker {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    cursor: pointer;
}
input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  cursor: pointer;
  background: none;
  padding: 0;
  border: 1.5px solid lightgrey;
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: 0px solid #000;
  border-radius: 100%;
}
input[type="color"]::-moz-color-swatch {
  border: 0px solid #000;
  border-radius: 100%;
}
.font-color-option, .stroke-color-option {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    cursor: pointer;
    border: 1.5px solid lightgrey;
}
#border-1, #border-2, #border-3, #border-4, #border-5 {
    width: 30px;
    height: 30px;
    cursor: pointer;
}
#border-1:hover, #border-2:hover, #border-3:hover, #border-4:hover, #border-5:hover {
    opacity: 0.25;
}
#border-1 {
    border: 1px solid var(--primary);
    width: fit-content;
    font-size: 10px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
}
#border-2, .border-2 {
    border: 2px solid var(--primary);
}
#border-3, .border-3 {
    border: 1px dashed var(--primary);
}
#border-4, .border-4 {
    border: 2px double var(--primary);
}
#border-5, .border-5 {
    border: 1px dotted var(--primary);
}
.border-1, .border-2, .border-5 {
    border-width: 5px !important;
}
.border-3 {
    border-width: 4px !important;
}
.border-4 {
    border-width: 7px !important;
}

/* LAYOUTS */
.layout-1 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: 50px;
    padding: 20px;
}
.layout-1 div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* FONT STYLES */
#regular-font, #bold-font, #regular-font-condensed, #bold-font-condensed, #outline-text {
    border: 1px solid var(--primary);
    padding: 5px;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 10px;
}
#regular-font:hover, #bold-font:hover, #regular-font-condensed:hover, #bold-font-condensed:hover {
    background-color: var(--primary);
    color: var(--secondary);
}
#regular-font, .regular-font {
    font-family: TeXGyreHeros;
}
#bold-font, .bold-font {
    font-family: TeXGyreHerosBold;
}
#regular-font-condensed, .regular-font-condensed {
    font-family: TeXGyreHerosCn;
}
#bold-font-condensed, .bold-font-condensed {
    font-family: TeXGyreHerosCnBold;
}
#outline-text {
  -webkit-text-stroke: 1px var(--primary);
}
.outline-text {
  -webkit-text-stroke: 3px black;
}

/* FONT SIZE */
.slider {
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    background: var(--primary);
    outline: none;
  }
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 100%;
  }
  
.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary);
    cursor: pointer;
}

/* DOWNLOAD BUTTON */
#download-button {
    border: 1px solid var(--primary);
    padding: 10px;
}

#download-button:hover {
    background-color: var(--primary);
    color: var(--tertiary);
    cursor: pointer;
}