@import url('https://fonts.googleapis.com/css?family=Aldrich|Montserrat&display=swap');
@import url('/nag.css');

:root {
        --accent-color: firebrick;
        --accent-text: #eee;
}

body {
        font-family: "montserrat";
        background: #111;
        color: white;
        min-width: 440px;
        text-align: center;
}

/* width */
::-webkit-scrollbar {
        width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0);
}

/* Handle */
::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
        background: #444;
}

textarea {
        width: calc(20vw - 30px);
        min-width: calc((440px / 7) - 30px);
        height: calc((100vh / 7) - 25px);
        resize: none;
        border: none;
        background: #333;
        color: white;
        border-radius: 3px;
        font: sans-serif;
        transition-duration: .25s;
}

textarea:focus {
        outline: none;
        background: #555;
        transition-duration: .25s;
}

button {
        background: var(--accent-color);
        color: var(--accent-text);
        font-size: 14pt;
        border: none;
        border-radius: 2px;
        padding: 10px;
        transition-duration: .25s;
        margin-left: 5px;
        margin-right: 5px;
}

button:hover{
	filter: brightness(120%);
	box-shadow: 0px 0px 3px var(--accent-color);
}

button:disabled {
        filter: grayscale(1);
}

.green {
        background-color: green;
}

.yellow {
        background-color: yellow;
}

.red {
        background-color: #ee2222;
}

.window {
        position: fixed;
        width: 75%;
        height: 75%;
        top: 12.5%;
        left: 12.5%;
        background: #222e;
        backdrop-filter: blur(15px);
        z-index: 199;
        display: none;
        text-align: center;
        border-radius: 5px;
        color: #ddd;
        padding-top: 25px;
        overflow: auto;
}

input {
        background: #222;
        font-size: 18pt;
        padding: 5px;
        border-radius: 3px;
        margin: 10px;
        border: none;
        color: white;
        max-width: 40%;
	box-shadow: inset 0px 0px 6px rgba(0, 0, 0, .3);
}

.window button {
        background: var(--accent-color);
        border-radius: 3px;
        margin: 10px;
        border: none;
        transition-duration: ease-in-out;
        color: var(--accent-text);
}

.window button:hover {
        background: #444;
}

#menu {
        position: fixed;
        top: -50px;
        left: 0px;
        height: 50px;
        width: 100%;
        border: none;
        transition-duration: .25s;
        z-index: 100;
}

#openButton {
        position: absolute;
        right: 0px;
        top: 0px;
        background: rgba(0, 0, 0, 0);
        border: none;
        padding: 5px;
        font-size: 18pt;
        z-index: 99;
        color: white;
}

/* The slider itself */
.slider {
        -webkit-appearance: none;
        /* Override default CSS styles */
        appearance: none;
        width: 20%;
        /* Full-width */
        height: 25px;
        /* Specified height */
        background: #5559;
        /* Grey background */
        outline: none;
        /* Remove outline */
        opacity: 0.7;
        /* Set transparency (for mouse-over effects on hover) */
        -webkit-transition: .2s;
        /* 0.2 seconds transition on hover */
        transition: opacity .2s;
        border-radius: 2px;
        padding: 0px;
        margin: 2px;
}

/* Mouse-over effects */
.slider:hover {
        opacity: 1;
        /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        /* Override default look */
        appearance: none;
        width: 30px;
        /* Set a specific slider handle width */
        height: 30px;
        /* Slider handle height */
        background: var(--accent-color);
        /* SP red background */
        cursor: pointer;
        /* Cursor on hover */
        border-radius: 2px;
}

.slider::-moz-range-thumb {
        -moz-appearance: none;
        /* Override default look */
        appearance: none;
        border: none;
        width: 30px;
        /* Set a specific slider handle width */
        height: 30px;
        /* Slider handle height */
        background: var(--accent-color);
        /* SP red background */
        cursor: pointer;
        /* Cursor on hover */
        border-radius: 2px;
}

.window h1,
h2,
h3,
h4 {
        margin: 5px;
}

/* Window close buttons */
button.closeButton {
        border-radius: 0px;
        cursor: pointer;
        position: absolute;
        top: 0px;
        right: 0px;
        border: none;
        background: rgba(0, 0, 0, 0);
        color: rgba(255, 255, 255, .5);
        font-family: arial;
        font-weight: 800;
        font-size: 26pt;
        padding: 15px;
        padding-top: 5px;
        padding-bottom: 5px;
        margin: 0px;
        transition-duration: .3s;
        border-bottom-left-radius: 5px;
}

button.closeButton:hover {
        color: rgba(255, 50, 50, .5);
        background: rgba(255, 255, 255, .05);
}

.container {
        background: #333;
        width: 50%;
        border-radius: 5px;
        margin: auto;
        padding: 10px;
        min-width: 500px;
}

a {
        color: var(--accent-color);
}

/* The switch - the box around the slider */
.switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
        opacity: 0;
        width: 0;
        height: 0;
}

/* The slider */
.toggle {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        -webkit-transition: .4s;
        transition: .4s;
}

.toggle:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
}

input:checked+.toggle {
        background-color: var(--accent-color);
}

input:focus+.toggle {
        box-shadow: 0 0 1px var(--accent-color);
}

input:checked+.toggle:before {
        -webkit-transform: translateX(26px);
        -ms-transform: translateX(26px);
        transform: translateX(26px);
}

/* Rounded sliders */
.toggle.round {
        border-radius: 34px;
}

.toggle.round:before {
        border-radius: 50%;
}

@media screen and (max-width: 480px) {
        .window {
                top: 0px;
                left: 0px;
                border-radius: 0px;
                width: calc(100% - 10px);
                height: calc(100% - 55px);
                padding: 5px;
                padding-top: 50px;
        }

        #openButton {
                position: fixed;
        }

        #nagBar {
                width: 100%;
        }

	.slider {
		max-width: 90%;
	}
}