@font-face {
    font-family: 'Maxville';
    src: url('fonts/SMMaxeville-Regular.woff2') format('woff2'),
        url('fonts/SMMaxeville-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Maxville-Tekst';
    src:
        url('fonts/Maxeville\ Tekst.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ModusA';
    src:
        url('fonts/TBDBRICK-A.woff2') format('woff2'),
        url('fonts/TBDBRICK-A.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ModusB';
    src:
        url('fonts/TBDBRICK-B.woff2') format('woff2'),
        url('fonts/TBDBRICK-B.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ModusC';
    src:
        url('fonts/TBDBRICK-C.woff2') format('woff2'),
        url('fonts/TBDBRICK-C.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'ModusD';
    src:
        url('fonts/TBDBRICK-D.woff2') format('woff2'),
        url('fonts/TBDBRICK-D.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'ModusE';
    src:
        url('fonts/TBDBRICK-E.woff2') format('woff2'),
        url('fonts/TBDBRICK-E.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'ModusF';
    src:
        url('fonts/TBDBRICK-F.woff2') format('woff2'),
        url('fonts/TBDBRICK-F.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-size: 16px;
    text-rendering: geometricPrecision;
}

body {
    font-size: clamp(1.2rem, 1.6vw, 3rem);
    background: var(--branco);
    width: 100vw;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



:root {
    /* CORES */
    --red: #FF665E;
    --branco: #ffffff;
    --cinza: #ADADAD;
    --black: #000000;
    /* SIZE */
    --font-size-14: 14px;
    --p1: 32px;
    --p2: 20px;
    --main-font: Maxville-Tekst;
}

.text {
    font-family: Maxville-Tekst;
    color: var(--black);
    padding: 0;
    margin: 0;


}

.first {
    width: 40vw;
}

.play {
    max-width: 40vw;
}

.title {
    margin-bottom: 20px;
    letter-spacing: 1px;
}



header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 50px;
    padding-right: 50px;
    height: clamp(5rem, 10vh, 7rem);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;

}

#svg {
    height: clamp(1.2rem, 1.6vw, 3rem);
    width: auto;
}

header::before {
    content: '';
    position: absolute;
    display: inline-block;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    bottom: 50px;
    box-shadow: 0 0 30px 40px rgb(255, 255, 255);
    /* Adjust shadow as needed */
    z-index: -1;
}



.container-play {
    display: flex;

    justify-content: flex-end;
}



#arc1 {
    width: 4.5vh;
    height: 4.5vh;
    border-top-left-radius: 100%;

}

#arc2 {
    width: 4.5vh;
    height: 4.5vh;
    border-top-right-radius: 100%;
    margin-top: 0.5vh;
}

#arc3 {
    width: 4.5vh;
    height: 4.5vh;
    border-bottom-right-radius: 100%;
    margin-top: 0.5vh;
}

#arc4 {
    width: 4.5vh;
    height: 4.5vh;
    border-bottom-left-radius: 100%;
    margin-top: 0.5vh;
}

#rectg {
    width: 4.5vh;
    height: 4.5vh;
}

#circ {
    width: 4.5vh;
    height: 4.5vh;
    border-radius: 100%;
}

#s-rect-h {
    width: 19.6vh;
    height: 4.5vh;

}

#s-rect-v {
    height: 19.6vh;
    width: 4.5vh;
    margin-top: 0.5vh;
}

#b-rect-v {
    height: 39.7vh;
    width: 4.5vh;
}

#b-rect-h {
    width: 39.7vh;
    height: 4.5vh;
    margin-top: 0.5vh;
}

#container-shapes {
    margin: 0 20px 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    font-family: var(--main-font);

}

.shape-container {
    display: flex;
    align-items: flex-end;
    justify-content: end;
    margin-top: 0.5vh;
}

#options {
    display: flex;
    gap: 0.5vh;

}

#options p {
    color: var(--cinza);
    font-size:  clamp(0.4rem, 0.75rem, 1.5rem);;
    padding: 0 10 0 10;   
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--cinza);
    margin: 0;
}

#options p:hover {
    color: var(--red);
    border: 1px solid var(--red);
}

#delet:hover {
    color: var(--red);
    border: 1px solid var(--red);
    background-color: var(--branco);
}

#delet.selected {
    color: var(--red);
    border: 1px solid var(--red);
    background-color: var(--branco);

}


.g {
    height: calc(4.5vh - 1px);
    padding: 0;
    margin: 0;

}

.h {
    flex-direction: column;
    color: var(--cinza);
}

.shape {
    background-color: var(--cinza);
    margin-left: 0.5vh;
}

.shape:hover {
    background-color: var(--red);
    cursor: pointer;

}

.selected {
    background-color: #FF665E;
}

.container-editable-text {

    margin: 20px 0px 20px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#editableText {
    backface-visibility: hidden;
    align-items: center;
    text-align: center;
    font-size: clamp(10rem, 22vw, 50rem);
    width: 100%;
    word-wrap: break-word;
    line-height: 1;

}

#editableText:focus {
    border: none;
    /* Ensure no outline when focused */
    outline: none;

}



img {
    user-select: none;
}

section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;

}



.text-paragraph {
    flex: 1;



}



.btn {
    font-family: var(--main-font);
    font-size: clamp(0.9rem, 1.2vw, 2rem);
    color: var(--black);
    text-decoration: none;
    background-color: var(--branco);
    padding: 8 20 8 20;
    border-radius: 50px;
    border: 1px var(--black) solid;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn.A:hover {
    color: var(--black);
    background-color: #00A95C;
}

.btn.active.A {
    color: var(--black);
    background-color: #00A95C;

}

.btn.B:hover {
    color: var(--black);
    background-color: var(--cinza);
}

.btn.active.B {
    color: var(--black);
    background-color: var(--cinza);
}

.btn.C:hover {
    color: var(--black);
    background-color: var(--red);
}

.btn.active.C {
    color: var(--black);
    background-color: var(--red);
}

.btn.D:hover {
    color: var(--black);
    background-color: #0078BF;
}

.btn.active.D {
    color: var(--black);
    background-color: #0078BF;
}

.btn.E:hover {
    color: var(--branco);
    background-color: var(--black);
}

.btn.active.E {
    color: var(--branco);
    background-color: var(--black);
}

.btn.F:hover {
    color: var(--black);
    background-color: #745BA5;
}

.btn.active.F {
    color: var(--black);
    background-color: #745BA5;
}

.grey {
    background-color: var(--cinza);
    color: var(--branco);
    border: none;
}

.glyps {
    margin-top: 20px;
}


img {
    flex: 1;
    justify-items: end;

    height: 80vh;
}

#image {
    display: flex;
    justify-content: flex-end;
}


.displayGlyphs {
    display: grid;
    backface-visibility: hidden;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    box-sizing: border-box;
    gap: 20px;

}



.displayGlyphs p {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(8rem, 150px, 12rem);
    margin: 0;
    border: 1px var(--black) solid;
    border-radius: 20px;
    padding: 50px;
}

/* Responsive adjustments */
/* @media (max-width: 1400px) {
    .displayGlyphs > p {
        flex: 0 0 calc((100% / 8) - 15px); 
        
    }

  
}
@media (max-width: 1000px) {
    .displayGlyphs > p {
        flex: 0 0 calc((100% / 4) - 15px); 
       
    }
}


@media (max-width: 800px) {
    .displayGlyphs > p {
        flex: 0 0 calc((100% / 2) - 15px); 
       
    }
} */






.buttonContainer {

    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;



}

.font {
    width: calc(100vw - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}



#first-page {
    width: 100vw;
    height: auto;
    padding-top: 50px;

}

.container {
    display: flex;
    justify-content: space-between;
    width: calc(100vw - 100px);
    margin-left: 50px;
    margin-right: 50px;

}



#second-page {
    width: 100vw;
    height: 100vh;
    user-select: none;
}

#p5-sketch-container canvas {
    height: 80vh !important;
    width: auto !important;
    cursor: pointer;
    border: solid 0.8px var(--red);
}

#third-page {
    flex-direction: column;
    gap: 20px;
}

footer {
    display: flex;
    align-items: center;
    position: relative;
    /* Ensure relative positioning for pseudo-element */
    width: calc(100vw - 100px);
    padding: 25px 50px;
    /* Consolidate padding */
    z-index: 0;
    /* Default z-index, footer should be above its pseudo-element */
    height: 112px;
    margin-top: 50px;
    /* Ensure the footer has a stacking context */

}

footer::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 30px 40px #000;
    background-color: #000;
    /* Adjust the background color for the blur effect */
    z-index: -1;
    /* Send the pseudo-element behind the footer */
    opacity: 1;
    /* Example opacity for the blur effect */
}




.foot {
    font-size: 17px;
    color: var(--branco);
    z-index: 4;
}





.blur {
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    padding: 8px 20px 8px 20px;
    position: relative;
    display: inline-block;
    border: none;
    z-index: 4;
}

.blur::before {
    background-color: var(--cinza);
    border-radius: 200px;
    content: "";
    display: block;
    -webkit-filter: blur(5px);
    filter: blur(5px);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
    /* Adjust the z-index as needed */
    border: none;
}

.blur:hover {
    background-color: var(--branco);
    /* Change background color to white on hover */
    color: var(--cinza);
    -webkit-box-shadow: 0 0 5px 0px var(--cinza);
    box-shadow: 0 0 5px 0px var(--cinza);

}

.blur:hover::before {
    -webkit-filter: none;
    /* Remove blur effect */
    filter: none;
    /* Remove blur effect */
    background-color: var(--branco);
    /* Match background color to ensure visual continuity */
    -webkit-box-shadow: 0 0 5px 0px var(--cinza);
    box-shadow: 0 0 5px 0px var(--cinza);
}

.pink {
    display: flex;
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;

}

.pink::before {
    color: var(--branco);
    background-color: var(--red);
    border: none;

}

.pink:hover {
    background-color: var(--branco);
    /* Change background color to white on hover */
    color: var(--red);
    -webkit-box-shadow: 0 0 5px 0px var(--red);
    box-shadow: 0 0 5px 0px var(--red);

}

.pink:hover::before {
    -webkit-filter: none;
    /* Remove blur effect */
    filter: none;
    /* Remove blur effect */
    background-color: var(--branco);
    /* Match background color to ensure visual continuity */
    -webkit-box-shadow: 0 0 5px 0px var(--red);
    box-shadow: 0 0 5px 0px var(--red);
}

#buy {

    margin-top: 150px;
    margin-bottom: 100px;
}

.large {
    height: 90px;
    font-size: 40px;
    border-radius: 200px;
}



@media (max-width: 1024px) {

    header {
        padding-left: 20px;
        padding-right: 20px;
        height: 85px;
        -webkit-backface-visibility: hidden;
    }

    header::before {
        bottom: 30px;
    }

    section {
        flex-direction: column;

    }

    #first-page {
        width: calc(100vw - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }

    img {
        width: calc(100vw - 40px);
        height: auto;

        margin-bottom: 50px;
    }


    .container {
        flex-direction: column-reverse;
        width: 100%;
        margin-left: 20px;
        margin-right: 20px;
    }

    .displayGlyphs {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    }

    .displayGlyphs p {
        font-size: 85px;
        padding: 20px;

    }


    #menu {
        flex-direction: column-reverse;
    }


    .text {
        font-size: clamp(1.5rem, 1.2vw, 3rem);
        width: calc(100vw - 40px);
    }

    #editableText {
        width: calc(100vw - 40px);
        margin: 20px;
        font-size: clamp(6.5rem, 10vw, 10rem);
    }

    .buttonContainer {
        width: calc(100vw - 40px);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding-left: 20px;
        padding-right: 20px;
        justify-items: center;



    }

    .btn {
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .font {
        width: calc(100% - 40px);
    }

    #second-page {
        height: 1000vh;
        display: none;

    }


    .characters {
        width: calc(100vw - 40px);
        padding-left: 20px;
        padding-right: 20px;
    }

    #third-page {
        height: auto;
    }

    #buy {
        width: calc(100vw - 40px);
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 50px;
        margin-bottom: 50px;

    }

    .large {
        height: 90px;
        font-size: 40px;
        border-radius: 200px;
    }

    .foot {
        font-size: 16px;
    }
}