body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    overflow: auto;

    background: linear-gradient(to bottom, rgba(45, 39, 255, 1) 20%, rgba(9, 9, 121, 1) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}


main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    flex-grow: 1;
    padding-bottom: 30px;
    width: calc(100% - 300px);
}


header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px 20px 30px;
    box-sizing: border-box;
}

.logo {
    height: 120px;
    border: none;
}

.info {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: right;
}

.info p {
    margin: 5px 0;
    font-size: 18px;
}

.info .hora {
    font-size: 22px;
    font-weight: bold;
}

.inscreva {
    padding: 10px 20px;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 30px;
    transition: 0.5s;
}

.inscreva:hover {
    transform: scale(1.03);
}

.inscreva:active {
    transform: scale(0.97);
}

.imagem-container {
    display: flex;
    gap: 10px;
}


.box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: white;
    border: 2px solid white;
    border-radius: 20px;
    background: white;

}

#uploadText {
    color: #2D27FF;
    position: absolute;
    text-align: center;
    pointer-events: none;
    font-size: 22px;
    width: 100%;
    top: 45%;
    left: 17%;
    white-space: pre-line;
}

canvas {
    width: 510px;
    height: 510px;
    max-width: 510px;
    max-height: 510px;
    display: block;
    cursor: grab;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
}

.buttons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hidden {
    display: none;
}

.text-box {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.text-box textarea {
    width: 100%;
    height: 100%;
    font-size: 16px;
    padding: 0 10px;
    box-sizing: border-box;
    resize: none;
    background: transparent;
    color: white;
    border: none;

}

.lower-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.5s;
}

.lower-btn:hover {
    transform: scale(1.03);
}

.lower-btn:active {
    transform: scale(0.97);
}

.zoom-buttons {
    width: 40px;
    display: flex;
    flex-direction: column;

}

#zoomIn,
#zoomOut {
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    padding: 5px;
    margin-bottom: 10px;
    position: relative;
    border: none;
    cursor: pointer;
    display: none;
}

@media (max-width: 1024px) {
    body {
        width: 100vw;
    }

    main {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 800px) {
    .logo {
        height: auto;
        max-width: 100%;
    }

    header {
        flex-direction: column;
        gap: 10px
    }

    .imagem-container {
        max-width: 100%;
    }

    canvas {
        max-width: 100%;
        height: auto;
    }

    #uploadText {
        font-size: 16px;
    }

    .text-box textarea {
        min-height: 300px;
        max-width: 510px;
    }

    .zoom-buttons {
        width: 25px;
    }

    #zoomIn,
    #zoomOut {
        width: 25px;
        height: 25px;
        font-size: 15px;

    }
}

@media (max-width: 600px) {
    .zoom-buttons {
        display: none;
    }
}