::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}

::-webkit-scrollbar-track {
	// background: #008080; 
}
 
::-webkit-scrollbar-corner {
	background: rgba(0,0,0,0);
}
 
::-webkit-scrollbar-thumb {
	background: #c0c0c0; 
}

::-webkit-scrollbar-thumb:hover {
	background: #e0e0e0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    // background-color: #1e1e2f;
    background-color: #000000;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    // min-height: 100vh;
    width: 100%;
    height: 100%;
    margin: 0;
    gap: 16px;
    background-position: center;
    background-size: cover;
    
	overscroll-behavior: none;

	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-o-uer-select: none;
	user-select: none;

	-webkit-touch-callout:none;
	-webkit-tap-highlight-color:rgba(0,0,0,0);
}

img {
    user-drag: none;
    -webkit-user-drag: none;
}

.vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2c2c3e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.form-container label {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #d1d1e9;
}

form {
    margin-block-end: 0;
}

input[type="range"] {
    width: 100%;
}

input[type="file"], input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="date"], input[type="submit"], button, select {
    // width: 100%;
    padding: 10px;
    // margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1rem;
    border: 2px solid #4e4e6b;
    background-color: #2c2c3e;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

input[type="file"]::file-selector-button {
    padding: 5px 10px;
    background-color: #4e4e6b;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

input[type="file"]::file-selector-button:hover {
    background-color: #6c6c8b;
}

input[type="text"]:focus, input[type="file"]:focus {
    border-color: #6c6c8b;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

button, input[type="submit"] {
    background-color: #4e4e6b;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover, input[type="submit"]:hover {
    background-color: #6c6c8b;
}

button:active, input[type="submit"]:active {
    background-color: #3b3b56;
}

button>img {
    width: 100%;
    height: 100%;
}

textarea {
    font-family: Arial, sans-serif;
    min-width: 100%;
    max-width: 100%;
    padding: 10px;
    // margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1rem;
    border: 2px solid #4e4e6b;
    background-color: #2c2c3e;
    color: white;
    outline: none;
    transition: border-color 0.3s;
    min-height: 150px;
}

a {
    color: white;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    // justify-content: center;
    justify-content: start;
    overflow: hidden;
    flex: 1;
    // width: 100%;
    // height: 100%;
}

.vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: auto;
    height: auto;
}


.dlg {
    // margin: auto;
    // margin-top: 40px;
    // margin-bottom: 40px;
    background-color: #2c2c3e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 1);
    width: 100%;
    max-width: 400px;
    max-height: 90%;
    z-index: 100;
    display: flex;
    // margin-top: 16px;
    // margin-bottom: 160px;
    // position: relative;
    position: absolute;
    overflow: hidden;
    
    /*transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;*/
}

.vertical>* {
    margin-block-start: 0;
    margin-block-end: 0;
    margin-bottom: 0;
    width: 100%;
}

.dlgclose {
    position: absolute;
    // position: sticky;
    width: 32px;
    height: 32px;
    cursor: pointer;
    left: 100%;
    top: 0;
    transform: translate(-24px, -7px);
    clip-path: none;
    z-index: 101;
}

.social-links {
    display: flex;
    justify-content: center;
}

.back-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    opacity: 0.2;
}


.top-list {
    list-style-type: none;
    padding: 0;
    width: 100%;
    font-size: 1.2em;
    font-weight: bold;
}

.top-item {
    // margin: 10px 0;
    padding: 10px 0;
    border-bottom: 2px solid #1e1e2f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-item a {
    text-decoration: none;
    // color: #555;
    font-weight: bold;
    font-size: 1.2em;
}

.error {
    color: red;
    display: none;
}

.success {
    color: #00ff00;
    display: none;
    font-size: 1.3rem;
}

.none {
    display: none;
}

.menu {
    background-color: #4e4e6b;
    padding: 10px;
    display: flex;
    gap: 10px;
}

.menuitem {
    display: flex;
    gap: 2px;
    cursor: pointer;
}

.msg, .fullw {
    width: 100%;
}

.msghead {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.msgnick, .msgnicksent {
    font-weight: bold;
}

.msgnick:before {
    content: ">";
}

.msgnicksent:before {
    content: "<";
}

.items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    width: 100%;
}

.item, .item64 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #4e4e6b;
    border-radius: 8px;
    padding: 4px;
}

.item64 {
    width: 64px;
    height: 64px;
}

.itemicon {
    width: 100%;
    height: 100%;
}

.itemtext {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.4);
}

/*.shipcontent {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}*/

.back {
    width: 100%;
    height: 100%;
    position: absolute;
}

.shipstack, .stack, .stackfill {
    // background-image: url('images/ship.svg');
    // background-repeat: no-repeat;
    // background-position: center;
    // object-fit: cover;
    // width: 100%;
    // height: 100%;
    // max-width: 100%;
    // max-height: 100%;
    // top: 0;
    // left: 0;
    // right: 0;
    // bottom: 0;
    position: relative;
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.shipstack, .stack {
    max-width: 100%;
    max-height: 100%;
}

.stackfill {
    min-width: 100%;
    min-height: 100%;
}

.shipimg, .stackimg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    // object-fit: contain;
}

.shipitem, .stackitem {
    position: absolute;
    // object-fit: contain;
    transform: translate(-50%, -50%);
}

.notification {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c2c3e;
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.notification.show {
    opacity: 1;
}

.vote-option {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    overflow: visible;
}

.vote-text {
    padding-bottom: 22px;
}

.vote-img {
    width: 100%;
}

.vote-bar {
    width: 100%;
    position: absolute;
    bottom: 0;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

.vote-fill {
    background-color: #4caf50;
    height: 100%;
}

.vote-percent {
    position: absolute;
    right: 2px;
    top: 0;
}

.right {
    text-align: right;
}

.areagrid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-gap: 2px;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.7);
}

.areagrid>div {
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    // border: 2px solid grey;
    border-radius: 5px;
    aspect-ratio: 1;
    cursor: pointer;
}

.areagrid>div::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.areagrid>div span {
    display: inline-block;
    vertical-align: middle;
}

.areaupdate {
    border: 2px solid white;
}

.shadow7 {
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.7);
}

.chat {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7);
}

.chatlist {
    overflow: auto;
    flex: 1;
}

.chatsend {
    display: flex;
    flex-direction: row;
}

.chatsend>input[type="text"] {
    flex: 1;
}

.timer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

@media (orientation: landscape) {
    body {
        flex-direction: row;
    }

    .content {
        height: 100%;
        //padding-left: 10px;
    }

    .menu {
        flex-direction: column;
        height: 100%;
    }

    .chat {
        width: 25%;
        height: 100%;
    }
}

@media (orientation: portrait) {
    .content {
        width: 100%;
        // padding-top: 10px;
    }

    .menu {
        width: 100%;
    }

    .chat {
        width: 100%;
        height: 25%;
    }
}