*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    width:100%;
    height:100%;
}

body{
    background:#080912;
    color:white;
    overflow:hidden;
}

.screen{
    width:100%;
    height:100vh;
}

.hidden{
    display:none!important;
}

#startupScreen{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#080912;
}

.framework{
    position:absolute;
    inset:0;
    background:url("./whitefire.gif") center/cover no-repeat;
    z-index:0;
}

.framework::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(8,9,18,.35);
}

.startupContent{
    position:relative;
    z-index:2;
    text-align:center;
}

.logoMark{
    font-size:70px;
    color:white;
    animation:logoAppear 1s ease both;
}

#logoText{
    margin-top:15px;
    font-size:54px;
    letter-spacing:12px;
    background:linear-gradient(
        90deg,
        #ffffff,
        #6a0dad,
        #ffffff
    );
    background-clip:text;
    -webkit-background-clip:text;
    color:transparent;
    animation:textAppear 1.2s ease .3s both;
}

#tagline{
    margin-top:10px;
    color:#b77aff;
    font-size:13px;
    letter-spacing:6px;
    animation:taglineAppear 1s ease .8s both;
}

.startupButtons{
    display:flex;
    flex-direction:column;
    gap:12px;
    width:260px;
    margin:40px auto 0;
}

.mainButton,
.secondaryButton{
    padding:14px 20px;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    transition:.2s;
}

.mainButton{
    background:#6a0dad;
    color:white;
    border:1px solid #9b4dca;
}

.secondaryButton{
    background:rgba(255,255,255,.08);
    color:white;
    border:1px solid rgba(255,255,255,.2);
}

.mainButton:hover,
.secondaryButton:hover{
    transform:translateY(-2px);
    background:#7d20bd;
}

.version{
    margin-top:25px;
    font-size:11px;
    opacity:.6;
}

#studio{
    display:flex;
    flex-direction:column;
    background:#080912;
}

.topBar{
    height:60px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    background:#10111c;
    border-bottom:1px solid #252638;
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:bold;
}

.miniLogo{
    color:#b77aff;
}

.menu{
    display:flex;
    gap:5px;
}

.menu button{
    background:none;
    border:0;
    color:#aaa;
    padding:10px 14px;
    cursor:pointer;
}

.menu button:hover{
    color:white;
}

.saveStatus{
    color:#aaa;
    font-size:12px;
}

.statusDot{
    display:inline-block;
    width:8px;
    height:8px;
    background:#6a0dad;
    border-radius:50%;
    margin-right:6px;
}

.workspace{
    flex:1;
    display:flex;
    min-height:0;
}

.toolbar{
    width:60px;
    background:#11121d;
    border-right:1px solid #252638;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:12px 0;
    gap:8px;
}

.tool{
    width:40px;
    height:40px;
    border:0;
    border-radius:7px;
    background:transparent;
    color:white;
    cursor:pointer;
    font-size:18px;
}

.tool:hover,
.tool.active{
    background:#6a0dad;
}

.toolDivider{
    width:30px;
    height:1px;
    background:#292a3a;
    margin:4px 0;
}

.canvasArea{
    flex:1;
    display:flex;
    flex-direction:column;
    min-width:0;
}

.canvasHeader{
    height:50px;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#10111c;
    border-bottom:1px solid #252638;
}

.canvasHeader small{
    display:block;
    color:#777;
    margin-top:3px;
}

.canvasControls{
    display:flex;
    align-items:center;
    gap:10px;
}

.canvasControls button{
    width:28px;
    height:28px;
    border:0;
    border-radius:5px;
    background:#252638;
    color:white;
    cursor:pointer;
}

.canvasControls button:hover{
    background:#6a0dad;
}

.canvasWrapper{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#171824;
}

#animationCanvas{
    width:min(90%,960px);
    max-height:85%;
    background:white;
    box-shadow:0 10px 40px rgba(0,0,0,.5);
    transform-origin:center;
}

.properties{
    width:240px;
    background:#11121d;
    border-left:1px solid #252638;
    padding:15px;
    overflow-y:auto;
}

.panel{
    padding-bottom:20px;
    margin-bottom:20px;
    border-bottom:1px solid #252638;
}

.panelTitle{
    font-size:11px;
    letter-spacing:2px;
    color:#b77aff;
    margin-bottom:15px;
}

.panel label{
    display:flex;
    justify-content:space-between;
    font-size:12px;
    color:#aaa;
    margin:12px 0 6px;
}

input[type="range"]{
    width:100%;
}

.colorPreview{
    width:100%;
    height:35px;
    background:white;
    border-radius:6px;
    margin-bottom:10px;
}

#colorPicker{
    width:100%;
    height:35px;
    border:0;
    background:none;
}

.colorPalette{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:10px;
}

.colorPalette button{
    width:25px;
    height:25px;
    border:1px solid #555;
    border-radius:50%;
    cursor:pointer;
}

.layer{
    display:flex;
    gap:10px;
    align-items:center;
    padding:9px;
    border-radius:6px;
    background:#1c1d2b;
}

.addLayer{
    width:100%;
    margin-top:8px;
    padding:9px;
    background:#191a27;
    border:1px dashed #444;
    color:#aaa;
    cursor:pointer;
}

.timeline{
    height:230px;
    background:#10111c;
    border-top:1px solid #252638;
}

.timelineHeader{
    height:50px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 15px;
}

.timelineTitle{
    color:#b77aff;
    font-size:12px;
    letter-spacing:2px;
}

.timelineControls{
    display:flex;
    align-items:center;
    gap:7px;
}

.timelineControls button{
    width:32px;
    height:28px;
    background:#252638;
    color:white;
    border:0;
    border-radius:5px;
    cursor:pointer;
}

.timelineControls input{
    width:50px;
    background:#191a27;
    color:white;
    border:1px solid #333;
    padding:5px;
}

.timelineBody{
    display:flex;
    height:180px;
    overflow:auto;
}

.layersPanel{
    width:180px;
    flex-shrink:0;
    background:#11121d;
    border-right:1px solid #252638;
}

.layersHeader{
    height:35px;
    padding:0 10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:#777;
    font-size:10px;
}

.addLayerButton{
    background:none;
    border:0;
    color:white;
    font-size:18px;
    cursor:pointer;
}

.layerItem{
    height:42px;
    padding:0 10px;
    display:flex;
    align-items:center;
    gap:8px;
    color:#aaa;
}

.activeLayer{
    background:#242536;
    color:white;
}

.framesArea{
    overflow:auto;
    flex:1;
}

.frameNumbers{
    display:flex;
    min-width:max-content;
}

.frame{
    width:55px;
    height:42px;
    background:#181925;
    border:1px solid #292a3a;
    color:#888;
    cursor:pointer;
}

.frame:hover{
    background:#2a2b3e;
    color:white;
}

.frame.activeFrame{
    background:#6a0dad;
    color:white;
    border-color:#b77aff;
}

@keyframes logoAppear{
    from{
        opacity:0;
        transform:scale(.7);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

@keyframes textAppear{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes taglineAppear{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}
