*{
    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;
}

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:#1e1e1e;
    border-radius:18px;
    padding:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    margin-bottom:20px;
}

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


label{
    display:block;
    margin-top:20px;
    margin-bottom:8px;
    font-weight:bold;
}


textarea{
    width:100%;
    min-height:220px;
    resize:vertical;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#2a2a2a;
    color:white;
    font-size:16px;
}


select{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#2a2a2a;
    color:white;
    font-size:16px;
}


.file-btn{
    display:block;
    width:100%;
    padding:14px;
    margin-top:8px;
    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;
}
}


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


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


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


.buttons{
    display:flex;
    gap:15px;
    margin-top:30px;
}


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:20px;
}


.delete-btn{
    width:100%;
    margin-top:20px;
    background:#8b3030;
}


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%;
}