#CreateChannel {
    width: 100%;
    overflow-y: scroll;
    height: 97%;
}
.createchannel-container {


}
#channel-switcher {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: aliceblue;
    font-size: 16px;
    margin-left: 10px; /* Adjust as needed */
}

#channel-switcher:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
}
/* Custom animation for TIME replies */
@keyframes time-reply-fade-in {
  0% {
    opacity: 0;
    transform: translateX(-15px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animation via this class */
.time-reply-animate {
  animation: time-reply-fade-in 0.6s ease-out;
}

.spectatormode {
 display: none;
}

/* General Styles */
body {
    /* font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif; */
    /* background-color: #fff; */
    /* margin: 0; */
    /* padding: 0; */
    /* height: 100vh; */
    /* overflow: hidden; */
    font-size: 14px;
}

a {
    text-decoration: underline;
    color: inherit;
}

a:hover {
    color: #0078d7;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #97bdff, #6a8fcc);
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header .channel-name {
    font-size: 18px;
    font-weight: normal;
    color: #fff;
    
}

.header #user-count {
    right: 2px;
    top: 43px;
    position: absolute;
    font-size: 14px;
    color: #ffffff;
}

/* Chat Container Styles */
.roomlist-container {
	/* top: 1pc; */
}
.chat-container {
    /* display: flex; */
    /* flex-direction: column; */
    /* height: calc(100vh - 60px); */
    /* overflow: hidden; */
}
#RoomList {
} 
.chat-box {
    /* flex: 1; */
    /* padding: 20px; */
    /* box-sizing: border-box; */
    /* overflow-y: scroll; */
    /* overflow-x: hidden; */
    /* scrollbar-width: thin; */
    /* scrollbar-color: #6a8fcc #f9f9f9; */
    /* max-height: 75%; */
    /* margin-bottom: 63px; */
    /* background-color: #fff; */
    /* margin-left: 5px; */
    /* border-radius: 5px 5px 5px 5px; */
}

.chat-box::-webkit-scrollbar {
    width: 8px;
}

.chat-box::-webkit-scrollbar-track {
    background: #f9f9f9;
}

.chat-box::-webkit-scrollbar-thumb {
    background: #6a8fcc;
    border-radius: 4px;
}

.chat-box::-webkit-scrollbar-thumb:hover {
    background: #97bdff;
}

.chat-box p {
    margin: 0 0 -1px 0;
    color: #333;
    line-height: 1.5;
}


/* Chat Input Container Styles */
.chat-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 84.4%;
    background-color: #2288bb;
    padding: 10px;
    box-sizing: border-box;
    border-top: 2px solid #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #999;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f9f9f9;
    color: #333;
    outline: none;
}

#chat-input:focus {
    border-color: #6a8fcc;
    background-color: #fff;
}

#send-button {
    /* padding: 10px 20px; */
    /* background-color: #6a8fcc; */
    /* border: none; */
    /* border-radius: 5px; */
    /* color: #fff; */
    /* font-size: 14px; */
    /* cursor: pointer; */
    /* transition: background-color 0.3s ease; */
}

#send-button:hover {
    background-color: #97bdff;
}

/* Nicklist Styles */

.nicklist ul li {
    cursor: default; /* Prevents the mouse icon from changing */
    /* padding: 5px 0; */
    /* margin: 0; */
    /* font-size: 14px; */
    /* user-select: none; */ /* Prevent text selection */
    /* -webkit-user-select: none; */ /* For Chrome and Safari */
    -moz-user-select: none; /* For Firefox */
    -ms-user-select: none; /* For IE/Edge */
}

.nicklist ul li.selected {
    /* background-color: #9093b1; */ /* Highlight color */
    /* color: #fff; */ /* Text color for selected items */
}

.nicklist ul li {
    cursor: default; /* Prevents the mouse icon from changing */
    /* padding: 5px 0; */
    /* margin: 0; */
    /* font-size: 14px; */
    user-select: none; /* Prevent text selection */
}

.nicklist ul li.selected {
    /* background-color: #97a0c6; */ /* Highlight color */
    /* color: #fff; */ /* Text color for selected items */
    /* position: relative; */
    /* width: 106px; */
}

.nicklist {
    /* flex: 1; */
    /* padding: 20px; */
    /* background-color: #FFFFFF; */
    /* border-left: 1px solid #ccc; */
    /* overflow-y: auto; */
    -ms-overflow-style: none;
    /* position: fixed; */
    /* right: -80%; */
    /* height: calc(100vh - 60px); */
    /* transition: right 0.3s ease-in-out; */
    /* color: #000000; */
    /* box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); */
}

.nicklist h3 {
    margin-top: 0;
    font-size: 16px;
    color: #fff;
}

.nicklist ul {
    list-style-type: none;
    padding: 0;
}

.nicklist ul li {
    /* display: flex; */
    /* align-items: center; */
    /* gap: 8px; */
    /* padding: 5px 0; */
    /* margin: 0; */
    /* font-size: 14px; */
    position: relative;
    left: 15px;
}

.nicklist ul li::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('MSN/modesT.png');
    background-repeat: no-repeat;
    position: relative;
    top: -1px;
    left: 5px;
}


.role-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('MSN/modesT.png');
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

.owner-msg {
    background-position: -16px 0;
}

.host-msg {
    background-position: -32px 0;
}

.participant-msg {
    background-position: -112px 0;
}

.spectator-msg {
    background-position: -48px 0;
    display: none;
}

.member-msg {
    background-position: -48px 0;
    display: none;
}

.msg {
    /* Remove the background image from here */
    vertical-align: middle;
}

/* Owner */
.nicklist ul li.owner::before {
    background-position: -16px 0;
}

/* Host */
.nicklist ul li.host::before {
    background-position: -32px 0;
}

/* Participant */
.nicklist ul li.participant::before {
    background-position: -112px 0;
}

/* Spectator */
.nicklist ul li.spectator::before {
    background-position: -48px 0;
    display: none;
}
.nicklist ul li.member::before {
    background-position: -48px 0;
    display: none;
}
/* Toggle Button Styles */
.toggle-nicklist.desktop-only {
    display: none;
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
}

.toggle-nicklist.mobile-only {
    display: none;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.toggle-nicklist.mobile-only:hover {
    background-color: #f0f0f0;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #ece9d8; /* Classic Windows 2000 background color */
    margin: 10% auto; /* Centered */
    padding: 20px;
    border: 2px solid #003c74; /* Dark blue border */
    width: 250px; /* Smaller width */
    font-family: "MS Sans Serif", "Tahoma", sans-serif; /* Classic Windows font */
    font-size: 12px; /* Smaller font size */
    color: #000; /* Black text */
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.close-modal {
    color: #000; /* Black close button */
    float: right;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #003c74; /* Dark blue on hover */
}

/* Input Field Styles */
#host-keyword-input {
    width: 100%;
    padding: 6px;
    margin: 10px 0;
    border: 1px solid #003c74; /* Dark blue border */
    background-color: #fff; /* White background */
    font-family: "MS Sans Serif", "Tahoma", sans-serif;
    font-size: 12px;
    color: #000; /* Black text */
    outline: none;
}

#host-keyword-input:focus {
    border-color: #0078d7; /* Light blue on focus */
}

/* Button Styles */
.win2k-btn {
    padding: 6px 12px;
    border: 1px solid #003c74; /* Dark blue border */
    background-color: #ece9d8; /* Light gray background */
    font-family: "MS Sans Serif", "Tahoma", sans-serif;
    font-size: 12px;
    color: #000; /* Black text */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.win2k-btn:hover {
    background-color: #d4d0c8; /* Slightly darker gray on hover */
}

.win2k-btn:active {
    background-color: #c0c0c0; /* Even darker gray on click */
    border-color: #000; /* Black border on click */
}

/* Modal Buttons Container */
.modal-buttons {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 8px; /* Space between buttons */
    margin-top: 20px;
}
.context-menu {
    max-width: calc(100vw - 20px); /* Prevent menu from reaching window edge */
    padding: 5px; /* Optional internal padding */
    box-sizing: border-box;
}

.context-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 160px; /* Ensure minimum width for readability */
}

.context-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.context-menu ul li {
    padding: 12px 16px; /* Increase padding for easier tapping */
    cursor: pointer;
    font-size: 16px; /* Increase font size for readability */
}

.context-menu ul li:hover {
    background-color: #f0f0f0;
}

.context-menu ul li.separator {
    border-bottom: 1px solid #ccc;
    padding: 0;
    margin: 8px 0; /* Increase margin for better separation */
}

.context-menu ul li.submenu {
    position: relative;
}

.context-menu ul li.submenu ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 160px; /* Ensure submenu has enough width */
}

.context-menu ul li.submenu:hover ul {
    display: block;
}

/* Adjust submenu position for mobile */
@media (max-width: 768px) {
 .nicklist {
              max-height: 57%;

    }

.context-menu ul li.submenu ul {
        left: auto;
        right: 100%; /* Move submenu to the left of the parent menu */
    }

    .context-menu {
        font-size: 14px; /* Slightly smaller font size for mobile */
    }
}
/* Media Queries */
@media (min-width: 769px) {
    .toggle-nicklist.desktop-only {
        display: block;
    }
}

@media (max-width: 768px) {
    .header #user-count {
        left: 229px;
        top: 40px;
    }
	img#top_line {
    position: relative;
    top: 52px;
    left: 0px;
}
	#exitimg {
		
width: 31px;
		
height: 25px;
	}
	.exit-box {
		/* display: block; */
		position: absolute;
		top: 14px;
		right: 15px;
		z-index: 1;
	}
	.exit-box { }
	.join-box {position: absolute;top: 14px;right: 15px;z-index: 1;}
    .chat-box {

/* max-height: calc(100vh - 64px); */

background-color: white;

position: relative;

top: 1%;

/* min-height: calc(100vh - 180px); */

/* max-height: calc(100vh - 180px); */

/* overflow-y: scroll; */
}
    .chat-input-container #user-count {
        display: block;
        font-size: 12px;
        color: #6a8fcc;
        margin-right: 10px;
    }

    .nicklist {
        right: -99%;
    }

    .nicklist.open {
        right: 0;
    }

    .toggle-nicklist.desktop-only {
        display: none;
    }

    .toggle-nicklist.mobile-only {
        display: block;
        position: relative;
        top: 82px;
        right: 46px;
    }
}

@media (max-width: 858px) {
    .nicklist {
       /* width: 18%; */
       /* max-height: 59%; */
    }

    .nicklist.open {
        right: 0%;
	width: 20%;
    }
}

@media (min-width: 1079px) {
    .toggle-nicklist.mobile-only {
        display: block;
        position: relative;
        right: -8px;
        top: -1px;
    }
}

@media (min-width: 1024px) {
    .header .channel-name {
        position: relative;
        top: 0px;
   
    }
	#channel-switcher {
	position: relative;
	left: 85%;
	top: 20px;
	/* width: 6px; */
	}
	.chat-container {
		/* top: -106px; */
	}
	.chat-box {
		
	}
		.join-box {
	z-index: 999999;
    position: absolute;
    right: 15%;
    top: 7px;	
	}
	    .exit-box {
        display: inline-flex;
        position: absolute;
        top: 7px;
        right: 15%;
        width: 15px;
        height: 16px;
        z-index: 999999;
    }

    .input-box {
        padding: 10px 16px;
    }
    .nicklist {
        /* right: 6px; */
        /* top: 106px; */
        /* max-height: 49%; */
        /* width: 12.9%; */
    }

	.input-area {
		width: 79.9%;
	}
    .nicklist.open {
        right: -170px;
    }

    .chat-messages {

/* max-height: 79.6%; */
}
    .chat-box {
        /* width: 82.9%; */
        /* display: block; */
        /* height: calc(100vh - 145px); */
        margin-left: -12px;
        /* margin-top: 7px; */
        /* border-radius: 16px 0px 0px 16px; */
        overflow-y: scroll;
        height: 99%;
        /* margin-bottom: 0px; */
        /* padding-bottom: 47px; */
        position: relative;
        top: -5px;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .header .channel-name {
        position: relative;
    top: 0px;
    right: 50%;
    }
    .header #user-count {
        right: 2px;
    }
    .toggle-nicklist.mobile-only {
        display: none;
    }
    #channel-switcher {
        /* position: relative; */
        /* right: 6px; */
        top: 36px;
        width: 13%;
        /* z-index: 1; */
    }
    html {
        overflow-y: hidden;
    }
    .nicklist {width: 12.6%;right: 0%;min-height: 76%;top: 137px;right: 6px;}

    .nicklist.open {
        right: -70%;
    }
	#roomtitle {
		
/* text-align: center; */
	}
	.roomlist-container {
	top: 45px;
	}
.chat-container {
	top: -79px;
}
	img#top_line {
    position: relative;
    top: 52px;
    left: 0px;
}
	#exitimg {
	width: 18px;
    height: 18px;
	}
	.exit-box {
	display: inline-flex;
	position: absolute;
	top: 15px;
	right: 18%;
	width: 15px;
	height: 16px;
	/* background-color: red; */
}
	.exit-box {}
	.join-box {
    position: absolute;
    top: 11px;
    right: 22%;
    width: 15px;
    height: 16px;
}
	
    .chat-box {
        /* width: 99.2%; */
        /* height: calc(100vh - 144px); */
        margin-left: -12px;
        /* margin-top: 7px; */
        /* border-radius: 16px 0px 0px 16px; */
        overflow-y: scroll;
        height: 99%;
    }
}
.roomlist-room-list {
    overflow-y: scroll;
}
@media (min-width: 1920px) {


.chat-input-container {
	width: 77%;

	}
	.exit-box {
		
position: absolute;
		
top: 19px;
		
right: 18%;
		
width: 15px;
		
height: 16px;
	}
	#exitimg {
		
width: 36px;
		
height: 39px;
	}
	
	#channel-switcher {position: relative;left: 83%;top: 73px;width: 14%;}
    .nicklist {
        width: 16%;
        right: 1%;
        max-height: 78%;
        top: 166px;
    }

    .nicklist.open {
        right: 0;
	}
	.roomlist-container {
		top: 73px;
	}
	.chat-container {
		
top: -74px;
	}
    .chat-box {
        width: 80%;
        min-height: calc(100vh - 169px);
        max-height: calc(100vh - 169px);
    }
}

@media (min-width: 468px) and (max-width: 1024px) and (orientation: landscape) {
    #channel-switcher {
        top: 49px;
        right: 216px;
        width: 27%;
                }
   #RoomList {
      top: 0px;
	   /* display: none; */
	  }
	.chat-input-container {
        width: 75%;
    }
	.chat-container {
		
top: -58px;
	}
    .header .channel-name {
        position: relative;
        top: 0px;
        right: 50%;
    }

    #channel-switcher {
        position: absolute;
   
        width: 201px;
        /* font-size: 26px; */
    }
    .nicklist {
        /* width: 19.3%; */
        /* right: 1%; */
        /* top: 121px; */
        /* min-height: 59%; */
        /* margin-left: -26px; */
        /* padding: 16px; */
    }

    html, body {
        overflow: unset;
    }
    .nicklist.open {
        right: 0;
    }
.exit-box {
	display: inline-flex;
	position: absolute;
	top: 12px;
	right: 2%;
	width: 15px;
	height: 16px;
	z-index: 9999999;
}
	#roomtitle {
		text-align: center;
	}
	.roomlist-container {
		top: 62px;
		width: 74%;
	}
	.exit-box {}
	.join-box {
    position: absolute;
    top: 12px;
    right: 22%;
    width: 15px;
    height: 16px;
}
    .chat-box {
        width: 100%;
        /* min-height: calc(100vh - 152px); */
        /* max-height: calc(91vh - 152px); */
    }
}

@media (max-width: 767px) {

    html, body {
        overflow-y: scroll;
    }
    #channel-switcher {
        position: absolute;
        top: 21px;
        left: 4px;
        z-index: 7;
        width: 218px;
    }
.chat-input-container {
width: 100%;
}
.roomlist-container {position: absolute;top: 41px;}
    .nicklist {
	overflow-y: scroll;
	max-height: 80%;
    }

    .nicklist.open {
        top: 91px;
        left: 8px;
	 width: 80%;
    }
}

/* Animation */
@keyframes glitchy-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-5px);
        color: rgba(0, 0, 0, 0);
    }
    20% {
        opacity: 0.8;
        transform: translateY(2px);
        color: rgba(0, 0, 255, 0.8);
    }
    40% {
        opacity: 0.6;
        transform: translateY(-2px);
        color: rgba(0, 0, 0, 0.8);
    }
    60% {
        opacity: 0.8;
        transform: translateY(1px);
        color: rgba(128, 128, 128, 0.8);
    }
    80% {
        opacity: 0.7;
        transform: translateY(-1px);
        color: rgba(0, 0, 255, 0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        color: gray;
    }
}

.glitchy-fade-in {
    animation: glitchy-fade-in 1.5s ease-in-out;
}


@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(2px, -2px);
    }
    60% {
        transform: translate(-2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.glitch-effect {
    animation: glitch 0.5s linear; /* Glitch animation */
    position: relative;
    display: inline-block;
    color: gray;
}
.nicklist ul li {
    /* transition: opacity 0.5s ease; */
}
/* Fade-In Animation */
/* Fade-Out Animation */
/* Fade-Out Animation */
@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Fade-In Animation */
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.fade-out {
    animation: fade-out 0.5s ease-out forwards;
}

.fade-in {
    animation: fade-in 0.5s ease-in forwards;
}

img#top_line {
    position: relative;
    top: 52px;
    left: 0px;
}
@media (max-height: 700px) {
    .chat-messages {
        /* max-height: 80%; */
    }
    #channel-switcher {
        top: 34px;
    }
    .exit-box {
        right: 18%;
    }
    .join-box {
        right: 18%;
    }
    .chat-box {
        
/* min-height: 100%; */
        
max-height: calc(100vh - 143px);
        
overflow-y: scroll;
        
position: relative;
        
top: 0px;
    }
}
@media (min-height: 701px) {
    .chat-messages {
        /* max-height: 82.6%; */
    }
    .chat-box {
        /* min-height: calc(100vh - 204px); */
        max-height: calc(100vh - 259px);
        /* overflow-y: scroll; */
    }

}