@font-face {
  font-family: 'talkoSS';
  src: url('/fonts/Sansation_Light.ttf');
}
@font-face {
  font-family: 'talkoSS';
  src: url('/fonts/Sansation_Bold.ttf');
  font-weight: bold;
}
@font-face {
  font-family: 'talkoText';
  src: url('/fonts/dited.otf');
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: talkoSS, Arial, sans-serif;
  background-color: #202020;
}

.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.left-panel, .right-panel {
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

.left-panel {
  width: 320px;
  background-color: #616161;
  color: white;
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  margin-top: 23px;
  height: calc(100vh - 23px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.left-panel::-webkit-scrollbar { width: 0; height: 0; background: transparent; }

.left-panel > * {
  width: 100%;
  box-sizing: border-box;
  padding-left: 18px;
  padding-right: 18px;
}

.panel-header, .known-as-section, .createRoom {
  padding-left: 0;
  padding-right: 0;
}

#logform input, #lobbyForm input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

.panel-header {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 8px;
}

.panel-header .talkomatic {
  font-family: talkoSS, Arial, sans-serif;
  font-weight: bold;
  font-size: 24px;
  color: #FF9800;
  margin-right: 5px;
}

.panel-header .lobby {
  font-family: talkoSS, Arial, sans-serif;
  font-weight: normal;
  font-size: 24px;
  color: white;
}

.external-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.external-links a {
  color: white;
  text-decoration: underline;
  margin-bottom: 5px;
  font-size: 15px;
  transition: color 0.3s ease;
}
.external-links a:visited { color: white; }

.known-as-section {
  background-color: #FDF5E6;
  padding: 18px;
}
.known-as-section p {
  color: black;
  margin: 0;
  font-weight: bold;
}

#logform {
  margin-top: 20px;
  padding: 0 18px;
  position: relative;
  padding-bottom: 55px;
}
#logform form {
  display: flex;
  flex-direction: column;
}
#logform input {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #fff;
  background-color: white;
  font-size: 16px;
  font-family: talkoSS, Arial, sans-serif;
}
#logform button {
  position: absolute;
  bottom: 0;
  right: 18px;
  width: 100px;
  padding: 12px 16px;
  background-color: #000000;
  color: white;
  border: 1px solid #FF9800;
  cursor: pointer;
  font-family: talkoSS, Arial, sans-serif;
  font-size: 12px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
#logform button .arrow-icon { margin-left: 5px; height: 14px; width: 14px; }
#logform button:hover { background-color: #CCCCCC; border-color: #FF9800; }

.createRoom {
  background-color: #FDF5E6;
  padding: 18px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.createRoom p { color: black; margin: 0; font-weight: bold; flex: 1; }
.createRoom .learn-more {
  color: #ffffff;
  background-color: #616161;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}
.createRoom .learn-more:hover { color: #F57C00; text-decoration: underline; }

#lobbyForm {
  margin-top: 20px;
  padding: 0 18px;
  position: relative;
  padding-bottom: 50px;
}
#lobbyForm input[type="text"] {
  width: 90%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #fff;
  background-color: white;
  font-size: 16px;
  font-family: talkoSS, Arial, sans-serif;
}
#lobbyForm .radio-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}
#lobbyForm .radio-group label {
  margin-bottom: 10px;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
#lobbyForm .radio-group input[type="radio"] { margin-right: 10px; }
#lobbyForm .radio-group .radio-icon { width: 20px; height: 20px; margin-right: 10px; }
#lobbyForm p { color: white; margin-bottom: 10px; }

.button-container {
  position: absolute;
  bottom: 20px;
  right: 18px;
  margin-top: 20px;
}
.go-chat-button {
  padding: 12px 16px;
  background-color: #000000;
  color: white;
  border: 1px solid #FF9800;
  border-radius: 4px;
  cursor: pointer;
  font-family: talkoSS, Arial, sans-serif;
  font-size: 14px;
  transition: background-color 0.3s ease;
}
.go-chat-button:hover { background-color: #F57C00; }

.right-panel {
  flex-grow: 1;
  background-color: #202020;
  color: white;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
}
.right-panel h2 {
  font-family: talkoSS, Arial, sans-serif;
  font-weight: normal;
  font-size: 25px;
  color: #FF9800;
  margin-bottom: 40px;
  padding-left: 8px;
}

#signInMessage { padding-left: 20px; }
#noRoomsMessage { padding-left: 20px; }

.roomList {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.rooms { flex-grow: 1; }

.room {
  background-color: #000000;
  padding: 8px 8px 0 8px;
  position: relative;
  border-top: 1px solid white;
}
.room-top { display: flex; flex-direction: column; }
.room-info { width: 100%; }
.room-name { font-size: 16px; color: #ffffff; font-weight: bold; margin-bottom: 5px; }
.room-details { font-size: 14px; color: #01ffff; margin-bottom: 5px; }
.users-detail { display: flex; flex-direction: column; margin-bottom: 8px; }
.users-detail div { font-size: 15px; color: #ffffff; margin-bottom: 4px; }
.users-detail .user-number { color: #ffffff; margin-right: 5px; }
.users-detail .user-name { color: #FF9800; }

.enter-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #000000;
  color: white;
  border: 1px solid #FF9800;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-family: talkoSS, Arial, sans-serif;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.enter-button:hover { background-color: #FF9800; color: #000000; }
.enter-button:disabled { cursor: not-allowed; }

.copyright-info {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.copyright-info .version { color: #FF9800; margin-right: 5px; }
.copyright-info .dot { margin: 0 5px; }

.toggle-button, .hide-menu-button {
  display: none;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-family: talkoSS, Arial, sans-serif;
  transition: opacity 0.3s ease-in-out;
}
.toggle-button {
  position: fixed;
  top: 23.5px;
  left: 0;
  z-index: 1001;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: #9E9E9E;
  font-size: 18px;
  padding: 10px 15px 10px 10px;
  opacity: 1;
  transition: left 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.toggle-button::after { content: '≡'; margin-left: 10px; font-size: 24px; }
.hide-menu-button {
  margin-bottom: 10px;
  background-color: #616161;
  width: 100%;
  color: white;
  padding-top: 20px;
  padding-left: 15px;
  text-align: left;
  font-size: 18px;
}
.hide-menu-button:hover { background-color: #CCCCCC; color: black; }

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.modal.show { display: flex; opacity: 1; }
.modal-content {
  background-color: #202020;
  margin: auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: 1px solid #616161;
  color: white;
  font-family: talkoSS, Arial, sans-serif;
}
.close-modal {
  position: absolute;
  right: 1rem; top: 1rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: #FF9800;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #616161;
  border-radius: 4px;
  background-color: #000000;
}
.close-modal:hover { background-color: #FF9800; color: #000000; }
.modal h2 { color: #FF9800; font-size: 24px; margin-bottom: 2rem; font-weight: normal; padding-right: 40px; }
.modal-section { margin-bottom: 2.5rem; }
.modal-section h3 { color: #FF9800; margin-bottom: 1.5rem; font-size: 20px; font-weight: normal; }
.room-type-info, .layout-info { display: grid; gap: 1.5rem; margin-top: 1rem; }
.type-item, .layout-item {
  background-color: #000000;
  padding: 1.5rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #616161;
  transition: border-color 0.3s ease;
}
.type-item:hover, .layout-item:hover { border-color: #FF9800; }
.info-icon { width: 32px; height: 32px; margin-bottom: 1rem; }
.type-item h4, .layout-item h4 { margin: 0.5rem 0; color: #FF9800; font-size: 18px; font-weight: normal; }
.type-item p, .layout-item p { margin: 0; color: #ffffff; font-size: 15px; line-height: 1.5; }

.creator { color: #ffffff; font-size: 14px; }
.creator-link { color: #ffffff; text-decoration: none; transition: all 0.2s ease; }
.creator-link:visited { color: #ffffff; }
.creator-link:hover { text-decoration: underline; color: #c7c7c7; }

@media (min-width: 768px) {
  .room-type-info { grid-template-columns: repeat(3, 1fr); }
  .layout-info { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .container { flex-direction: column; }
  .left-panel {
    position: fixed;
    top: 0; left: 0;
    height: 100%;
    width: 320px;
    max-width: 100%;
    z-index: 1000;
    transform: translateX(-100%);
    padding-top: 60px;
    margin-top: 0;
    overflow-y: auto;
  }
  .left-panel.open { transform: translateX(0); }
  .right-panel { width: 100%; height: 100vh; padding-top: 80px; }
  .toggle-button, .hide-menu-button { display: block; }
  .toggle-button { opacity: 1; position: fixed; top: 23.5px; left: 0; z-index: 1002; }
  .right-panel h2 { padding-left: 12px; }
  .hide-menu-button {
    position: fixed;
    top: 0; left: 0;
    width: 320px;
    z-index: 1001;
    margin-bottom: 0;
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

@media (max-width: 600px) {
  .copyright-info { flex-direction: column; }
  .copyright-info .dot { display: none; }
  .left-panel { width: 100%; }
  .hide-menu-button { width: 100%; }
}

@media (max-height: 600px) {
  .left-panel { overflow-y: auto; }
  #lobbyForm { padding-bottom: 100px; }
  .button-container { bottom: 40px; }
}
