:root {
    --blue-gradient: linear-gradient(to bottom, #245edb 0%, #3f8cf3 9%, #245edb 18%, #245edb 92%, #333 100%) center/cover no-repeat;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    box-sizing: border-box;
}

body {
    background-image: url('https://s3.amazonaws.com//depot.pacdudegames.com/spacehey/bliss.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Tahoma, sans-serif;
}

header {
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    color: #FFF;
    text-shadow: 2px 2px 0 #000;
}
@media (max-width: 740px) {
    h1{
        font-size: 4vw;
    }
} 



h1 {
    border: 2px solid #1B44B8;
    border-radius: 5px 5px 0 0;
    padding: .5em;
    color: #FFF;
    text-shadow: 2px 2px 0 #000;
    background: var(--blue-gradient);
    margin-bottom: 0;
    font-family: Lobster, cursive;
}

li {
    margin: 15px 0px;
    text-align: left;
}

ul {
    padding-inline-start: 15px;
}

.window {
    width: 100%;
    height: 100%;
    background: white;
    border: 2px solid #1B44B8;
    border-radius: 15px 15px 0 0;
    box-shadow: 5px 8px 10px #0006;
}

.window-content {
    display: block;
    margin: auto;
    padding: 1em;
    font-size: 1.2em;
    font-family: "Arial";
}

.window .title-bar {
    font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
    margin: 0;
    padding: 0.5em;
    background: var(--blue-gradient);
    color: white;
    text-shadow: 1px 1px #000;
    border-radius: 10px 10px 0 0;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window .title-bar .buttons {
    display: flex;
    gap: 4px;
}



.window .title-bar .button {
    width: 14px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid #fff;
    box-shadow: inset 1px 1px #808080;
    cursor: pointer;
}

.image1 {
    background-image: url('xp1.png');
}

.image2 {
    background-image: url('xp2.png');
}

.image3 {
    background-image: url('xp3.png');
}

.square {
    width: 100%;
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.third-box {

    padding: 1rem;
}

footer {
    margin: 2rem;
    padding: 1rem;
    background: white;
    border: 2px solid #1B44B8;
    text-align: center;
    font-weight: bold;
}

a.template-link {
    color: #225dff;
    font-size: 1.4rem;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-style: italic;
    text-shadow: 2px 2px 5px #0007;
    padding-right: 1.2rem;
    white-space: nowrap;
}

a.template-link:hover {
    background: #0288d1;
    color: #fff;
}

input[type="file"] {
    white-space: nowrap;
    border: 1px solid #003c74;
    background: linear-gradient(180deg, #366EF3, #2D69F4 86%, #1A3EB4);
    border-radius: 3px;
    padding: .5em;
    margin-left: .3em;
    font-weight: normal;
    color: #FFF;

    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

input[type="color"] {
    width: 100px;
    height: 40px;
    border: none;
    cursor: pointer;
    background-color: #E7E5CF;
    border: 0;
    box-shadow: 2px 2px 0px #FFFFFF inset, -2px -2px 0px #5D5C51 inset, 5px 8px 10px #0006;
    padding: 10px;
}

button {
    font-size: 1.4rem;
    font-family: sans-serif;
    font-weight: bold;
    font-style: italic;
    text-shadow: 2px 2px 5px #0007;
    padding-right: 1.2rem;
    white-space: nowrap;
}

button:hover {
    background: #0288d1;
    color: white;
}

.stack-to-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    margin: 0 auto;
}

.square,
.third-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Desktop behavior */
@media (min-width: 900px) {
    .stack-to-side {
        flex-direction: row;
        justify-content: center;
        max-width: 1100px;
        padding: 0;
    }

    .third-box {
        width: 33%;
    }

    .square {
        width: 67%;
    }
}

.centervert {
    display: block;
    margin: auto;
}
.equal-height {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.equal-height>div {
    display: flex;
}

.equal-height .window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#previewCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* para telas maiores */
@media (min-width: 900px) {
    .canvas {
        margin-top: 30px;
        /* ajustar só no caso*/
    }
}

/* Initial state of the alert (visible) */
.alertbox {
    opacity: 1;
    transition: opacity 1s ease-out;
    /* Fade-out effect */
}

/* When the alert is hidden */
.alertbox.hidden {
    opacity: 0;
    pointer-events: none;
    /* Prevent interaction when it's hidden */
}

/* To prevent fading when the user hovers */
.alertbox:hover {
    opacity: 1 !important;
    /* Override fading on hover */
}