:root{
    --pixel-font: 'Pixelify Sans', ui-monospace, sans-serif;
    --pixel-shadow: 4px 4px 0 #000;
}


*{
    padding: 0;
    margin: 0;

}

#canvas1{
    background-color: blue;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.controls{
    top: 50px;
    position: absolute;
    z-index: 100; 
    width: 100%;
    display: flex;
    justify-items: center;
    justify-content: space-evenly;
} 
#image1{
    display: none;
}
.image-preview{
    display: flex;
    position: absolute;
    width: 50vw;
    height: 50vh;
    justify-content: center;
    align-items: center;

}
#image2{

    display: none;
    width: 300px;
    height: auto;
    position: absolute;

}

#imageInput{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--pixel-font);
    font-size: 18px;
    color: #000;
    background: #a0ffd6;              /* aquamarine-ish */
    border: 4px solid #000;
    box-shadow: var(--pixel-shadow);
    cursor: pointer;
    user-select: none;
    transition: transform 0.05s ease, box-shadow 0.05s ease;
    image-rendering: pixelated;
}

.top-bar {
    padding: 20px;
    position: absolute;
    z-index: 100;
    font-family: var(--pixel-font);
    text-decoration-line: underline;

}
.controls button{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--pixel-font);
    background-color: #a0ffd6;
    border: 4px solid black;
    box-shadow: var(--pixel-shadow);
    cursor: pointer;
    transition: transform 0.05s ease, box-shadow 0.05s ease;
    image-rendering: pixelated;
    font-size: 18px;
}

.controls button:hover{
    background-color: #c8ffe9;
}
.upload-btn:hover{
    background-color: #c8ffe9;;
}
.upload-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #000;
}
.controls button:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #000;
}

body{
    width: 100vw;
    height: 100vh;
   
}
.bottom-controls{
    position: absolute;
    height: 20vh;
    width: 100vw;
    z-index: 100;
    margin-top: 78vh;
    display: flex;
    justify-content: space-around;
    align-items: center;

}
.slider .track {
    background-color: antiquewhite;
    width: 200px;
    height: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    user-select: none;
    position: relative;
}
.slider .thumb{
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #A0FFD6;
    border: solid 3px black;
    border-radius: 15px;
    
}
.slider .thumb:hover{
    transform: scale(1.2);
}
.slider .slider-text{
    justify-self: center;
    padding: 5px;
    font-family: var(--pixel-font);
    font-size: 15px;
}
.slider .slider-min-max-value{
    display: flex;
    justify-content: space-between;
    padding: 5px;
    font-family: var(--pixel-font);
    
}