:root {
	--blue0: #000020;
    --blue1: #192142;
    --blue2: #1D3E63;
    --blue3: #7D7D95;
    --white0: #FFFFFF;
    --gold0: #FFB500;
	--selection: #A0B5DE;
}

::-webkit-scrollbar {
	width: 18px;
	background:lightgray;
}

::-webkit-scrollbar-button:horizontal:start {
	background: url("./ui/WebGui.png");
	object-fit: none;
	background-position: -226px -18px;
	width: 18px;
	height: 18px;
	min-width: 18px;
}

::-webkit-scrollbar-button:horizontal:end {
	background: url("./ui/WebGui.png");
	object-fit: none;
	background-position: -244px -18px;
	width: 18px;
	height: 18px;
	min-width: 18px;
}

::-webkit-scrollbar-button:horizontal:start:hover {
	background: url("./ui/WebGui.png");
	object-fit: none;
	background-position: -226px 0px;
	width: 18px;
	height: 18px;
	min-width: 18px;
}

::-webkit-scrollbar-button:horizontal:end:hover {
	background: url("./ui/WebGui.png");
	object-fit: none;
	background-position: -244px 0px;
	width: 18px;
	height: 18px;
	min-width: 18px;
}

::-webkit-scrollbar-track-piece:horizontal {
	background: url('./ui/HorizScrollTrack.png');
	height: 18px;
	min-height: 18px;
}

::-webkit-scrollbar-button:vertical:start {
	background: url("./ui/WebGui.png");
	object-fit: none;
	background-position: -190px 0px;
	width: 18px;
	height: 18px;
	min-width: 18px;
}

::-webkit-scrollbar-button:vertical:end {
	background: url("./ui/WebGui.png");
	object-fit: none;
	background-position: -190px -18px;
	width: 18px;
	height: 18px;
	min-width: 18px;
}

::-webkit-scrollbar-button:vertical:start:hover {
	background: url("./ui/WebGui.png");
	object-fit: none;
	background-position: -208px 0px;
	width: 18px;
	height: 18px;
	min-width: 18px;
}

::-webkit-scrollbar-button:vertical:end:hover {
	background: url("./ui/WebGui.png");
	object-fit: none;
	background-position: -208px -18px;
	width: 18px;
	height: 18px;
	min-width: 18px;
}

::-webkit-scrollbar-track-piece:vertical {
	background: url('./ui/VertScrollTrack.png');
	width: 18px;
	min-width: 18px;
}

::-webkit-scrollbar-thumb:vertical {
	background: url('./ui/VertScroll.png');
	margin: 2px 0px 2px 0px;
	border: 2px rgb(0, 0, 0) solid;
	border-radius: 1px;
	width: 15px;
	max-width: 15px;
}

::-webkit-scrollbar-thumb:vertical:hover {
	border-color: #a0b5de;
}

::-webkit-scrollbar-thumb:horizontal {
	background: url('./ui/HorizScroll.png');
	margin: 0px 2px 0px 2px;
	border: 2px rgb(0, 0, 0) solid;
	border-radius: 1px;
	height: 15px;
	max-height: 15px;
}

::-webkit-scrollbar-thumb:horizontal:hover {
	border-color: #a0b5de;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #111;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #111;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #111;
}

body {
    background-color: var(--blue1);
    font-family: 'Courier New';
    color: var(--white0);
    image-rendering: pixelated; /* for good browsers */
    image-rendering: crisp-edges; /* for firefox! :) */
    margin: 0;
    min-height: 100vh;
}

button {
    border: 8px solid transparent;
    border-image: url("./ui/button.png");
    border-image-slice: 8;
    border-image-width: 8px;
    border-image-outset: 4px;
    border-image-repeat: stretch;
    background: var(--blue3);
    color: var(--white0);
}

button:hover {
    border: 8px solid transparent;
    border-image: url("./ui/buttonHover.png");
    border-image-slice: 8;
    border-image-width: 8px;
    border-image-outset: 4px;
    border-image-repeat: stretch;
    background: var(--blue3);
    color: var(--white0);
    cursor: pointer;
}

input[type=submit] {
    border: 8px solid transparent;
    border-image: url("./ui/button.png");
    border-image-slice: 8;
    border-image-width: 8px;
    border-image-outset: 4px;
    border-image-repeat: stretch;
    background: var(--blue3);
    color: var(--white0);
}

input[type=submit]:hover {
    border: 8px solid transparent;
    border-image: url("./ui/buttonHover.png");
    border-image-slice: 8;
    border-image-width: 8px;
    border-image-outset: 4px;
    border-image-repeat: stretch;
    background: var(--blue3);
    color: var(--white0);
    cursor: pointer;
}

hr {
    background-color: var(--gold0);
    height: 1px;
    border: none;
}

a {
    text-decoration: none;
    color: var(--white0);
}

a:visited {
    text-decoration: none;
    color: var(--white0);
}

a:hover {
    text-decoration: none;
    color: var(--white0);
}

a:link {
    text-decoration: none;
    color: var(--white0);
}

a:active {
    text-decoration: none;
    color: var(--white0);
}

video {
    min-width: 0px;
}

select {
	border: 2px #000 solid;
	background: linear-gradient(180deg, rgba(105,105,125,1) 0px, rgba(125,125,149,1) 4px);
	color: #000;
	clip-path: polygon(0px 2px, 2px 2px, 2px 0px, calc(100% - 2px) 0px, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0px calc(100% - 2px));
	font-family: Courier New;
	font-size: 13pt;
}

select:hover {
	border: 2px var(--selection) solid;
}

input[type=text] {
	border: 2px #000 solid;
	background: linear-gradient(180deg, rgba(105,105,125,1) 0px, rgba(125,125,149,1) 4px);
	color: #000;
	clip-path: polygon(0px 2px, 2px 2px, 2px 0px, calc(100% - 2px) 0px, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0px calc(100% - 2px));
	font-family: Courier New;
	font-size: 13pt;
}

input[type=text]:hover {
	border: 2px var(--selection) solid;
}

input[type=text]:focus {
	border: 2px var(--selection) solid;
	background: linear-gradient(180deg, rgba(105,105,125,1) 0px, rgba(125,125,149,1) 4px);
	color: #000;
	clip-path: polygon(0px 2px, 2px 2px, 2px 0px, calc(100% - 2px) 0px, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0px calc(100% - 2px));
	font-family: Courier New;
}

input[type=password] {
	border: 2px #000 solid;
	background: linear-gradient(180deg, rgba(105,105,125,1) 0px, rgba(125,125,149,1) 4px);
	color: #000;
	clip-path: polygon(0px 2px, 2px 2px, 2px 0px, calc(100% - 2px) 0px, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0px calc(100% - 2px));
	font-family: Courier New;
	font-size: 13pt;
}

input[type=password]:hover {
	border: 2px var(--selection) solid;
}

input[type=password]:focus {
	border: 2px var(--selection) solid;
	background: linear-gradient(180deg, rgba(105,105,125,1) 0px, rgba(125,125,149,1) 4px);
	color: #000;
	clip-path: polygon(0px 2px, 2px 2px, 2px 0px, calc(100% - 2px) 0px, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0px calc(100% - 2px));
	font-family: Courier New;
}

input[type=checkbox] {
	display: none;
}

input[type=checkbox] + label {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	display: inline-block;
	padding: 0 0 0 0px;
	background-size: 50%;
	background: url("./ui/Editor.png");
	object-fit: none;
	background-position: 0px 0px;
	width: 28px;
	height: 28px;
	min-width: 28px;
	cursor: pointer;
}

input[type=checkbox]:hover + label {
	display: inline-block;
	padding: 0 0 0 0px;
	background-size: 50%;
	background: url("./ui/Editor.png");
	object-fit: none;
	background-position: -28px 0px;
	width: 28px;
	height: 28px;
	min-width: 28px;
	cursor: pointer;
}

input[type=checkbox]:checked + label {
	display: inline-block;
	padding: 0 0 0 0px;
	background-size: 50%;
	background: url("./ui/Editor.png");
	object-fit: none;
	background-position: 0px -28px;
	width: 28px;
	height: 28px;
	min-width: 28px;
	cursor: pointer;
}

input[type=checkbox]:checked:hover + label {
	display: inline-block;
	padding: 0 0 0 0px;
	background-size: 50%;
	background: url("./ui/Editor.png");
	object-fit: none;
	background-position: -28px -28px;
	width: 28px;
	height: 28px;
	min-width: 28px;
	cursor: pointer;
}

#loginBox {
	background-color: var(--blue1);
    border: 14px solid var(--blue0);
    border-image: url("./ui/9slice.png") 14 round;
    background-clip: padding-box;
    width: 550px;
    display: flex;
    align-items: center;
    margin: 4px;
    padding: 15px;
    position: absolute;
	flex-direction: column;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

#loginField {
    display: inline-flex;
    align-content: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

#siteTitleCharacters {
    text-align: center;
    font-size: 26px;
    padding: 8px;
}

#charsBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#charNavBar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#header {
    background-color: var(--blue1);
    display: flex;
    justify-content: space-evenly;
    font-size: 26px;
    padding: 16px;
}

#headerHr {
    height: 12px;
    width: 100%;
    overflow: visible;
    background-image: url("./ui/textboxBottom.png");
    position: absolute;
    z-index: 1;
}

#header > * {
    margin: 0px 8px;
}

#footercontainer {
    background-color: var(--blue0);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    font-size: 13px;
    position: relative;
    bottom: 0px;
    width: 100%;
}

#walkerbackground {
    height: 96px;
    margin: 2px 0px 4px 0px;
}

#standardBoxParent {
    display: flex;
    width: 100%;
    height: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    flex-direction: column;
    align-content: center;
    align-items: center;
	position: absolute;
}

#standardBox {
	background-color: var(--blue1);
    border: 14px solid var(--blue0);
    border-image: url("./ui/9slice.png") 14 round;
    background-clip: padding-box;
    width: 550px;
    display: flex;
    align-items: center;
    margin: 4px;
    padding: 15px;
	flex-direction: column;
	transform: translate(0%, 30px);
	text-align: center;
}

button.help {
    border: 8px solid transparent;
    border-image: url("./ui/button.png");
    border-image-slice: 8;
    border-image-width: 8px;
    border-image-outset: 4px;
    border-image-repeat: stretch;
    background: var(--blue3);
    color: var(--white0);
	width: 80%;
	margin-bottom: 23px;
	display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

button.help > div {
    display: inline-block;
}

button.help:hover {
    border: 8px solid transparent;
    border-image: url("./ui/buttonHover.png");
    border-image-slice: 8;
    border-image-width: 8px;
    border-image-outset: 4px;
    border-image-repeat: stretch;
    background: var(--blue3);
    color: var(--white0);
    cursor: pointer;
}

button.helpend {
    border: 8px solid transparent;
    border-image: url("./ui/button.png");
    border-image-slice: 8;
    border-image-width: 8px;
    border-image-outset: 4px;
    border-image-repeat: stretch;
    background: var(--blue3);
    color: var(--white0);
	width: 80%;
	display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

button.helpend:hover {
    border: 8px solid transparent;
    border-image: url("./ui/buttonHover.png");
    border-image-slice: 8;
    border-image-width: 8px;
    border-image-outset: 4px;
    border-image-repeat: stretch;
    background: var(--blue3);
    color: var(--white0);
    cursor: pointer;
}

@keyframes cloud1move {
    0% {
        transform: translatex(0);
    }
    100% {
        transform: translatex(-640px);
    }
}

@keyframes cloud2move {
    0% {
        transform: translatex(0);
    }
    100% {
        transform: translatex(-1280px);
    }
}

.homepageContentWrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    overflow: hidden;
    background-color: #A598AD;
    height:720px;
}

.homepageContentBackground1 {
    background-image: url("./ui/Cloud1.png");
    background-size: 640px 70px; 
    height: 70px; 
    width: 500vw;
    animation: cloud1move 10.5s linear infinite;   
}

.homepageContentBackground2 {
    background-image: url("./ui/Cloud2.png");
    background-size: 640px 46px; 
    height: 46px; 
    width: 500vw;
    animation: cloud1move 5.25s linear infinite;   
}

.homepageContentBackground3 {
    background-image: url("./ui/Cloud3.png");
    background-size: 640px 62px; 
    height: 62px; 
    width: 500vw;
    animation: cloud1move 2.625s linear infinite;   
}

.homepageContentBackground4 {
    background-image: url("./ui/Cloud4.png");
    background-size: 1280px 126px; 
    height: 126px; 
    width: 500vw;
    animation: cloud2move 2.625s linear infinite;   
}

.homepageContentBackgroundSun {
    background-image: url("./ui/bgSun.png");
    background-size: 68px 68px; 
    height: 68px; 
    width: 68px;
    position: absolute;
    top: 15%;
    left: 17%;
}

.homepageContent > div {
    position: absolute;
    font-size: 3vw;
    top: 50%;
    left: 12vw;
    transform: translatey(-50%);
    height: auto;
    width: 30%;
    text-align: center;
    filter: drop-shadow(2px 2px 1px #777);
}

@keyframes island {
    0% { 
        transform: translatey(-47%); 
    }
    50%  { 
        transform: translatey(-51%); 
    }
    100%   { 
        transform: translatey(-47%); 
    }    
}

.homepageContent > img {
    position: absolute;
    top: 50%;
    right: 12vw;
    transform: translatey(-50%);
    height: 414px;
    width: 424px;
    animation: island 5s ease-in-out infinite;
    filter: drop-shadow(2px 2px 1px #777);
}

.homepageListWrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px;
    text-align: center;
    background: linear-gradient(0deg, rgba(29,62,99,1) 0%, rgba(111,107,86,1) 100%);
}

.homepageListWrapper > video {
    border: 14px solid var(--blue2);
    border-image: url("./ui/9slice.png") 14 round;
}

.homepageListWrapper > div > ul {
    text-align: left;
    padding: 0px 0px 0px 8vw;
}

.homepageListWrapper > div > ul > li {
    padding: 3px;
    font-size: clamp(0.8rem, 1vw, 3rem);
}

#homepageDownloadWrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 150px;
    padding: 4vh;
    background-color: var(--blue2);
    background-size: 128px;
    font-size: clamp(2rem, 1.6vw, 4rem);
    text-align: center;
    filter: drop-shadow(2px 2px 1px #000);
}

.characterBox {
    background-color: var(--blue1);
    border: 14px solid var(--blue0);
    border-image: url("./ui/9slice.png") 14 round;
    background-clip: padding-box;
    width: 550px;
    display: flex;
    align-items: flex-end;
    margin: 4px;
    padding: 15px;
    position: relative;
}

.characterBox > img {
    width: 144px;
    height: auto;
    min-width: 144px;
}

.download {
    background: url("./ui/download.png");
    border: none;
    width: 44px;
    height: 44px;
    padding: 0px;
    position: absolute;
    right: 5px;
    bottom: 1px;
    align-self: flex-end;
}

.download:hover {
    background: url("./ui/downloadhover.png");
    cursor: pointer;
    border: 0px;
    border-image: none;
}

.edit {
    background: url("./ui/edit.png");
    border: none;
    width: 44px;
    height: 44px;
    padding: 0px;
    position: absolute;
    right: 50px;
    bottom: 1px;
    align-self: flex-end;
}

.edit:hover {
    background: url("./ui/editHover.png");
    cursor: pointer;
    border: 0px;
    border-image: none;
}

.deleteChar {
    background: url("./ui/delete.png");
    border: none;
    width: 44px;
    height: 44px;
    padding: 0px;
    position: absolute;
    right: 95px;
    bottom: 1px;
    align-self: flex-end;
}

.deleteChar:hover {
    background: url("./ui/deleteHover.png");
    cursor: pointer;
    border: 0px;
    border-image: none;
}

.characterInfo {
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 26px;
    position: relative;
}

.characterAuthor {
    font-size: 18px;
}

#changelogContainer {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#changelogContainer > button {
    width: 95%;
    text-align: center;
}

.changelog {
    background-color: var(--blue1);
    border: 14px solid var(--blue1);
    border-image: url("./ui/9slice.png") 14 round;
    width: 90%;
    background-clip: padding-box;
    margin: 8px;
    padding: 8px;
}

.changelogHeader {
    font-size: 1.6rem;
}

.changelog > ul > li {
    font-size: 1.2rem;
    margin: 30px 30px 0px 30px;
}

.changelog > ul > li > ul {
    font-size: 1rem;
    margin: 2px;
}

@media only screen and (max-device-width: 1000px) {
    .homepageListWrapper {
        flex-direction: column;
    }

    .homepageContent > div {
        width: 70%;
        font-size: 5.5vw;
        top: 15%;
        left: 50%;
        transform: translatex(-50%);
    }

    .homepageContent > img {
        top: 65%;
        right: 50%;
        transform: translatey(-50%);
        width: clamp(0px, 75%, 400px);
        height: auto;
    }

    .characterBox {
        width: 90%;
    }

    .characterInfo > div {
        font-size: 3.5vw;
    }

    .characterBox > img {
        min-width: 0px;
    }

    .preview {
        display: none;
    }

    .download {
        width: 4vw;
        height: 4vw;
        background-size: 4vw;
    }

    @keyframes island {
        0% { 
            transform: translate(50%, -43%); 
        }
        50%  { 
            transform: translate(50%, -47%); 
        }
       100%   { 
            transform: translate(50%, -43%); 
        }  
    }
    
    video {
        width: 80%;
    }
}

@media only screen and (max-device-width: 700px) {
    #header {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    #header > div {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        padding: 4px;
        width: 100%;
    }

    #header > div > a {
        width: 30%;
    }

    #header > div > a > button {
        width: 100%;
    }

    #footercontainer {
        text-align: center;
    }

    .homepageContentBackground1 {
        width: 500vh;
    }
    
    .homepageContentBackground2 {
        width: 500vh;
    }

    .homepageContentBackground3 {
        width: 500vh;
    }

    .homepageContentBackground4 {
        width: 500vh;
    }
}