*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

body{
    background:#121212;
    color:#fff;
    padding:20px;
}

.container{
    max-width:700px;
    margin:auto;
}

:root{
    --space:20px;
}

h1{
    text-align:center;
    margin-bottom:8px;
    color:#ff4040;
    font-family:"Exo",sans-serif;
}

.subtitle{
    text-align:center;
    color:#bfbfbf;
    margin-bottom:30px;
}

.card {
    background: #121212;
    border: 1px solid rgba(108, 74, 182, 0.55);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
}

.tutorial-title{
    font-size:20px;
    margin-bottom:15px;
    color:#ffffff;
    font-family:inherit;
}

.title-display{
    font-family:inherit;
}


.section-title {
    font-size: 15px;
    font-weight: 600;
    margin-top: 14px;
    margin-bottom: 8px;
    color: white;
    font-family: "Cinzel", serif;
}


label{
    display:block;
    margin-top:var(--space);
    margin-bottom:10px;
    font-weight:bold;
}


textarea{
    width:100%;
    min-height:220px;
    resize:vertical;
    padding:15px;
    border:1px solid rgba(108,74,182,.25);
    border-radius:10px;
    background:#252525;
    color:white;
    font-size:16px;
    margin-bottom: 10px;
}


textarea:focus{

    outline:none;
    border-color:#6c4ab6;
}

select{
    width:100%;
    padding:15px;
    border:1px solid rgba(108,74,182,.25);
    border-radius:10px;
    background:#252525;
    color:white;
    font-size:16px;
    cursor:pointer;
}


select:focus{
    outline:none;
    border-color:#6c4ab6;
}


.file-btn{
    display:block;
    width:100%;
    padding:14px;
    margin-top:10px;
    background:#6c4ab6;
    color:#fff;
    text-align:center;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
    font-family:"Cinzel", serif;
    letter-spacing:1px;
    text-transform:uppercase;
    transition:.2s ease;
    border:1px solid rgba(255,255,255,.15);
    box-shadow:0 6px 15px rgba(0,0,0,.25);
}


.file-btn:hover{
    background:#7955c9;
}


.file-btn:hover{
    background:#6c4ab6;
}


.file-btn:active{
    transform:scale(.98);
}


.preview-image{
    width:100%;
    margin-top:var(--space);
    margin-bottom:var(--space);
    border-radius:12px;
    display:block;
    object-fit:cover;
    max-height:220px;
    border:2px solid #2a2a2a;
}


.buttons{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-top:20px;
}


button{
    flex:1;
    padding:16px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-family:"Cinzel", serif;
    font-size:16px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    background:#6c4ab6;
    color:white;
}


button:active{
    transform:scale(.98);
}


#addTutorial{
    width:100%;
    margin-top:0;
    background:#7b55d1;
    box-shadow:0 8px 18px rgba(0,0,0,.35);
    border:1px solid rgba(255,255,255,.15);
}

#addTutorial:active{
    transform:scale(.98);
}

.delete-btn{
    width:100%;
    margin-top:20px;
    background:#8b3030;
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 6px 15px rgba(0,0,0,.25);
}


.delete-btn:active{
    transform:scale(.98);
}


.delete-btn:hover{
    background:#a63b3b;
}


button:disabled{
    opacity:.7;
    cursor:not-allowed;
}


@media(max-width:600px){

    .buttons{
        flex-direction:column;
    }

}

.discord-preview{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    width:90%;
    max-width:600px;
    max-height:80vh;
    overflow-y:auto;
    background:#1e1f22;
    padding:20px;
    border-radius:18px;
    box-shadow:0 10px 40px rgba(0,0,0,.6);
    z-index:1000;
}

.discord-preview h2{
    margin-bottom:20px;
}


.discord-message{
    background:#313338;
    padding:15px;
    border-radius:12px;
    margin-bottom:20px;
}


.discord-header{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:15px;
}


.discord-avatar{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#6c4ab6;
}


.discord-name{
    font-weight:bold;
}


.discord-banner{
    width:100%;
    max-height:220px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:15px;
}


.discord-content{
    white-space:pre-wrap;
    line-height:1.5;
}


.discord-image{
    width:100%;
    max-height:300px;
    object-fit:cover;
    border-radius:10px;
    margin-top:15px;
}
.close-preview{
    position:fixed;
    top:10px;
    right:10px;
    width:35px;
    height:35px;
    padding:0;
    border-radius:50%;
    background:#6c4ab6;
    color:white;
    font-size:18px;
    margin:0;
}
.close-preview:hover{
    opacity:.8;
}
#save,
#load{
    background:#6c4ab6;
    color:white;
}
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo {
    height: 110px;
    width: auto;
}
.webhook option[value=""] {
    display:none;
}
.tutorial-title{
    font-family:"Germania One", serif;
    font-weight:400;
    letter-spacing:1px;
}
.discord-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}

#toast{
    position:fixed;
    bottom:25px;
    left:50%;
    transform:translateX(-50%);
    background:#1e1e1e;
    color:white;
    padding:12px 20px;
    border-radius:12px;
    border:1px solid rgba(108,74,182,.45);
    box-shadow:0 8px 20px rgba(0,0,0,.4);
    opacity:0;
    pointer-events:none;
    transition:.3s ease;
    font-family:"Cinzel", serif;
    z-index:2000;
}

#toast.show{
    opacity:1;
}

#toast.success{
    border-color:#6c4ab6;
}

#toast.error{
    border-color:#8b3030;
}
.tutorial{
    animation:tutorialAppear .35s ease;
}


@keyframes tutorialAppear{

    from{
        opacity:0;
        transform:translateY(-15px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}
.preview-image{
    opacity:0;
    transform:scale(.96);
    transition:.3s ease;
}

.preview-image.show{
    opacity:1;
    transform:scale(1);
}
.image-wrapper{
    position:relative;
}

.remove-image{
    position:absolute;
    top:10px;
    right:10px;
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:rgba(180,40,40,.85);
    color:white;
    font-size:18px;
    font-weight:bold;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    z-index:10;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(0,0,0,.35);
    backdrop-filter:blur(4px);

    opacity:0;
    transform:scale(.7);
    pointer-events:none;

    transition:all .25s ease;
}

.remove-image.show{
    opacity:.8;
    transform:scale(1);
    pointer-events:auto;
}

.remove-image:hover{
    opacity:1;
    transform:scale(1.08);
}

.remove-image:active{
    transform:scale(.92);
}

.image-wrapper:hover .preview-image{
    filter:brightness(.9);
}

.title-input{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:none;
    border-radius:10px;
    background:#252525;
    color:white;
    font-size:16px;
}

.title-input:focus{
    outline:none;
    border:1px solid #6c4ab6;
}

.tutorial-content{
    overflow:hidden;
    max-height:5000px;
    opacity:1;
    transition:max-height .3s ease, opacity .3s ease;
}

.tutorial-content.hidden{
    max-height:0;
    opacity:0;
}

.toggle-title{
    cursor:pointer;
    user-select:none;
    -webkit-user-select:none;
    touch-action:none;
    padding:10px;
    border-radius:10px;
    transition:.2s ease;
}

.toggle-title:hover{
    background:rgba(108,74,182,.08);
}

.toggle-title .arrow{
    display:inline-block;
    width:20px;
    transition:.2s ease;
}

.tutorial-content.hidden + .delete-btn{
    margin-top:15px;
}

.tutorial{
    touch-action:none;
    position:relative;
}

{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;

    animation:modalFade .25s ease;
}

.modal.hidden{
    display:none;
}

.modal-box{
    background:#2b2d31;
    color:white;
    padding:22px;
    border-radius:15px;
    width:min(380px,88%);
    text-align:center;

    border:2px solid #6c4ab6;

    box-shadow:
    0 10px 35px rgba(0,0,0,.55),
    0 0 25px rgba(108,74,182,.6);

    animation:modalPop .35s ease;
}

.modal-icon{
    width:72px;
    height:72px;
    margin:0 auto 18px;
    border-radius:50%;
    background:linear-gradient(135deg,#6c4ab6,#8b6ce6);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;

    border:1px solid rgba(108,74,182,.75);

    box-shadow:
    0 20px 50px rgba(0,0,0,.55),
    0 0 25px rgba(108,74,182,.45),
    inset 0 1px 2px rgba(255,255,255,.2);
}

.modal-box h2{
    margin-top:0;
    font-family:"Cinzel", serif;
    letter-spacing:1px;
    font-size:24px;
}

#resumeInfo{

    margin-top:15px;
    color:#d6d6d6;
    line-height:1.6;
    font-size:15px;
    font-family:"Cinzel", serif;
    letter-spacing:.5px;

}

.modal-buttons{
    display:flex;
    gap:14px;
    margin-top:28px;
}

.modal-buttons button{
    flex:1;
    padding:16px;
    border-radius:14px;
    transition:all .22s ease;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
}

#resumeProject{
    background:#6c4ab6;
    border:1px solid rgba(255,255,255,.12);
}

#resumeProject:hover{
    background:#7b55d1;
    transform:translateY(-2px);
    box-shadow:0 14px 28px rgba(108,74,182,.35);
}

#newProject{
    background:#3a3b40;
    border:1px solid rgba(255,255,255,.08);
}

#newProject:hover{
    background:#4a4b50;
    transform:translateY(-2px);
}

@keyframes modalFade{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}

@keyframes modalZoom{

    from{
        opacity:0;
        transform:scale(.94);
    }

    to{
        opacity:1;
        transform:scale(1);
    }

}

@keyframes modalIconPop{

    0%{
        transform:scale(.8) translateY(-10px);
        opacity:0;
    }

    70%{
        transform:scale(1.08) translateY(2px);
        opacity:1;
    }

    100%{
        transform:scale(1) translateY(0);
        opacity:1;
    }

}

.modal-icon{
    animation:modalIconPop .35s ease;
}

@keyframes modalFade{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}


@keyframes modalPop{

    from{
        opacity:0;
        transform:scale(.85) translateY(20px);
    }

    to{
        opacity:1;
        transform:scale(1) translateY(0);
    }

}

#confirmDelete{
    background:#8b3030;
}

#confirmDelete:hover{
    background:#a63b3b;
}

#cancelDelete{
    background:#3a3b40;
}

#cancelDelete:hover{
    background:#4a4b50;
}