@media only screen and (max-width: 600px)
{
	.navbar {
		display: none;
	}

	.input-area .input-character{
		width: 90%;
	}

	.input-area .input-dialog {
		width: 90%;
	}

	.input-dialog textarea {
        font-size: 16px;
        color: var(--text-col);
        width: 80%;
        height: 100%;
        border: 1px solid var(--out-col);
        background-color: var(--trans-col);
        border-radius: 5px;
        resize: none;
        padding: 1%;
    }
    

    .file-popup {
        width: 80vw;
        height: 70vh;
        margin: 0;

        padding: 0;

        display: flex;
        flex-direction: column;
    }

    .file-popup .random-image {
        max-width: 100%;
        height: 30%;
        overflow: hidden;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;

        border-bottom: 1px solid var(--out-col);
    }

    .file-popup .random-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .file-popup .random-image p {
        position: absolute;
        transform: translate(0, 0);
        top: 22%;
        left: 2%;
        color: #FFFFFF;

        font-size: 12px;
        height: fit-content;

        padding: 5px;
        border-radius: 5px;
        background-color: var(--popup-overlay);
    }

    .file-popup .file-details {
        width: 100%;
    }

    .file-popup .file-details .logo {
        display: flex;

        margin: 25px;
    }

    .file-details .logo svg {
        width: 16px;
        height: 16px;
        margin: 6px;
    }

    .file-details .logo label {
        width: 100%;
        font-size: 20px;
        margin-left: 10px;

        display: flex;
        justify-content: space-between;
    }

    .file-details .logo label button {
        aspect-ratio: 1/1;
    }

    .file-details .logo label button svg {
        width: 12px;
        height: 12px ;
    }

    .file-details .actions,
    .file-details .recents,
    .file-details .new-project {
        width: 80%;
        margin-inline: 20px;
        margin-bottom: 20px;
    }

    .recents {
        display: none;
    }

    .file-details .actions label,
    .file-details .recents label,
    .file-details .new-project label {
        font-size: 16px;
    }

    .file-details .actions .buttons,
    .file-details .recents .scripts-holder {
        display: flex;
        flex-direction: column;

        color: var(--text-col);
        list-style: none;
        width: fit-content;
    }

    .file-details .actions li,
    .file-details .recents li {
        font-size: 14px;
        background-color: var(--trans-col);
        border: none;
        color: var(--dialog-hover);
    }

    .file-details .actions li::before,
    .file-details .recents li::before {
        content: "\2023";
        margin-right: 0.5em;
    }

    .file-details .actions li:hover,
    .file-details .recents li:hover{
        list-style-type: "\2023";
        color: var(--text-col);
    }

    .file-details .new-project {
        display: flex;
        flex-direction: column;
        height: 30%;
    }

    .file-details .new-project input {
        background-color: var(--trans-col);
        border: 1px solid var(--out-col);
        border-radius: 5px;
        padding: 5px;

        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 12px;
        width: 100%;
    }

    .file-details .new-project .buttons {
        display: flex;
        justify-content: space-between;
    }

    .file-details .new-project .buttons button {
        font-size: 10px;
        background-color: var(--trans-col);
        outline: none;
        border: 1px solid var(--out-col);
        border-radius: 5px;
        padding: 5px;

        width: 45%;
    }

    .file-details .new-project .buttons button:hover {
        background-color: var(--bg-alt);
    }

    .file-details .new-project p {
        font-size: 10px;
        color: var(--text-col);
    }

    .file-details .links {
        width: 100%;
        height: 2%;
        margin: 0;
        display: flex;

        justify-content: center;

        position: absolute;
        bottom: 15;
    }

    .file-details .links .bar {
        padding-right: 5px;
        margin-right: 5px;
        height: 200%;
        border-right: 1px solid var(--out-col);
    }

    .file-details .links svg {
        width: 8px;
        height: 8px;
    }

    .file-details .links label {
        font-size: 8px;
    }





    

    .navbar-open {
        display: inherit;
        position: absolute;
        z-index: 2;
        top: 3%;
        right: 5%;
    }

    .navbar-open svg {
        width: 48px;
        height: 48px;
    }

    .top-gradient {
        position: absolute;
        top: 0;
        width: 100%;
        height: 80px;
        background-color: var(--bg-col);
        box-shadow: 0px 10px 50px 50px var(--bg-col);
        z-index: 1;
    }
    
    .script-editor {
        color: var(--text-col);
        height: 100vh;
    }
    
    .script-area {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 90%;
        justify-content: space-around;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .script-area .script-dialog {
        width: 90%;
        height: 80%;
        overflow-x: hidden;
    }
    
    .space {
        width: 100%;
        height: 30%;
    }

    .dialog {
        margin-top: 2%;
        margin-bottom: 2%;
        height: auto;
        display: flex;
        font-size: 14px;
        justify-content: space-between;
        padding: 0px;
        transition-property: scale, padding, height;
        transition-duration: .3s, .3s, .2s;
        transition-delay: .1s, .1s, .1s;
    }

    .dialog:hover, .dialog:active {
        margin-top: 0%;
        margin-bottom: 0%;
        border: 1px solid var(--hover-border);
        border-radius: 5px;
        padding: 5px;
        scale: 110%;
        transition-property: scale, padding;
        transition-duration: .3s, .3s;
        transition-delay: 0s, 0s;
    }

    .dialog .character-name {
        width: 30%;
    }

    .dialog-edit {
        border: 1px solid var(--hover-border);
        border-radius: 5px;
        padding: 5px;
        scale: 110%;
    }

    .dialog-insert {
        border-top: 10px solid var(--text-col);
        padding-top: 5px;
        animation: blink 2s infinite;
    }

    @keyframes blink {
        0%, 50%, 100% {
            border-top: 2px solid var(--insert-blink);
        }
        25%, 75% {
            border-top: 2px solid var(--insert-blink-active);
        }
    }

    .dialog-text {
        width: 80%;
        display: flex;
        justify-content: space-between;
    }

    .dialog-text:hover .dialog-buttonholder .dialog-button,
    .dialog-action:hover .dialog-buttonholder .dialog-button {
        display: inherit;
    }

    .dialog-buttonholder {
        display: flex;
        flex-direction: row-reverse;
    }

    .dialog-button {
        display: none;
        align-items: center;
        background-color: var(--trans-col);
        color: var(--text-col);
        height: 21.6px;
        aspect-ratio: 1/1;
        border: 1px solid var(--out-col);
        border-radius: 5px;
        float: right;
        margin-left: 10px;
    }

    .dialog-button svg {
        fill: var(--out-col);
    }

    .dialog-button:hover {
        border: 1px solid var(--text-col);
    }

    .dialog-button:hover svg {
        fill: var(--text-col);
    }

    .delete:hover {
        border: 1px solid var(--danger-col);
    }

    .delete:hover svg {
        fill: var(--danger-col);
    }

    .dialog-action {
        width: 100%;
        text-align: center;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}