    /*
    Theme Name: StringArt
    Theme URI:
    Author: Enjeer / NAI - Utouk
    Author URI:
    Description: 
                1.1   - init
    Version: 1.1
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: custom, theme, WordPress
    */

:root{
    --main-body:   #E9D7F6;
    --secondary:   #000000;
    --accent:      #821CBE;
    --form-shadow: #C0AFCE;
}

@font-face {
  font-family: 'CandaraBold';
  src: url('./ofont.ru_Candara.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
}


html, body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--secondary);
    gap: 0;
}


nav{
    height: 12svh;
    margin: 0;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background-color: var(--main-body);
    
    font-family: CandaraBold !important;
}

main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--main-body);
}

form{
    box-shadow: inset 2px 2px 18px 2px var(--form-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step{
    display: none;
}

.step.active{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.step span{
    font-size: xx-large;
    font-weight: 800;
}

.step #div1{
    aspect-ratio: 1/1;
    background-color: #000000;
}

.otp-container{
    display: flex;
    justify-content: center;
    z-index: 0;
}

.otp-input{
    border: none;
    text-transform: uppercase; /* Display uppercase letters automatically */
    text-align: center;
    font-size: large;
    font-weight: 800;
    caret-color: transparent;
}

.otp-input:hover{
    outline: solid 4px var(--form-shadow);
}

.otp-input:focus{
    outline: solid 4px var(--accent);
}

form button{
    background-color: var(--secondary);
    color: white;
    border: 0;
    font-size: larger;
    font-weight: 700;
    transition: 0.08s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

form button:hover{
    transform: translateY(0px);
    background-color: var(--accent);
}

.image-selector {
    aspect-ratio: 1/1;
    border: 2px dashed var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    color: var(--accent);
    cursor: pointer;
    position: relative;
}

.step section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

#step-2 .image-generation-right{
    display: none;
}

.image-selector input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.image-preview {
    aspect-ratio: 1/1;
    display: none;
    overflow: hidden;
    background-color: var(--secondary);
    border-radius: 100%;
    justify-content: center;
    align-items: center;
    scale: 1.1;
}

#previewCanvas{
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    filter: grayscale();
}

.change-image-label {
    color: var(--accent);
    text-decoration: none;
    background-image: url('http://pts-string.art/wp-content/uploads/2025/01/edit-image.svg');
    background-position: center;
    background-repeat: none;
    background-size: contain;
    aspect-ratio: 1/1;
    cursor: pointer;
    font-size: medium;
    color: white;
    align-self: flex-start;
    /* margin-bottom: 10px; */
}

.change-image-label:hover {
    text-decoration: none;
}

dotlottie-player{
    height: 70px;
    aspect-ratio: 1/1;
    mix-blend-mode: exclusion;
    margin: 0;
    /* display: none; */
}

input[type="range"]{
    background: transparent;
    display: flex;
    align-items: center;
}

                        /***** Track Styles *****/
/***** Chrome, Safari, Opera, and Edge Chromium *****/
input[type="range"]::-webkit-slider-runnable-track {
    background-color: white;
    border: none;
  }
  
  /******** Firefox ********/
  input[type="range"]::-moz-range-track {
    background-color: var(--main-body);
    border: none;
  }

  /***** Thumb Styles *****/
/***** Chrome, Safari, Opera, and Edge Chromium *****/
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    background-color: var(--accent);
    color: var(--accent);
 }
 .hidden{
    display: none !important;
 }
 .hidden *{
    display: none !important;
 }


 #choose span{
    text-align: center;
    font-weight: 500;
 }
 
 .results-container{
    justify-content: space-evenly;
 }

 .results-container .result{
    aspect-ratio: 1/1;
    background-color: white;
    outline-offset:-1px;
    border: none;
    padding: 0;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease-out;
 }
 .results-container .result:hover{
    outline: solid 4px var(--form-shadow);
 }
 .selected{
    outline: solid 4px var(--accent) !important;
 }

.bottom-button{
    background-color: var(--secondary);
    color: white;
    border: 0;
    font-weight: 700;
    transition: 0.08s ease-in-out;
}
.bottom-button:hover{
    background-color: var(--accent);
}

footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    color: white;
    background-color: var(--secondary);
}


@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

.otp-field {
    transition: border-color 0.3s ease;
}

.shake {
    animation: shake 0.5s ease-out;
}

/* Optional: apply the red border only when the shake animation is active */
.otp-field.shake {
    border: solid 1px red;
}