/****************************************************/
/* Base                                             */
/****************************************************/

html {
    background-image: url('/static/img/background.png');
    background-size: 100% auto;
    height: 100%;
}

body {
    /* height: 100%; */
    margin: 0;
    /* padding-top: 50px; */
    /* display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 50px auto auto;
    justify-items: center;
    align-items: center; */
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    min-height: 100vh;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #000000;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    grid-row: 1 / 2;
    width: 100%;
    height: 50px;
    display: grid;
    grid-template-columns: 147px auto 50px;
    grid-template-rows: 50px;
    justify-items: center;
    align-items: center;
    z-index: 30;
}

.navbar__title {
    position: fixed;
    top: 5px;
    left: 5px;
    margin: 5px;
    grid-column: 1 / 2;
    transition: top 0.5s ease;
}

.navbar__title--hidden {
    top: -50px;
    /* display: none; */
    transition: top 0.5s ease;
}

.navbar__link {
    grid-column: 2 / 3;
    justify-self: start;
    margin-left: 30px;
    padding: 5px 15px;
}

.navbar__hamburger {
    grid-column: 3 / 4;
    margin: 5px;
    background-color: #00000000;
    border-radius: 5px;
}

.navbar__hamburger svg {
    stroke: #2c2c2c;
}

.navbar__hamburger:hover {
    cursor: pointer;
    stroke: #000000;
    background-color: #d4d4d477;
}

.menu {
    position: fixed;
    top: -200px;
    right: 0px;
    width: 200px;
    height: auto;
    background-color: #ffffff;
    z-index: 20;
    box-shadow: -3px 0 5px #00000031;
    transition: top 0.5s ease;
    display: flex;
    flex-direction: column;
    padding: 60px 10px 10px 10px;
}

.menu--open {
    top: 0;
    transition: top 0.5s ease;
}

.menu__link {
    border-top: 1px solid #00000031;
    text-decoration: none;
    color: inherit;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin: 0px 0 5px 5px;
    padding: 8px 3px 3px 10px;
}

#menu__link--top {
    border-top: none;
}


.menu__link:hover {
    color: #276bb5;
    cursor: pointer;
    font-weight: 600;
}


.footer {
    /* margin: 50px 0 0 0; */
    margin-top: auto;
    grid-row: 3 / 4;
    width: 100%;
    /* height: 100px; */
    height: auto;
    background-color: #d0cfcf;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer__text {
    margin: 5px 15px;
    font-size: 12px;
    font-weight: 200;
}

/****************************************************/
/* Home                                             */
/****************************************************/

.home {
    margin-top: 150px;
    /* grid-row: 2 / 3; */
    width: 100%;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 100px auto auto auto;
    justify-items: center;
    align-items: center;
}

.home__title {
    grid-row: 1 / 2;
    height: 100px;
}

.home__subtitle {
    grid-row: 2 / 3;
    font-size: 16px;
    font-weight: 200;
}

.home__buttons {
    grid-row: 3 / 4;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 40%;
}

.home__button {
    width: 40%;
    height: 30px;
    margin: 0 5%;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 200;
    text-decoration: none;
    text-align: center;
    background-color: #a5a5a5af;
    box-shadow: 3px 3px 3px #00000031, -1px -1px 3px #00000031;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.home__button:hover {
    background-color: #dddddd;
    color: #276bb5;
    cursor: pointer;
}

.home__info {
    grid-row: 4 / 5;
    font-size: 14px;
    font-weight: 200;
    display: flex;
    flex-direction: column;
}

.home__info-line {
    margin: 50px;
    width: 70vw;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
}

.home__info-title {
    margin: 20px 0;
    grid-row: 1 / 2;
    font-size: 20px;
    font-weight: 200;
    background-color: #6e6e6ecb;
    padding: 5px;
    color: #ffffff;
}

.home__info-data {
    grid-row: 2 / 3;
}

#demo {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

#demo div {
    max-width: 300px;
    background-color: #d0cfcfaf;
    padding: 10px;
    font-size: 12px;
    font-weight: 100;
    border-radius: 5px;
}

#demo h3 {
    font-size: 14px;
}

#demo__left,
#demo__right {
    width: 20vw;
}


img#demo__center {
    margin: 0 5%;
    width: 60%;
    height: auto;
    object-fit: contain;
    grid-column: 2 / 3;
    box-shadow: 3px 3px 3px #00000031, -1px -1px 3px #00000031;
    background-color: #ffffff;
}

#where_to_threads {
    width: 70vw;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 5vw;
    justify-self: center;
}

.where_to_threads__text {
    width: 100%;
    height: auto;
    /* padding: 5px; */
    background-color: #d0cfcfaf;
    border-radius: 5px;
    box-shadow: 3px 3px 3px #00000031, -1px -1px 3px #00000031;
    grid-column: 1/2;
}

.where_to_threads__text h3 {
    font-size: 14px;
    margin-left: 14px;
}

.where_to_threads__text p {
    font-size: 12px;
    font-weight: 100;
    margin-left: 14px;
    margin-right: 14px;
}

.where_to_threads__image {
    width: 100%;
    height: auto;
    grid-column: 2/3;
    background-color: #ffffff00;
    display: flex;
    justify-content: center;
}

.where_to_threads__image img {
    width: 60%;
    height: auto;
    object-fit: contain;
    /* object-fit: cover; */
}


#pricing {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

#pricing__card {
    margin: 5px;
    border-radius: 5px;
    width: 80vw;
    height: auto;
    /* box-shadow: 3px 3px 3px #00000031, -1px -1px 3px #00000031; */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    /* background-color: #ffffff; */
    justify-items: center;
    align-items: center;
}

#pricing__text {
    width: 20%;
    height: 100%;
    background-color: #d0cfcfaf;
    box-shadow: 3px 3px 3px #00000031, -1px -1px 3px #00000031;
}

#pricing img {
    width: 35%;
    margin: 10px;
}

#pricing__image {
    box-shadow: 3px 3px 3px #00000031, -1px -1px 3px #00000031;
}

#pricing__text {
    display: flex;
    flex-direction: column;
}

#pricing__text h1 {
    width: 60%;
    align-self: center;
    text-align: center;
    font-size: 4.5em;
    font-weight: 200;
    margin-bottom: 0;
    margin-right: 15%;
}

#pricing__text h1 span {
    font-size: 0.5em;
    vertical-align: top;
}

#pricing__text h3 {
    text-align: center;
    font-size: 1em;
    margin-top: 3px;
}

#pricing__text p {
    font-size: 12px;
    width: 90%;
    margin: 5%;
}

#example {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    /* margin-top: 50px; */
}

.example__card {
    width: auto;
    height: 300px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 3px 3px 3px #00000031, -1px -1px 3px #00000031;
    margin-bottom: 30px;
}

.example__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.example__card--large {
    width: 60vw;
    height: auto;
}


/****************************************************/
/* Login/Register                                   */
/****************************************************/
.login, .register, .forgot, .reset-password, .password-reset, .forgot_sent {
    margin-top: 150px;
}

.login, .register, .forgot, .reset-password, .password-reset {
    /* grid-row: 2 / 3; */
    display: grid;
    width: 25%;
    grid-template-columns: 100%;
    padding: 20px 20px 40px 20px;
    background-color: #d0cfcf6b;
    border-radius: 5px;
}

.login, .register, .forgot {
    grid-template-rows: auto auto auto auto;
}

.reset-password, .password-reset {
    grid-template-rows: auto auto;
}

.password-reset {
    width: 50%;
}

.login h1, .register h1, .forgot h1, .reset-password h1{
    grid-row: 1 / 2;
    font-size: 30px;
    font-weight: 200;
}

.login form, .register form, .forgot form, .reset-password form {
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    /* align-items: center; */
}

.login label, .register label, .forgot label, .reset-password label{
    text-align: left;
    margin-bottom: 5px;
}

.login input, .register input, .forgot input, .reset-password input {
    align-self: center;
    margin-bottom: 15px;
    width: 80%;
    margin: inherit 10%;
}

.login__bottom, .register__bottom, .forgot__bottom {
    grid-row: 3 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    align-items: end;
    font-size: 10px;
}

.login__register, .register__login, .forgot__register {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.login__register a, .login__forgot a, .register__login a, .register__forgot a, .forgot__register a, .forgot__login a {
    text-decoration: underline;
    color: #276bb5;
}
.login__register a:hover, .login__forgot a:hover, .register__login a:hover, .register__forgot a:hover, .forgot__register a:hover, .forgot__login a:hover {
    color: #000000;
}

.login__register p, .register__login p, .forgot__register p, .forgot__login p {
    margin: 0;
}

.login__forgot, .register__forgot, .forgot__login {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.login__retry, .register__retry {
    grid-row: 4 / 5;
    font-size: 10px;
    color: red;
    text-align: center;
}

.forgot_sent {
    grid-row: 2 / 3;
    display: grid;
    width: 25%;
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto;
    padding: 20px 20px 40px 20px;
    background-color: #d0cfcf6b;
    border-radius: 5px;
}

.forgot_sent h1 {
    grid-row: 1 / 2;
    font-size: 20px;
    font-weight: 200;
}

.forgot_sent p {
    grid-row: 2 / 3;
    font-size: 12px;
    font-weight: 200;
}

.forgot_sent a {
    grid-row: 3 / 4;
    font-size: 12px;
    font-weight: 200;
    text-decoration: none;
    color: #276bb5;
}

.forgot_sent a:hover {
    color: #000000;
    text-decoration: underline;
}

/* .reset-password {
    grid-row: 2 / 3;
    display: grid;
    width: 25%;
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto;
    padding: 20px 20px 40px 20px;
    background-color: #d0cfcf6b;
    border-radius: 5px;
} */

/****************************************************/
/* Gallery                                          */
/****************************************************/

.gallery {
    margin-top: 75px;
    /* grid-row: 2 / 3; */
    display: grid;
    grid-template-rows: auto 75vh;
    width: 90%;
}

.gallery__title {
    grid-row: 1 / 2;
    font-size: 30px;
    font-weight: 200;
    height: 40px;
    margin: 20px;
    position: relative;
    display: grid;
    grid-template-columns: auto 40px;
    align-items: center;
}

.gallery__title i {
    grid-column: 1 / 2;
}

.gallery__tooltip {
    grid-column: 2 / 3;
    width: 40px;
    height: 40px;
    background-color: #ffffff00;
    color: #204a76;
    border-radius: 50%;
    text-align: center;
    transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 3px 3px 5px #00000000;
}

.gallery__tooltip::after {
    content: 'From this page you can manage the images you have uploaded. You can create new patterns, delete old ones, and view the patterns you have created. You can also purchase more image slots.\A\A Click on an image to show any patterns you have created, or create a new pattern.\A\A Enjoy!';
    white-space: pre-wrap;
    font-size: 12px;
    position: absolute;
    top: 0;
    right: 50px;
    width: 250px;
    height: auto;
    padding: 5px;
    box-shadow: 3px 3px 5px #00000031;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
    border-radius: 5px;
    transition: opacity 0.5s ease;
    z-index: 30;
}

.gallery__tooltip:hover {
    background-color: #276bb5;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 3px 3px 5px #00000031;
}

.gallery__tooltip:hover::after {
    opacity: 0.75;
    color: #276bb5;
}

.gallery__browser {
    grid-row: 2 / 3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
    background-color: #d0cfcfaf;
    box-shadow: inset -3px 0 5px #00000031;
    overflow: scroll;
}

.gallery__image, .gallery__add-image, .gallery__buy-image {
    margin: 25px 30px 30px 25px;
    display: grid;
    grid-template-columns: 250px;
    grid-template-rows: auto 40px;
    cursor: pointer;
}
.gallery__add-image, .gallery__buy-image {
    font-size: 18px;
    width: 250px;
    height: 250px;
    box-shadow: 1px 1px 3px #00000031, -1px -1px 3px #00000031;
    border-radius: 5px;
    z-index: 10;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.gallery__image {
    image-rendering: pixelated;
}

.gallery__image:hover > .gallery__image--patterns {
    box-shadow: 0px 0px 0px #00000031, 10px 10px 0px #00000031, 20px 20px 0px #00000031, 30px 30px 0px #00000031, 0px 0px 3px #276bb5;
    border: 2px solid #276bb5;
    box-sizing: border-box;
}

.gallery__image:hover > .gallery__image--nopatterns {
    border: 2px solid #276bb5;
    box-shadow: 0px 0px 3px #276bb5;
    box-sizing: border-box;
}

.gallery__image:hover > .gallery__create-button {
    border: 3px solid #276bb5; /* the outer space */
    background-color: #276bb5;
}

/* Handling the color of the plus sign */
.gallery__image:hover > .gallery__create-button::before, .gallery__image:hover > .gallery__create-button::after {
    background-color: #fff;
}

.gallery__image:hover > .gallery__create-button::after {
    opacity: 1;
}

.gallery__image--patterns {
    transition: box-shadow 1s ease, border 0.1s ease;
    box-shadow: 10px 10px 0px #00000031, 20px 20px 0px #00000031, 30px 30px 0px #00000031, 30px 30px 0px #00000031, 0px 0px 0px #276bb5;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.gallery__image--nopatterns {
    transition: box-shadow 0.1s ease, border 0.1s ease;
    box-shadow: 0px 0px 0px #276bb5;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.gallery__image img {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 5px;
    background-color: #ffffff;
}

.gallery__create-button {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    /* margin: 5px 5px; */
    margin: 0;
    height: 30px;
    width: 30px;
    transition: box-shadow 0.5s ease, border 0.5s ease, background-color 0.5s ease;
    justify-self: center;
    position: relative;
    border-radius: 50%;
}

.gallery__create-button::before, .gallery__create-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 20px;
    background-color: #276bb5;
    transform-origin: center;
    transition: background-color 0.5s ease;
}

.gallery__create-button::before {
    transform: translate(-50%, -50%);
}

.gallery__create-button::after {
    transform: translate(-50%, -50%) rotate(90deg);
}


.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000088;
    z-index: 20;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    visibility: hidden;
}

.gallery__overlay--visible {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    cursor: auto;
}

.gallery__patterns {
    width: 70%;
    height: 600px;
    z-index: 20;
    transition: top 1s ease;
    display: grid;
    grid-template-columns: auto 30px;
    grid-template-rows: 30px auto;
}

/* .gallery__patterns--open {
    top: 0;
    transition: top 1s ease;
} */

.gallery__patterns--close {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    height: 30px;
    width: 30px;
    justify-self: end;
    position: relative;
    border-radius: 50%;
    background-color: #fff;
}

.gallery__patterns--close::before, .gallery__patterns--close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 15px;
    background-color: #276bb5;
    transform-origin: center;
    /* transition: background-color 0.5s ease; */
}

.gallery__patterns--close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.gallery__patterns--close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.gallery__patterns--close:hover {
    cursor: pointer;
    background-color: #ff4747;
}

.gallery__patterns--close:hover::before, .gallery__patterns--close:hover::after {
    background-color: #fff;
}

.patterns {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 600px;
}

.patterns__container {
    width: 95%;
    height: 95%;
    box-shadow: inset -3px 0 5px #00000031;
    /* background-color: #d0cfcf; */
    background-image: url('../img/dark_background.png');
    background-size: auto 100%;
    overflow: scroll;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

.pattern {
    width: 90%;
    height: 300px;
    margin: 30px 10px 10px 10px;
    display: grid;
    grid-template-columns: 300px auto;
    grid-template-rows: 300px;
    cursor: pointer;
    background-color: #fff;
    box-shadow: 1px 1px 3px #00000031, -1px -1px 3px #00000031;
    border-radius: 5px;
    z-index: 10;
    transition: box-shadow 0.5s ease;
    text-decoration: none;
    color:inherit;
    position: relative;
}

.pattern__delete,
.pattern__refresh {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    /* background-color: #ff4747; */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* color: #fff; */
    /* font-size: 12px; */
    cursor: pointer;
    box-shadow: inset 0px 0px 0px #00000031;
    transition: background-color 0.5s ease, stroke 0.5s ease, fill 0.5s ease, box-shadow 0.5s ease;
}

.pattern__delete i {
    color: #ff4747;
}

.pattern__refresh i {
    color: #276bb5;
}

.pattern__delete:hover,
.pattern__refresh:hover {
    box-shadow: inset 3px 3px 0px #00000031, inset -1px -1px 0px #00000031;
}   
.pattern__delete:hover {
    background-color: #ff4747;
}
.pattern__refresh:hover {
    background-color: #276bb5;
}

.pattern__delete:hover i,
.pattern__refresh:hover i {
    color: #fff;
}

.pattern__delete:hover path {
    stroke: #fff;
    fill: #fff;
}

.pattern:hover {
    box-shadow: 5px 5px 10px #276bb5, -3px -3px 5px #276bb5;
    color: #276bb5
}

.pattern:hover > .pattern__image:not(.pattern__image--processing) {
    border: 3px solid #276bb5;
    box-sizing: border-box;
}

.pattern__image {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 250px;
    height: 250px;
    margin: 25px;
    object-fit: contain;
    border-radius: 5px;
    background-color: #ffffff;
    image-rendering: pixelated;
    box-shadow: 1px 1px 3px #00000031, -1px -1px 3px #00000031;
    position: relative;
}

.pattern__image--processing{
    width: 50%;
    height: 50%;
    border-radius: 50%;
    border: 20px solid #276bb5;
    border-top: 20px solid #00000031;
    animation: spin 1s linear infinite;
    justify-self: center;
    align-self: center;
}

.pattern__data {
    margin: 20px 20px 0 0;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    text-align: center;
    align-items: center;
}

.pattern__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;

}

.pattern__dimensions, .pattern__threads {
    width: 50%;
    font-size: 20px;
    font-weight: 200;
}

.pattern__threads--processing {
    display: inline-block;
    position: relative;
}

.pattern__threads--processing::after {
    content: '.';
    animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.pattern__created {
    font-size: 12px;
    font-weight: 100;
    color: #555555
}

.new-pattern, .gallery__add-image, .gallery__buy-image {
    justify-items: center;
    align-items: center;
    cursor: pointer;
    background-color: #fff;
    box-shadow: 1px 1px 3px #00000031, -1px -1px 3px #00000031;
    border-radius: 5px;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    z-index: 10;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, fill 0.5s ease;
}

.new-pattern {
    width: 60%;
    min-height: 100px;
    margin: 30px 10px 10px 10px;
}

.new-pattern__button, .gallery__add-image--button, .gallery__buy-image--button {
    width: 100%;
    height: 100%;
    display: grid;
    align-items: center;
    text-decoration: none;
    color: #276bb5
}

.gallery__add-image--button, .gallery__buy-image--button { 
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    text-align: center;
}

.new-pattern__button {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}

.new-pattern__button span {
    font-size: 24px;
    font-weight: 200;
    color: #276bb5
}

.new-pattern__plus, .add-icon__plus, .upload-icon {
    height: 40px;
    width: 40px;
    justify-self: center;
    position: relative;
}

.add-icon__plus {
    border-radius: 50%;
}

.upload-icon {
    fill: #276bb5
}

.new-pattern:hover, .gallery__add-image:hover, .gallery__buy-image:hover{
    background-color: #276bb5;
    box-shadow: 3px 3px 5px #204a76, 0px 0px 0px #204a76;
}

.new-pattern:hover > .new-pattern__button span, .gallery__add-image:hover > .gallery__add-image--button span, .gallery__buy-image:hover > .gallery__buy-image--button span{
    color: #fff;
}

.new-pattern:hover .new-pattern__plus::before, .new-pattern:hover .new-pattern__plus::after, .gallery__add-image:hover .add-icon__plus::before, .gallery__add-image:hover .add-icon__plus::after, .gallery__buy-image:hover .add-icon__dollar::before, .gallery__buy-image:hover .add-icon__dollar::after {
    background-color: #fff;
}

.gallery__add-image:hover .upload-icon {
    fill: #fff;
}

.gallery__buy-image:hover .add-icon__dollar {
    color: #fff;
}

.new-pattern__plus::before, .new-pattern__plus::after, .add-icon__plus::before, .add-icon__plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 40px;
    background-color: #276bb5;
    transform-origin: center;
    /* transition: background-color 0.5s ease; */
}

.new-pattern__plus::before, .add-icon__plus::before {
    transform: translate(-50%, -50%);
}

.new-pattern__plus::after, .add-icon__plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.add-icon__dollar {
    font-size: 32px;
}

/****************************************************/
/* Create                                           */
/****************************************************/

.create {
    position: relative;
    margin-top: 75px;
    width: 90%;
    display: grid;
    grid-template-columns: 60px 3fr 4fr;
    grid-template-rows: 60px 75vh;

}

.create__back {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 5px;
    justify-self: center;
    align-self: center;
    border-radius: 50%;
    background-color: #00000000;
    box-shadow: 0px 0px 0px #00000031;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, fill 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.create__back:hover {
    background-color: #276bb5;
    box-shadow: 3px 3px 5px #00000031;
}

.create__back:hover path {
    fill: #fff;
}

.create-form-group input {
    border: none;
    background-color: #0000001c;
    box-shadow: 3px 3px 5px #00000031;
}

.create__preview {
    position: relative;
    width: 100%;
    height: 100%;
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 6fr 1fr;
    justify-items: center;
    align-items: center;
}

.create__preview-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0000001c;
    pointer-events: none;
    display: grid;
    z-index: 100;
}

.create__preview-loader--spinner {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid #ffffff96;
    border-top: 20px solid #276cb5a0;
    animation: spin 1s linear infinite;
    justify-self: center;
    align-self: center;
}

.create__preview-loader--hidden {
    display: none;
}

.create__preview--image{
    position: relative;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    height: 100%;
    width: auto;
    object-fit: contain;
    image-rendering: pixelated;
    background-color: #fff;
    box-shadow: 3px 3px 5px #00000031, -1px -1px 3px #00000031;
}

.create__title {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto 20px;
    align-items: center;
    justify-items: center;
}

.create__title input {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    font-size: 36px;
    font-weight: 200;
    align-self: flex-end;
    text-align: center;
    border-radius: 5px;
}

.create__title label {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    font-size: 12px;
    font-weight: 200;
}

.create__details {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto 1fr 1fr 60px;
    align-items: center;
    justify-items: center;
}

.create__details h1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin-left: 10px;
}

.create__dimensions {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    width: 80%;
    border-bottom: 2px solid #0000005d;
    height: 100%;
    position: relative;
}

.create__dimensions span {
    font-size: 36px;
    font-weight: 200;
}

.create__dimension-w {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.create__dimension-h {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.create__dimension {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto 20px;
    justify-items: center;
    align-items: center;
    width: 25%;
}

.create__dimension input {
    text-align: center;
    font-size:48px;
    width: 100%;
    border-radius: 5px;
}

.create__dimension label {
    font-size: 12px;
    font-weight: 200;
}

.create__type {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 40px auto;
    width: 80%;
    height: 100%;
    justify-items: center;
    align-items: center;
}

.create__type--button {
    display: grid;
    width: 90%;
    margin: 2.5%;
    padding: 2.5%;
    grid-template-columns: 40px auto 40px;
    grid-template-rows: auto;
    align-items: center;
    justify-items: center;
    border-radius: 5px;
    box-shadow: 0px 0px 0px #00000031;
    transition: box-shadow 0.5s ease, color 0.5s ease;
    position: relative;
}

.create__type--button:hover {
    cursor: pointer;
    color: #276bb5;
}

.create__type--button:hover .create__button--icon::after {
    opacity: 1;
}

.create__type--button--selected {
    box-shadow: 3px 3px 1px #00000031;
    background-color: #276bb5;
    color: #fff;
}

.create__type--button--selected:hover {
    color: #fff;
}

.create__type--button--selected .create__button--icon::after {
    opacity: 1;
}

.create__type--max-threadss {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.create__type--min-stitches {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.create__button--icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1 / 2;
    position: relative;
    background-color: #fff;
    box-shadow: 1px 1px 3px #00000031;
}

.create__button--icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    opacity: 0;
    /* background-color: #276bb5; */
    background: radial-gradient(circle at 30% 30%, #92c6ff, #276bb5);
    transform-origin: center;
    transition: opacity 0.5s ease;
}

.create__button--text {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2 / 3;
}

.create__tooltip {
    /* position: absolute; */
    /* align-self: flex-end; */
    bottom: 20px;
    width: 20px;
    height: 20px;
    font-size: 15px;
    background-color: #276bb5;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 3px 3px 5px #00000000;
    pointer-events: auto;
}

.create__tooltip--max-threadss {
    right: 5px;
    top: 10px;
    grid-column: 3 / 4;
}

.create__tooltip--min-stitches {
    /* left: 20px; */
    /* top: 50%; */
    grid-column: 3 / 4;
}

.create__tooltip--max-threadss::after {
    content: 'The "Max Threads" setting allows you to specify the maximum number of different thread colors you\'d like to use in your stitching project.\A\A For example, if you set "Max Colors" to 50, we\'ll convert the pixels in your image to match up to 50 different DMC thread colors.\A\A Please note that the actual number of colors used may be less than your "Max Colors" setting, depending on the color variety in your image.\A\ATIP: Use the arrow keys to fine-tine the slider.';
    white-space: pre-wrap;
    font-size: 12px;
    position: absolute;
    top: 40px;
    right: calc(50% - 200px);
    width: 300px;
    height: auto;
    padding: 25px;
    box-shadow: 3px 3px 5px #00000031;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
    border-radius: 5px;
    transition: opacity 0.5s ease;
    z-index: 20;
}

.create__tooltip--min-stitches::after {
    content: 'The "Min Stitches" setting allows you to specifiy the minimum number of stitches for the least frequent thread.\A\A For example, if you set "Min Stitches" to 50, we\'ll convert the pixels in your image such that all threads will have at least 50 stitches.\A\A Please note that there is no limit to the number of colors that can be used in this setting.\A\ATIP: Use the arrow keys to fine-tine the slider.';
    white-space: pre-wrap;
    font-size: 12px;
    position: absolute;
    top: 40px;
    right: calc(50% - 200px);
    width: 300px;
    height: auto;
    padding: 25px;
    box-shadow: 3px 3px 5px #00000031;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
    border-radius: 5px;
    transition: opacity 0.5s ease;
    z-index: 20;
}

.create__tooltip--dimensions::after {
    content: "Adjust the dimensions that fit your project. We display the total number of stitches based on the dimenions (this may include whitespace stitches that you may not actually stitch).\A\A Please note: this preview is pre-processed and does not reflect the final colors in the pattern.";
    white-space: pre-wrap;
    font-size: 12px;
    position: absolute;
    bottom: 0;
    left: 40%;
    width: 300px;
    height: auto;
    padding: 25px;
    box-shadow: 3px 3px 5px #00000031;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
    border-radius: 5px;
    transition: opacity 0.5s ease;
    z-index: 20;
}

.create__tooltip--max-threadss:hover, .create__tooltip--min-stitches:hover, .create__tooltip--dimensions:hover {
    background-color: #276bb5;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 3px 3px 5px #00000031, -1px -1px 3px #00000031;
}

.create__tooltip--max-threadss:hover::after, .create__tooltip--min-stitches:hover::after, .create__tooltip--dimensions:hover::after {
    opacity: 0.95;
    color: #276bb5;
    box-shadow: 3px 3px 5px #00000031, -1px -1px 3px #00000031;
}

.create__max-threadss {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.create__min-stitches {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.create__slider {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    width: 80%;
}

.create__slider--bubble {
    position: absolute;
    top: 15%;
    /* width: 50px;
    height: 50px; */
    font-size: 48px;
    margin-bottom: 10px;
    border-radius: 5px 5px 15px 15px;
    background-color: #276bb500;
    color: #276bb5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.create__slider input {
    width: 100%;
}

.create__slider label {
    font-size: 12px;
    font-weight: 200;
}

.create__slider--inactive {
    pointer-events: none;
}
.create__slider--inactive .create__slider--bubble {
    /* background-color: #00000031; */
    color: #00000031;
}

.create__slider--inactive label {
    color: #00000031;
}

.create__slider--inactive input {
    opacity: 0.25;
}

.create__button {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
    width: 80%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    margin-top: 10px;
}

.create__button input {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
    color: #276bb5;
    border-radius: 5px;
    box-shadow: 3px 3px 5px #00000031, -1px -1px 3px #00000031;
    transition: background-color 0.5s ease, color 0.5s ease;
    font-size: 24px;
}
.create__button input:hover {
    background-color: #276bb5;
    color: #fff;
    cursor: pointer;
}

/****************************************************/
/* Create Success                                   */
/****************************************************/
.create-success {
    margin-top: 275px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 70%;
}

.create-success h1 {
    font-size: 48px;
    font-weight: 200;
    margin: 20px;
}

.create-success h1 span {
    font-size: 24px;
}

.create-success p {
    font-size: 18px;
    font-weight: 200;
    margin: 20px;

}

.create-success__waiting {
    width: 100%;
    display: flex;
    height: 80px;
    /* grid-template-columns: 80px auto; */
    align-items: center;
}

.purchase__waiting--spinner,
.create-success__waiting--spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 20px solid #276bb5;
    border-top: 20px solid #00000031;
    animation: spin 1s linear infinite;
    grid-column: 1 / 2;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.create-success__waiting p {
    font-size: 14px;
    font-weight: 200;
    grid-column: 2 / 3;
    display: flex;
    align-items: center;
}

.create-success__waiting--reload {
    font-size: 24px;
    text-decoration: none;
    margin-right: 10px;
}

.create-success__waiting--gallery {
    font-size: 24px;
    text-decoration: none;
    flex-grow: 2;
    text-align: center;
    /* margin-right: 100px; */
}

.create-success__waiting--reload:hover, .create-success__waiting--gallery:hover {
    text-decoration: underline;
}

/****************************************************/
/* Pattern                                          */
/****************************************************/

.ui {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    width: 100vw;
    height: calc(100vh - 55px);
    margin-top: 55px;
    position: relative
}

.ui__threads {
    position: absolute;
    top: 10;
    /* left: -400px; */
    left: -480px;
    width: 480px;
    height: calc(100% - 20px);
    /* background-color: #d0cfcf; */
    background-color: #ffffffdd;
    /* box-shadow: 3px 0 5px #00000031; */
    border: 10px solid #d0cfcf;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: left 0.5s ease;
}

.ui__threads--open {
    left: 0px;
}

.ui__threads--open:hover {
    left: 0px;
}

/* .ui__threads--open svg {
    transform: scaleX(-1)
} */

.ui__threads--toggle {
    position: absolute;
    top: 10px;
    right: -50px;
    width: 50px;
    height: 100px;
    background-color: #d0cfcf;
    border-radius: 0px 5px 5px 0px;
    box-shadow: 3px 3px 0px #00000015;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, scale 0.5s ease;
    z-index: 1;
}

/* .ui__threads--toggle svg {
    transition: transform 0.3s ease-in-out;
} */

.ui__threads--toggle--active svg {
    transform: scaleX(-1);
    transition: transform 0.5s ease-in-out;
}

.ui__threads--toggle:hover {
    cursor: pointer;
    box-shadow: 3px 3px 0px #00000015;
    background-color: #276bb5;
}

.ui__threads-container {
    /* width: calc(100% - 20px);
    height: calc(100% - 20px); */
    width: 100%;
    height: 100%;
    /* display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    flex-wrap: nowrap; */
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: 150px 50px auto;
    justify-items: center;
    align-items: center;
    background-color: #ffffff92;
}

.ui__threads-menu {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.ui__threads-highlights {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

.ui__threads-highlights h1, .ui__threads-scale h1 {
    font-size: 14px;
    font-weight: 200;
}

.ui__threads-highlights--grid {
    width: 80%;
    height: 57%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    justify-items: center;
    align-items: center;
    box-shadow: inset -3px -3px 3px #00000015, inset 3px 3px 3px #00000015;
    background-color: #e5e5e5;
}

.ui__thread-highlight {
    width: 55%;
    height: 55%;
    border-radius: 50%;
    box-sizing: border-box;
    border: 2px solid #00000031;
    box-shadow: 3px 3px 0px #00000015;
    position: relative;
    transition: box-shadow 0.1s ease, border 0.1s ease;
}

.ui__thread-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #ffffff00);
    transition: opacity 0.1s ease;
}

.ui__thread-highlight:hover {
    cursor: pointer;
    box-shadow: 3px 3px 0px #00000031;
    border: 2px solid #276bb5;
}

.ui__thread-highlight:hover::after {
    opacity: 1;
}

.ui__thread-highlight--selected {
    border: 2px solid #276bb5;
    box-shadow: 1px 1px 3px #276bb5;
}

.ui__thread-highlight--selected.ui__thread-highlight::after {
    opacity: 0.75;
}

#highlight-red {
    background-color: #ff0000;
}
#highlight-green {
    background-color: #00ff00;
}
#highlight-blue {
    background-color: #0000ff;
}
#highlight-cyan {
    background-color: #00ffff;
}
#highlight-magenta {
    background-color: #ff00ff;
}
#highlight-yellow {
    background-color: #ffff00;
}

.ui__threads-scale {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    position: relative;
}

.ui__threads-scale--input {
    width: 90%;
    height: 50px;
    display: grid;
    grid-template-columns: 50px auto 50px;
    grid-template-rows: auto;
    justify-items: center;
    align-items: center;
    flex-grow: 2;
    position: relative;
}

.ui__threads-scale--small, .ui__threads-scale--large {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.thread-scale-bubble {
    position: absolute;
    top: -5px;
    width: 45px;
    height: 45px;
    font-size: 24px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 3px 3px 0px #00000015, -1px -1px 0px #00000015;
    color: #276bb5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thread-scale-bubble span {
    width: 10px;
    height: 10px;
    background-color: #ff0000
}

.ui__thread-controls {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    border-top: 2px solid #a5a5a5;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    font-size: 12px;
    text-align: center;
    /* background-color: #276bb580; */
    color: #fff;
}

.ui__thread-control {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #a5a5a5af;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.ui__thread-control:hover {
    cursor: pointer;
    background-color: #276bb5;
    box-shadoW: 3px 3px 5px #00000031;
}

.ui__threads-list {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    height: 100%;
    width: 100%;
    margin-top: 3px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    flex-wrap: nowrap;
    overflow: scroll;
    box-shadow: inset -3px -3px 0px #00000015, inset 3px 3px 0px #00000015;
}

.ui__threads-list .ui__thread:first-child {
    margin-top: 20px;
}

.ui__thread {
    width: 90%;
    margin: 5px 0;
    min-height: 60px;
    display: flex;
    /* display: grid;
    grid-template-columns: 60px auto auto;
    grid-template-rows: 60px; */
    flex-direction: row;
    box-shadow: 0px 0px 0px #00000015;
    border: 1px solid #00000015;
    border-radius: 5px;
    background-color: #ffffff;
    color: #aaaaaa;
    position: relative;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, color 0.3s ease;
}

.ui__thread:hover {
    cursor: pointer;
    color: #276bb5;
    box-shadow: 2px 2px 6px #276bb5;
}

.ui__thread--highlight {
    color: #fff;
}

.ui__thread--active {
    color: #276bb5;
    border: 2px solid #00000031;
    box-shadow: 3px 3px 0px #00000015;
}

.ui__thread:hover.ui__thread--highlight, .ui__thread--active.ui__thread--highlight {
    color: #fff;
}


.ui__thread__sample {
    width: 40px;
    height: 40px;
    margin: 10px;
    border-radius: 5px;
    justify-self: center;
    align-self: center;
    box-shadow: 3px 3px 6px #00000031;
}

.ui__thread__color {
    grid-column: 2 / 3;
    flex-grow: 2;
    margin-left: 15px;
    height: 60px;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    justify-items: start;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui__thread__color h1, .ui__thread__stitch h1 {
    margin: 0 0 0 10px;
    padding: 0 10px 0 0;
    grid-row: 1 / 2;
    font-size: 20px;
    font-weight: 200;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
    align-self: end;
}

.ui__thread__color p, .ui__thread__stitch p {
    margin: 0 0 0 10px;
    grid-row: 2 / 3;
    font-size: 12px;
    font-weight: 200;
    align-self: start;
}

.ui__thread__stitch p {
    margin: 0;
}

.ui__thread__stitch {
    grid-column: 3 / 4;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    justify-items: center;
    align-items: center;
    text-align: center;
}

.ui__thread__activate {
    width: 16px;
    height: 16px;
    margin: 5px 10px;
    border: 3px solid #bbbbbb;
    background-color: #fff;
    align-self: center;
    border-radius: 50%;
    position: relative;
}

.ui__thread__activate::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    /* background-color: #276bb5; */
    background: radial-gradient(circle at 30% 30%, #92c6ff, #276bb5);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ui__thread__activate--active.ui__thread__activate::after {
    opacity: 1;
}

.ui__thread__activate:hover::after {
    opacity: 1;
}

.ui__pattern {
    width: 100%;
    height: 100%;
    /* background-color: #fff; */
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: end;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* .ui__pattern-hoverzone {
    position: absolute;
    z-index: 10;
    display: flex;
}

.ui__pattern-hoverzone--vertical {
    top: 50%;
    right: 0;
    width: 100px;
    height: 600px;
    transform: translateY(-50%);
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}
.ui__pattern-hoverzone--horizontal {
    left: 50%;
    bottom: 0;
    width: 600px;
    height: 100px;
    transform: translateX(-50%);
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
} */

.ui__pattern-panel--vertical, .ui__pattern-panel--horizontal {
    position: absolute;
    display: flex;
    z-index: 10;
}

.ui__pattern-panel--vertical {
    right: -90px;
    width: 100px;
    height: 600px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transition: right 0.5s ease;
}
.ui__pattern-panel--horizontal {
    bottom: -90px;
    width: 600px;
    height: 100px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: bottom 0.5s ease;
}

.ui__pattern-control__vertical-hover-tooltip {
    position: absolute;
    top: 50%;
    left: -50px;
    width: 50px;
    height: 100px;
    margin-right: 10px;
    transform: translate(0,-50%)
}
.ui__pattern-control__horizontal-hover-tooltip {
    position: absolute;
    left: 50%;
    top: -50px;
    width: 100px;
    height: 50px;
    margin-bottom: 10px;
    transform: translate(-50%);
}

.ui__pattern-control__vertical-hover-tooltip, .ui__pattern-control__horizontal-hover-tooltip {
    background-color: #d0cfcf;
    border-radius: 5px;
    box-shadow: 3px 3px 0px #00000015;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.1s ease, box-shadow 0.1s ease, transform 0.3s ease;
}

/* .ui__pattern-hoverzone--vertical:hover .ui__pattern-control__vertical-hover-tooltip,
.ui__pattern-hoverzone--horizontal:hover .ui__pattern-control__horizontal-hover-tooltip {
    background-color: #aaaaaa;
    box-shadow: 3px 3px 0px #00000031;
} */

.ui__pattern-control__vertical-hover-tooltip svg,
.ui__pattern-control__horizontal-hover-tooltip svg {
    transition: transform 0.3s ease;
}

.ui__pattern-panel--vertical:hover, .ui__pattern-control__vertical-hover-tooltip:hover {
    right: 0px;
}
.ui__pattern-panel--horizontal:hover, .ui__pattern-control__horizontal-hover-tooltip:hover {
    bottom: 0px;
}

.ui__pattern-control__vertical-hover-tooltip:hover svg, .ui__pattern-panel--vertical:hover svg {
    transform: scaleX(-1);
}

.ui__pattern-control__horizontal-hover-tooltip:hover svg, .ui__pattern-panel--horizontal:hover svg {
    transform: scaleY(-1);
}

.ui__pattern-control--vertical,
.ui__pattern-control--horizontal {
    position: relative;
    display: grid;
    justify-items: center;
    align-items: center;
}

.ui__pattern-control--vertical {
    width: 80px;
    height: 480px;
    margin-right: 10px;
    grid-template-columns: 1fr;
    grid-template-rows: 60px 90px 60px 30px 30px 60px 90px 60px;
}
.ui__pattern-control--horizontal {
    width: 480px;
    height: 80px;
    margin-bottom: 10px;
    grid-template-columns: 60px 90px 60px 30px 30px 60px 90px 60px;
    grid-template-rows: 1fr;
}

#vertical-control-start {
    grid-row: 1 / 2;
    height: 50px;
    background-color: #132c47ee;
}
#vertical-control-up-3 {
    grid-row: 2 / 3;
    height: 80px;
    background-color: #18406aee;
}
#vertical-control-up-2 {
    grid-row: 3 / 4;
    height: 50px;
    background-color: #205996ee;
}
#vertical-control-up-1 {
    grid-row: 4 / 5;
    height: 20px;
    background-color: #276cb5ee;
}
#vertical-control-down-1 {
    grid-row: 5 / 6;
    height: 20px;
    background-color: #276cb5ee;
}
#vertical-control-down-2 {
    grid-row: 6 / 7;
    height: 50px;
    background-color: #205996ee;
}
#vertical-control-down-3 {
    grid-row: 7 / 8;
    height: 80px;
    background-color: #18406aee;
}
#vertical-control-end {
    grid-row: 8 / 9;
    height: 50px;
    background-color: #132c47ee;
}

#horizontal-control-start {
    grid-column: 1 / 2;
    width: 50px;
    background-color: #132c47ee;
}
#horizontal-control-up-3 {
    grid-column: 2 / 3;
    width: 80px;
    background-color: #18406aee;
}
#horizontal-control-up-2 {
    grid-column: 3 / 4;
    width: 50px;
    background-color: #205996ee;
}
#horizontal-control-up-1 {
    grid-column: 4 / 5;
    width: 20px;
    background-color: #276cb5ee;
}
#horizontal-control-down-1 {
    grid-column: 5 / 6;
    width: 20px;
    background-color: #276cb5ee;
}
#horizontal-control-down-2 {
    grid-column: 6 / 7;
    width: 50px;
    background-color: #205996ee;
}
#horizontal-control-down-3 {
    grid-column: 7 / 8;
    width: 80px;
    background-color: #18406aee;
}
#horizontal-control-end {
    grid-column: 8 / 9;
    width: 50px;
    background-color: #132c47ee;
}

.ui__pattern-control--vertical .ui__pattern-control--button,
.ui__pattern-control--horizontal .ui__pattern-control--button {
    border-radius: 5px;
    background-color: #d0cfcf;
    box-shadow: 3px 3px 0px #00000015;
    cursor: pointer;
    transition: background-color 0.1s ease, box-shadow 0.1s ease;
}

/* .ui__pattern-control--vertical .ui__pattern-control--button,
.ui__pattern-control--horizontal .ui__pattern-control--button {
    pointer-events: auto;
} */

.ui__pattern-control--vertical .ui__pattern-control--button {
    width: 60px;
}

.ui__pattern-control--horizontal .ui__pattern-control--button {
    height: 60px;
}


.ui__pattern-control--button:hover {
    background-color: #276bb5;
    box-shadow: 3px 3px 0px #0000004f;
    border: 3px solid #007bff93;
}

.ui__pattern-canvas {
    /* background-color: #fff; */
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    /* background-color: green; */
    border: 5px solid #00000031;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ui__pixel:hover {
    cursor: pointer;
    fill: #276cb5;
}

/****************************************************/
/* Upload                                           */
/****************************************************/

.upload {
    margin-top: 25vh;
    height: 50vh;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto;
}

.upload__preview {
    margin: 20px;
    width: 35vw;
    max-width: 35vw;
    max-height: 50vh;
    grid-column: 1 / 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload__preview img {
    width: 50%;
    height: auto;
}

.upload__form {
    margin: 20px;
    width: 45vw;
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

.upload__disclaimer {
    background-color: #ffff724a;
}

.upload__error {
    background-color: #ff00004a;
}

.upload__disclaimer, .upload__error {
    margin: 5px 5px 10px 5px;
    padding: 5px;
    font-size: 12px;
    border-radius: 3px;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
}

.upload__disclaimer span, .upload__error span  {
    text-align: center;
    width: 24px;
    height: 24px;
    font-size: 16px;
}

.upload__disclaimer i, .upload__error i {
    margin-left: 5px;
}

.upload__instructions {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    background-color: #276cb53d;
    border-radius: 3px;
    box-shadow: inset -3px 0 5px #00000031, inset 3px 0px 5px #00000031;
    justify-content: center;
    align-items: center;
    color: #1c548f;
}

.upload__instructions h2 {
    font-size: 18px;
    font-weight: 100;
}

.upload__instructions span {
    font-size: 12px;
    font-weight: 100;
    margin: 10px;
}

.upload__instructions input {
    margin: 10px;
}

.upload__submit {
    margin: 10px;
    font-size: 18px;
}

/****************************************************/
/* Purchase                                         */
/****************************************************/

.purchase {
    margin-top: 25vh;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    /* justify-self: center; */
    align-items: flex-start;
}

.purchase__subheader {
    font-weight: 100;
}

/****************************************************/
/* Purchase Success                                 */
/****************************************************/

.purchase-success, .purchase-cancel {
    margin-top: 25vh;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.purchase-success h1 {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    width: 50%;
}
    
.purchase-success h1 span {
    font-size: 72px;
    margin-right: 36px;
}

.purchase-success h3, .purchase-success h5, .purchase-cancel h3, .purchase-cancel h5 {
    font-weight: 100;
}