/* Γενικές Ρυθμίσεις */

body {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: Arial, sans-serif;

}



#chatStage {

    width: 100vw;

    height: 100vh;

    overflow: hidden;

}



.chatBack {

    position: absolute;

    background-image: url('../images/chatBack.jpg');

    width: 100%;

    height: 100%;

    background-position: center;

    background-repeat: no-repeat;

    background-size: cover;

    animation: zoomInBlur 1s ease-in-out forwards; /* Μείωση διάρκειας animation */

    filter: blur(10px) brightness(0.7); /* Αρχικό εφέ */

    transform: scale(1.2) translateZ(0); /* Επιτάχυνση hardware */

    will-change: transform, filter; /* Ενημέρωση για μελλοντικές αλλαγές */

    backface-visibility: hidden; /* Βελτίωση απόδοσης μετασχηματισμών */

}



/* Εφέ Zoom-In και Καθαρισμού */

@keyframes zoomInBlur {

    0% {

        filter: blur(10px) brightness(0.7); /* Θολή εικόνα με χαμηλό φωτισμό */

        transform: scale(1.2) translateZ(0); /* Ελαφρώς μεγαλύτερο */

    }

    100% {

        filter: blur(0) brightness(1); /* Καθαρή εικόνα με φυσικό φωτισμό */

        transform: scale(1) translateZ(0); /* Κανονικό μέγεθος */

    }

}





/* Στυλ για τον τίτλο */

#banner_top {

    font-size: 48px;

    font-weight: bold;

    color: white;

    text-align: center;

    margin-top: 10px;

    display: block;

    opacity: 0;

    animation: zoomIn 1s ease-in-out forwards; /* Μείωση διάρκειας animation */

    will-change: transform, opacity; /* Ενημέρωση για μελλοντικές αλλαγές */

    backface-visibility: hidden; /* Βελτίωση απόδοσης μετασχηματισμών */

    transform: translateZ(0); /* Επιτάχυνση hardware */

}



/* Εφέ Zoom-In */

@keyframes zoomIn {

    0% {

        opacity: 0;

        transform: scale(0.5) translateZ(0); /* Ξεκινά μικρό */

    }

    100% {

        opacity: 1;

        transform: scale(1) translateZ(0); /* Κανονικό μέγεθος */

    }

}





/* Στυλ για το menu */

.menu {

    position: absolute;

    top: 20%;

    right: 5%;

    z-index: 1000;

}



.rootmenu {

    list-style-type: none;

    margin: 0;

    padding: 0;

    left: 0;

    right: 0;

    top: 0;

    bottom: 0;

    margin: auto;

    position: relative;

    justify-content: center;

    text-align: center;

    font-size: 30px;

    animation: fadeInSlide 2s ease-in-out;

}



@keyframes fadeInSlide {

    0% {

        opacity: 0;

        transform: translateY(-50px); /* Ξεκινά από ψηλά */

    }

    100% {

        opacity: 1;

        transform: translateY(0); /* Τελική θέση */

    }

}





.rootmenu .item {

    

    color: #ecf0f1;

    padding: 10px 20px;

    margin-bottom: 10px;

    border-radius: 4px;

    text-align: center;

    cursor: pointer;

    transition: background-color 0.3s ease;

    display: block;

    text-decoration: none;

    margin: auto;

    position: relative;

    justify-content: center;

    text-align: center;

    font-size: 28px;

    font-style: normal;





    list-style: none;

    list-style-type: none;

    color: rgb(0, 255, 255);



    font-weight: normal;

    font-family: "Comic Sans MS", "sans-serif", cursive;

    cursor: pointer;

}



.rootmenu .item:hover {

    background-color: #34495e;

    margin: auto;

    position: relative;

    justify-content: center;

    text-align: center;

    font-size: 30px;

    list-style: none;

    list-style-type: none;

    color: rgb(255, 153, 0);

    font-family: "Comic Sans MS", "sans-serif", cursive;

    font-weight: 500;



}



/* Στυλ για τα buttons */

button.item {

    background-color: #3498db;

    color: white;

    border: none;

    padding: 10px 20px;

    margin-bottom: 10px;

    border-radius: 4px;

    cursor: pointer;

    transition: background-color 0.3s ease;

}



button.item:hover {

    background-color: #2980b9;

}

/* ARXIKH STYLE */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;500&display=swap');



/* MENU */

.menu {

    box-shadow: rgb(255, 255, 255) 0px 0px 20px 1px;

    left: 15px;

    height: fit-content;

    width: 300px;

    justify-content: center;

    background-color: rgba(31, 31, 31, 0.9);

    padding: 20px;

    border-radius: 20px;

    border: 0;

    outline: 0;

    float: left;

    position: absolute;



}

.online {

    background-color: rgb(0, 0, 0);

    box-shadow: rgb(255, 255, 255) 0px 0px 20px 1px;

    width: 400px;

    height: 250px !important;

    max-height: 250px !important;

    left: 0;

    right: 0;

    bottom: 0;

    top: 0;

    margin: auto;

    position: absolute;

    border-radius: 6px;

    z-index: 999;

}



.rules {

    background-color: rgb(0, 0, 0);

    box-shadow: rgb(255, 255, 255) 0px 0px 20px 1px;

    width: 400px;

    height: 380px !important;

    max-height: 380px !important;

    left: 0;

    right: 0;

    bottom: 0;

    top: 0;

    margin: auto;

    position: absolute;

    z-index: 999;

}



.onlinetxt {

    background-color: rgb(0, 0, 0);

    box-shadow: rgb(255, 255, 255) 0px 0px 20px 1px;

    color: rgb(184, 13, 13);

    font-size: 18px;

    width: 100%;

    resize: none;

    height: 220px !important;

    outline: none;

    box-shadow: none;

    bottom: 0;

    overflow: hidden;

    white-space: pre-line;

    -webkit-hyphens: none;

    -moz-hyphens: none;

    -ms-hyphens: none;

    hyphens: none;

    overflow-y: scroll;

    scrollbar-width: thin;

    word-break: break-all;

    z-index: 10;

    -webkit-text-size-adjust: 100%;

    -ms-text-size-adjust: 100%;

    font-family: math;

    -webkit-box-shadow: 0 0 0 3px rgba(255, 148, 71, .45);

    box-shadow: 0 0 0 3px rgba(255, 148, 71, .45)

}



.rulestxt {

    background-color: rgb(0, 0, 0);

    box-shadow: rgb(255, 255, 255) 0px 0px 20px 1px;

    color: white;

    font-size: 16px;

    width: 400px;

    height: 350px !important;

    max-height: 350px !important;

    resize: none;

    height: calc(600px - 20px);

    outline: none;

    box-shadow: none;

    bottom: 0;

    scrollbar-width: thin;

    font-family: "Verdana", "Helvetica", Sans-serif;

}



.rulestxt:hover {

    outline: none;

    box-shadow: none;

}



.title {

    height: fit-content;

    padding: 10px;

    text-align: left;

    line-height: 12px;



    font-weight: bold;

    font-size: large;



    background-color: dodgerblue;

    color: white;

}



master {

    text-align: center;

    font-weight: bold;

    font-size: large;

    color: #fff;

    font-family: "Kanit";

    font-size: 40px;

    line-height: 1em;

    margin: 0;

    position: absolute;

    text-align: center;

    transform: translateY(-50%);

    width: 100%;

    text-shadow: 0 1px 0 #111, 0 2px 0 #111, 0 3px 0 #111, 0 4px 0 #111, 0 5px 0 #111, 0 6px 0 #111, 0 7px 0 #111, 0 8px 0 #111, 0 0 5px rgba(230, 139, 139, 0.05), 0 -1px 3px rgba(230, 139, 139, 0.2), 0 9px 9px rgba(230, 139, 139, 0.3), 0 12px 12px rgba(230, 139, 139, 0.3), 0 15px 15px rgba(230, 139, 139, 0.3);

}



#banner_bottom {

    bottom: 100px;

}



#banner_top {

    top: 100px;

    font-weight: bold;

    font-size: 70px;

    text-transform: capitalize;

}



.closeBtn {

    background-image: url('../images/x.png');

    background-size: contain;

    background-repeat: no-repeat;

    width: 20px;

    height: 20px;

    float: right;

    cursor: pointer;

}

.visually-hidden { 

    position: absolute; 

    width: 1px; 

    height: 1px; 

    padding: 0; 

    margin: -1px; 

    overflow: hidden; 

    clip: rect(0, 0, 0, 0); 

    white-space: nowrap; 

    border: 0; 

}

/* Rooms Panel Styles */
.rooms {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 500px;
    background-color: rgba(26, 26, 46, 0.95);
    border: 2px solid #4e54c8;
    border-radius: 10px;
    z-index: 10000;
    display: none;
    box-shadow: 0 0 30px rgba(78, 84, 200, 0.5);
}

.rooms .title {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: white;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    cursor: move;
    text-align: center;
}

.roomstxt {
    padding: 15px;
    height: calc(100% - 50px);
    overflow-y: auto;
    color: white;
    font-family: Arial, sans-serif;
}

.room-features {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.room-password {
    color: #ff6b6b !important;
    font-weight: bold;
}



.room-default {
    border-left-color: #00ff00 !important;
}


/* Προσθήκη στο CSS */
.room-item.selected {
    border: 2px solid #00ff00 !important;
    background-color: rgba(0, 255, 0, 0.1) !important;
    transform: scale(1.02);
}
.room-private {
    color: #ffa500 !important;
    font-weight: bold;
}

.room-item[data-is-private="true"] {
    border-left: 4px solid #ffa500 !important;
    background-color: rgba(255, 165, 0, 0.05);
}

.room-item[data-is-private="true"]:hover {
    background-color: rgba(255, 165, 0, 0.1);
}
.room-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.room-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.2);
}

.featured-room {
    border-left: 4px solid #ffd700;
    background-color: rgba(255, 255, 255, 0.1);
}

.default-room {
    border-left: 4px solid #007bff;
}

.featured-badge, .default-badge {
    position: absolute;
    top: 50px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.featured-badge {
    background: #ffd700;
    color: #000;
}

.default-badge {
    background: #007bff;
    color: white;
}

.room-image img, .room-banner img {
    max-width: 100%;
    max-height: 100px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.room-name {
    font-weight: bold;
    font-size: 16px;
    color: #1bff00;
}

.room-users {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.room-details {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}



.room-feature {
    display: inline-block;
    background: #020d40;
    padding: 2px 6px;
    margin: 2px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid #dee2e6;
}

.room-meta {
    margin-top: 8px;
    color: #cfcfcf;
    font-size: 11px;
}

.room-full {
    opacity: 0.6;
    background: #f8f9fa;
}