
@layer base{

:root{
    --blue:#0B2867;
    --yellow:#F8D748;
    --lightBg:#FDFFF5;

}

    body,html{margin:0;padding:0; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; color: var(--blue);} 
    *,*::before,*::after{box-sizing:border-box; position:relative;}

img{width: 100%;}
a{all:unset}

cursor{cursor: pointer;}

button{all:unset;background-color:var(--yellow); padding: 1rem 1rem; font-weight: 700; text-align: center; border-radius: .5rem; box-sizing: border-box;}
button.disabled{background-color: rgb(205, 205, 205); color:white; pointer-events: none;}
}

@layer layout{

.page{display: grid; grid-template-columns: auto 1fr;height: 100vh;}
.tool{background-color: var(--lightBg);
padding: 2rem;
display: flex; flex-direction: column; gap: 2rem;
width: 25rem;
max-height: 100vh;
overflow-y: clip;
}
.logo{width: 3rem;}
h1,h2,p{text-align: center;}
h1{font-size: 1.5rem; font-weight: 700;}
h2{font-size: 1rem; font-weight: 500;}
.insert{background-color: var(--yellow); box-shadow: inset 10px 0  40px rgba(0, 0, 0, 0.189);}
.dropzone{padding: 1rem; padding-top: 2rem; border: dashed 2px var(--yellow); border-radius: 1rem;
display:flex;align-items:center; justify-content:center;
flex-direction: column;
}

.downLink{padding: 1rem; padding-top: 2rem; border: dashed 2px var(--yellow); border-radius: 1rem;
    display:flex;align-items:center; justify-content:center;
    flex-direction: column;
    }
    .download .icon{width: 4rem; margin: 0 auto;  z-index: 1; pointer-events: none;}


.icon.draggedover{scale:1.5}

.dropzone:after{content: ""; background-color: var(--yellow); display:flex;align-items:center; justify-content:center; position: absolute; left: 50%; bottom:0; font-size: 2rem;
padding: 1rem; border-radius: 100%; aspect-ratio: 1/1; background-image: url("img/plus.svg"); background-repeat: no-repeat; background-position: center;
transform: translate(-50%, 50%); cursor: pointer; 
}
.dropzone:hover:after{background-color: rgb(184, 184, 184); 
}
input[type=file]{width:100%;height:120%;left:0;top:0; z-index: 2; position: absolute; opacity: 0; background-color: red;}
.fileContainer{display: flex;flex-direction: column; gap:1rem; margin-top: 1rem; max-height: 50rem; overflow-y: scroll; padding: 1rem;}
.file{ display: flex; gap: .5rem; }
.file .name{white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide any overflowing content */
    text-overflow: ellipsis;
max-width: 12rem;
}

.link{margin-top: auto; margin-bottom: 5rem;}
.link button{width: 100%;}
.file .delete{margin-left: auto;}
.size{width: max-content;}
.footer{font-size: .85rem;  display: flex; justify-content: space-between; font-weight: 200;}

.icon{filter: drop-shadow(0 0 10px rgb(212, 212, 212));}


.loaderStatus{height: 2rem; border: 2px solid var(--blue); display:flex;align-items:center; justify-content:center;}
.balken{width:0%;height:100%;left:0;top:0; position: absolute; background-color: var(--yellow);}

.loaded{display: flex;flex-direction: column; gap: 1rem;}
.linkCode{padding: 1rem; border: 2px solid var(--yellow); text-align: center;overflow-wrap: break-word; }
.back{color: var(--yellow);}

.download{text-align: center;}
.download button{margin-top: 3rem;}

img.afterDwn{width: 1rem;}

.absolute{width:100%;height:90%;left:0;top:0; pointer-events: none; opacity: 0; position: absolute; background-color: white; padding: 2rem; text-align: left; z-index: 10000;}
.absolute.open{opacity: 1; pointer-events: all;}
.absolute *{text-align: left;}

}

@layer insert{
.insert > div{width:100%;height:100%;left:0;top:0; position: absolute;}
.insert > div img{ width:100%;height:100%;left:0;top:0; object-fit: cover; object-position: cneter; position: absolute;}
.insert > div .txt{ position: absolute; bottom: 0; padding: 1rem; padding-bottom: 2rem; background-color: rgba(0, 0, 0, 0.469); width: 100%; display: flex; justify-content: space-between; align-items: center;}
.insert h1, .insert p{color: white; text-align: left;}

}

