@font-face {
    font-family: 'SpaceMono';
    src: url('../fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SpaceMono';
    src: url('../fonts/SpaceMono-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'SpaceMono';
    src: url('../fonts/SpaceMono-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'SpaceMono';
    src: url('../fonts/SpaceMono-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

* {
    outline: none;
}

body {
    margin: 0;
    overflow: hidden;
    background: #1e1e2e;
    color: #cdd6f4;
    font-family: 'SpaceMono', monospace;
    font-size: 15px;
}

a {
    color: #cba6f7;
}

button {
    color: #cdd6f4;
    background-color: #1e1e2e;
    border-top: 2px solid #585b70;
    border-bottom: 2px solid #313244;
    border-left: 2px solid #585b70;
    border-right: 2px solid #313244;
    font-family: 'SpaceMono', monospace;
    font-size: 13px;
}

button:active {
    border-top: 2px solid #313244;
    border-bottom: 2px solid #585b70;
    border-left: 2px solid #313244;
    border-right: 2px solid #585b70;
}

input {
    border-top: 2px solid #313244;
    border-bottom: 2px solid #585b70;
    border-left: 2px solid #313244;
    border-right: 2px solid #585b70;
    font-family: 'SpaceMono', monospace;
    font-size: 13px;
    letter-spacing: -1px;
}

hr {
    color: #cdd6f4;
    border-color: #cdd6f4;
}

#top-bar {
    background: url('../img/bardark.png');
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    user-select: none;
    z-index: 9999;
}

#notifications {
    z-index: 99999;
}

#bottomBar {
    background: url('../img/bardark.png');
    color: #cdd6f4;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 57px;
    padding: 4px;
    box-sizing: border-box;
    user-select: none;
    z-index: 9999;
}

#brush-size-container {
    position: absolute;
    top: 5px;
    left: 4px;
    display: inline;
}

#brush-size {
    width: 48px;
    height: 22px;
    background-color: #1e1e2e;
    color: #cdd6f4;
    border-top: 2px solid #313244;
    border-bottom: 2px solid #585b70;
    border-left: 2px solid #313244;
    border-right: 2px solid #585b70;
    font-family: 'SpaceMono', monospace;
}

#color-options {
    position: absolute;
    top: 5px;
    left: 60px;
    display: inline-block;
}

#color-display {
    width: 48px;
    height: 22px;
}

#color-chooser {
    position: absolute;
    top: 6px;
    left: 4px;
    width: 48px;
    height: 22px;
    opacity: 0;
}

#color-buttons {
    position: absolute;
    top: 0px;
    left: 48px;
    display: inline-flex;
    justify-content: space-between;
}

.dynamic-color {
    margin-left: 4px;
    width: 16px;
    height: 22px;
}

#color-separator {
    height: 22px;
    width: 2px;
    background-color: #cdd6f4;
    margin-left: 4px;
}

#control-buttons {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 3px;
    right: 4px;
}

#control-buttons button {
    margin-right: 4px;
}

#control-buttons button:last-of-type {
    margin-right: 0px;
}

@supports (-webkit-hyphens: none) {
    /*this will only apply to webkit*/

    #admin-button {
        font-size: 12px;
        margin-top: 1px;
    }

    #reset-button {
        font-size: 12px;
        margin-top: 1px;
    }

    #tab-button {
        font-size: 12px;
        margin-top: 1px;
    }
}

@-moz-document url-prefix() {
    /*this will only apply to firefox*/
    #color-options {
        top: -1px;
    }

    #color-chooser {
        left: 0px;
    }

    #color-buttons {
        top: 6px;
    }
}

.dim {
    opacity: 0.5;
    pointer-events: none;
}

#window {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#window-frame {
    width: 500px;
    height: 300px;
    border-top: 5px solid #585b70;
    border-bottom: 5px solid  #313244;
    border-left: 5px solid #585b70;
    border-right: 5px solid #313244;
    user-select: none;
}

#notifications {
    position: absolute;
    top: -100%;
    top: 4px;
    left: 50%;
    transform: translateX(-50%)
}

.notification {
    position: relative;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.5s ease-out;
}

/*okay this can technically apply if your window size is perfect but its fine*/
/*discord pip*/
@media only screen and (width: 320px) and (height: 180px) {
    #pad {
        z-index: 99999;
    }
}