@font-face {
    font-family: 'Minya';
    src: url('/fonts/Minya.otf');
}

@font-face {
    font-family: 'ScopeOne';
    src: url(/fonts/ScopeOne-Regular.ttf);
}

::selection{
    background: var(--extra);
    color: var(--bg);
}

body {
    font-family: 'ScopeOne', monospace;
    color: var(--txt);
}

.tooltip {
    position: fixed;
    background: var(--bg);
    color: var(--txt);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--extra);
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(-5px);
}

.tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

a:active {
    font-style: italic;
}

ul{
    list-style: none;
}

li::before{
    content: "❥ ";
    color: var(--extra);
}

div{
    scrollbar-width: thin;
    scrollbar-color: var(--extra) var(--txt);

}


/*botones a scripts*/

#theme-btn{
    position: fixed;
    top: 0;
    left: 0;
    background: var(--extra);
    padding: 0.5em;
    border-radius: 0.5em;
    margin: 0.5em;
}

#theme-btn img{
    width: 2em;
}

/*index*/

#index, #comms, #reqs, #about{
    width: 99vw;
    height: 99vh;
    display: flex;
    align-items: center;
    justify-content: center;
}


#index main{
    background: var(--bg);
    width: 45em;
    border: 1pt solid var(--txt);
}

#index nav{
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1pt solid var(--txt);
}

.links{
    text-align: center;
    width: 8em;
    position: relative;
}

.links:hover{
    cursor: pointer;

}

.links-cont{
    display: none;
    flex-direction: column;
    position: absolute;
    background: var(--opacity);
    padding: 1em;
    z-index: 5;
    width: 8em;
    transform: translateY(-1em);
    border-radius: 0em 0em 1em 1em;
}

.links:hover .links-cont{
    display: flex;
}

#index section{
    display: grid;
    padding: 1em;
    gap: 1em;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr auto;
    align-items: center;
}

#index section>div{
    padding: 1em;
}

#index #maskee-gen{
    width: 100%;
    grid-area: 1 / 2 / 2 / 3;
}

#index .intro{
    grid-area:  1 / 1 / 2 / 2;
    text-align: center;
}

#rss{
    text-align: center;
    grid-area: 2 / 1 / 3 / 3;
    overflow: scroll;
    max-height: 200px;
    border-radius: 0em 0em 10em 10em;
}

.rss-item{
    border-top: 1pt dashed var(--extra);
}

.rss-item p{
    font-family: 'Minya';
}

/*form*/

form{
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em;
    margin: 1em;
    background: var(--bg);
    accent-color: var(--extra);
    border-radius: 1em;
}

input, select, textarea{
    padding: 0.5em;
    border: 1pt solid var(--txt);
    background: var(--opacity);
    color: var(--txt);
    border-radius: 0.5em 1em;
    font-family: 'Minya';
    accent-color: var(--extra);
}

input:focus, select:focus, textarea:focus{
    outline: none;
    border: 1pt solid var(--extra);
}

form button, 
.picasso button, 
#reqs nav button, 
#toggle-currency, 
.abt-links button{
    padding: 0.5em;
    border: 1pt solid var(--txt);
    border-radius: 1em 0.5em;
    background: var(--gradient);
    color: var(--txt);
    font-family: 'ScopeOne';
    font-weight: bold;
}

form button:hover,
.picasso button:hover, 
#reqs nav button:hover, 
#toggle-currency:hover, 
.abt-links button:hover{
    border: 1pt solid var(--extra);
    color: var(--extra);
    cursor: pointer;
}

form button:nth-child(odd), 
.picasso button:nth-child(odd), 
#reqs nav button:nth-child(odd){
    border-radius: 0.5em 1em;
}

textarea{
    resize: vertical;
    max-height: 20em;
}

.check{
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 0.5em;
}

/*comms*/
#comms main{
    height: 99vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#comms nav{
    display: flex;
    flex-direction: row;
    padding: 1em;
}

#comms nav {
    background: var(--opacity);
    backdrop-filter: blur(5px);
    border-radius: 2em;
}

#comms nav button,
#qna header button{
    padding: 0.5em 1em;
    margin: 0.5em;
    background: var(--bg);
    color: var(--txt);
    border: 1pt solid var(--txt);
    border-radius: 1em;
    font-family: 'Minya';
    font-size: 1.75em;
}

#comms nav button:hover, 
#qna header button:hover{
    background: var(--extra);
    cursor: pointer;
}

#comms section{
    width: 85em;
    height: 45em;
    overflow: auto;
    background: var(--bg);
    border: 1pt solid var(--txt);
    border-radius: 1em;
    padding: 1em;
}

.tos{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    align-items: center;
    justify-content: center;
}

.imgs-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-items: center;
    gap: 5pt;
    border-radius: 1pt 15pt
}

.img-container {
    position: relative;

    img {
        filter: grayscale();
        height: 10em;
        width: 10em;
        object-fit: cover;
        object-position: top;
        border-radius: 1pt 25pt
    }

    &::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        border-radius: 1pt 25pt;
        background: var(--extra);
        opacity: 0.3;
        pointer-events: none
    }
}

.example{
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-items: center;
}

#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--opacity);
    backdrop-filter: blur(5px)
}

#lightbox-image{
    margin: auto;
    display: block;
    max-height: 90vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

#close {
    top: 15pt;
    right: 35pt;
}

#prev, #next {
    top: 50%;
    width: auto;
    padding: 16pt;
}

#next {
    right: 0
}

#lightbox button{
    background: var(--opacity);
    border: none;
    color: var(--txt);
    border-radius: 25em;
    cursor: pointer;
    font-weight: bolder;
    text-decoration: none;
    position: absolute;
}

#lightbox button:hover{
    color: var(--extra);
}

/*reqs*/

#reqs nav{
    display: flex;
    gap: 1em;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    margin: 1em;
    background: var(--opacity);
    backdrop-filter: blur(5px);
    border-radius: 2em;
}

#picasso,
#info,
#req{
    width: min(50em, 100%);
    height: min(45em, 100%);
    overflow-y: scroll;
}

.picasso{
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: row;
    height: 100%;
    min-height: 0;
    background: var(--bg);
    border: 1pt solid var(--txt);
    border-radius: 1em;
    padding: 1em;
}

.picasso div{
    height: 100%;
}

.picasso #tool{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding: 1em;
    flex: 0 0 auto;
}

.canvas-cont {
    padding: 1em;
    width: 100%;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
    border-radius: 1em;
    align-items: stretch;
    justify-content: stretch;
}

#canvas{
    background: white;
    border-radius: 1em;
    width: 100%;
    height: 100%;
    display: block;
}

#tool input[type='range']{
    width: 100%;
}

#tool input[type='color']{
    height: 2em;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
}

.info{
    height: 80%;
    overflow-y: auto;
    text-align: center;
    background: var(--bg);
    border: 1pt solid var(--txt);
    border-radius: 1em;
    padding: 1em;
}

.req{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 90%;
    background: var(--bg);
    border: 1pt solid var(--txt);
    border-radius: 1em;
    padding: 2em;
}

.req form{
    height: max-content;
    border: none;
}

/*warning*/

#warning-overlay{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--opacity);
    z-index: 9999;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#warning-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding: 2em;
    width: 25%;
    background: var(--bg);
    border: 1pt solid var(--txt);
    border-radius: 1em;
}

/*qna*/

#qna .cont{
    width: 99vw;
    height: 99vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


#qna section{
    width: 85em;
    height: max-content;
    max-height: calc(50vh - 1em);
    background: var(--gradient);
    border-radius: 1em;
    padding: 1em;

}

.questions-list{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: max-content;
    overflow: scroll;
    gap: 1em;
}

.qna-item{
    border: 1pt solid var(--extra);
    border-radius: 1em;
    padding: 1em;
    margin: 1em 0;
    max-width: 15em;
    width: max-content;
    max-height: 15em;
    width: max-content;
    overflow-y: auto;
    font-size: 1.25em;
}

.qna-item .qna-question{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    font-family: 'Minya';
}

.question-meta{
    display: flex;
    justify-content: space-around;
    width: 100%;
    font-size: 0.75em;
}

.qna-form{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: max-content;
    gap: 1em;
    text-align: center;
}

.qna-answer{
    margin-top: 1em;
    text-align: center;
}

.toolbar, #qna header{
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.toolbar button{
    font-variant: small-caps;
    border-radius: 0.5em;
    padding: 0.5em 1em;
    border: 1pt solid var(--extra);
    background: var(--bg);
    color: var(--txt);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toolbar button:hover{
    background: var(--extra);
    color: var(--bg);
}

.toolbar button:active{
    transform: scale(0.95);
}

#qna form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: max-content;
    gap: 1em;
}

#editor{
    width: 25em;
    max-width: 100%;
    border: 1pt solid var(--extra);
    padding: 1em;
    border-radius: 0 0 1em 1em;
    border-top: none;
    background: var(--bg);
    color: var(--txt);
    text-align: left;
    min-height: 4em;
    height: auto;
    overflow-y: auto;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#editor:focus{
    outline: none;
    border-color: var(--txt);
}

#editor::placeholder{
    color: var(--txt);
    opacity: 0.6;
}

.toolbar{
    background: var(--bg);
    border: 1pt solid var(--extra);
    border-radius: 1em 1em 0 0;
    padding: 0.5em;
    width: 25em;
    max-width: 100%;
    box-sizing: border-box;
}

.is_anon{
    margin: 1em 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

#identity{
    margin: 1em 0;
    display: none;
}

#identity label{
    margin-right: 0.5em;
}

#identity input[type="text"]{
    padding: 0.5em;
    border: 1pt solid var(--extra);
    border-radius: 0.5em;
    background: var(--bg);
    color: var(--txt);
}

/*About*/

.abt-txt,
.abt-links,
.abt-likes,
.abt-synpaths,
.abt-nav {
    background: var(--bg);
    border: 1pt solid var(--txt);
    margin: 5pt;
}

#abt-main {
    display: grid;
    align-items: center;
    justify-items: center;
    margin: 5em;
    width: 75em;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    height: 50em;
}

.abt-txt,
.abt-likes,
.abt-synpaths {
    height: 16em;
    overflow: scroll;
    margin: 1em 0em
}

.abt-txt .voltz-gen{
    height: 15em;
    float: inline-end;
    shape-outside: url(/img/god\ lorde.gif);

}

.abt-context {
    grid-column: 2 / span 3;
    text-align: center
}

.abt-likes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    padding: 0pt 15pt;
    gap: 5pt
}

.abt-links {
    grid-column: 1;
    height: min-content;
    text-align: center
}

.link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    padding: 5pt 10pt;
    text-align: left
}

.link a {
    width: 100%
}

.link img {
    width: 1.25em
}

.main-title {
    font-size: 2.5em;
    position: absolute;
    top: 1em;
    z-index: 25
}

.main-title, .title {
    font-family: 'ScopeOne';
    text-shadow: var(--outline1)
}

.abt-marquee {
    max-width: 55em;
    overflow: hidden
}

.marquee-down{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    white-space: nowrap;
    animation: infinite marquee-left 20s linear;
}

@keyframes marquee-left {
    from {
        transform: translateX(0%)
    }

    to {
        transform: translateX(-50%)
    }
}

.synpaths {
    display: flex;
    justify-content: space-around
}

.synpaths img {
    height: 3em
}

.abt-nav {
    grid-column: 1/5;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around
}

.abt-nav a,
.abt-nav button {
    border: none;
    background: none;
    font-family: 'ScopeOne';
    font-size: 1em;
    color: var(--txt)
}

.abt-nav a:hover,
.abt-nav button:hover {
    text-shadow: var(--outline1)
}

/*responsividad*/

@media screen and (max-width: 1080px){
     #qna section{
        width: 95vw;
        height: calc(100vh - 8em);
        margin: 0;
    }
}


@media screen and (max-width: 800px){
    /*req*/
    #picasso,
    #info,
    #req {
        width: 100vw;
        height: 100vh;
    }

    #reqs {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    #reqs nav {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        padding: 1em;
        margin: 0;
    }

    .picasso {
        flex-direction: column;
        height: 100%;
    }

    .picasso #tool {
        width: 100%;
        height: min-content;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .canvas-cont {
        width: 100%;
        height: calc(100% - 6em);
        min-height: 240px;
    }

    #canvas {
        width: 100%;
        height: 100%;
    }

    /*comms*/
    #comms main{
        padding: 0.5em;
        height: 100vh;
    }

    #comms nav{
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0.5em;
        margin: 0.5em;
        width: calc(100% - 1em);
    }

    #comms nav button{
        font-size: 1.2em;
        padding: 0.8em;
        margin: 0.2em;
    }

    #comms section{
        width: 95%;
        height: calc(100vh - 10em);
        margin: 0;
        padding: 0.5em;
    }

    .tos{
        display: grid;
        grid-template-columns: 1fr;
        overflow: auto;
        gap: 0.5em;
    }

    .tos div{
        padding: 1em;
    }

    .imgs-container {
        flex-direction: column;
        gap: 0.5em;
    }

    .img-container img {
        height: 8em;
        width: 8em;
    }

    /*qna responsive*/
   

    #qna header{
        flex-wrap: wrap;
        gap: 0.5em;
    }

    #qna header button{
        font-size: 0.9em;
        padding: 0.5em;
    }
    
    #qna section{
        overflow: auto;
    }

    .questions-list{
        flex-direction: column;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    #editor{
        width: 90%;
        max-width: none;
    }

    .toolbar{
        flex-wrap: wrap;
        gap: 0.5em;
        width: 90%;
    }

    .is_anon{
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }

    #identity{
        width: 100%;
    }

    #identity input[type="text"]{
        width: 90%;
        max-width: none;
    }

    #abt-main {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1em;
        box-sizing: border-box
    }

    .abt-context {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0
    }

    .abt-txt,
    .abt-likes,
    .abt-synpaths {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 1em 0;
        padding: 0 0.5em
    }

    .abt-txt p {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto
    }

    .voltz-gen {
        float: none;
        max-width: 100%;
        height: auto;
        margin: 0.5em 0
    }

    .abt-likes {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr
    }

    .abt-likes > div {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1em
    }

    .abt-marquee {
        max-width: 100%;
        overflow: hidden
    }

    .synpaths {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5em
    }

    .synpaths img {
        max-width: 3em;
        height: auto
    }

}