html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-image: url("/img/icons/bg.webp");
  background-size: cover;
  background-attachment: fixed;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  letter-spacing: 1px;
  line-height: 2em;
  margin: 0;
  text-align: center;
}

h1 {
  font-size: 30px;
  color: #fff;
  margin-top: 30px;
}

h1 label {
  display: block;
  margin-top: 10px;
}

h2 {
  font-size: 36px;
  font-weight: bold;
  text-transform: uppercase;
  color: lightgray;
  background-color: rgba(0, 23, 66, 0.5);
  padding: 10px 20px;
  margin: 40px 0;
  width: 100%;
  border-top: 2px solid #a3a3a3;
  border-bottom: 2px solid #a3a3a3;
}

h3 {
  font-size: 24px;
  color: royalblue;
  margin-bottom: 1em;
}

p {
  line-height: 1.5em;
  margin-bottom: 1em;
}

a {
  text-decoration: none;
  color: inherit;
  display: block;
}

#error-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffdddd;
  color: red;
  padding: 20px;
  border: 1px solid red;
  border-radius: 5px;
}

/* BUTTON STYLES */
.animated-button,
#animated-button {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  border: none;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: #ffffff40;
  box-shadow: 0 0 0 2px #ffffff20;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button span:first-child,
#animated-button span:first-child {
  position: relative;
  z-index: 10;
}

.animated-button span:last-child,
#animated-button span:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #2196F3;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover,
#animated-button:hover {
  box-shadow: 0 0 0 5px #2195f360;
  color: #ffffff;
}

.animated-button:active,
#animated-button:active {
  transform: scale(0.95);
}

.animated-button:hover span:last-child,
#animated-button:hover span:last-child {
  width: 150px;
  height: 150px;
  opacity: 1;
}

/* STRUCTURE: CONTAINERS */
.maincontainer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0 20px;
  width: 100%;
}

.texcontainer {
  display: block;
  padding: 0 20px;
  background-color: rgba(47, 51, 64, 0.92);
  width: 100%;
  max-width: 1200px;
  margin: 25px auto 40px;
  border-radius: 25px;
  box-shadow: 0 0 18px rgba(0, 0, 10, 0.65);
  backdrop-filter: blur(5px);
}

.Title {
    background-color: rgba(47, 51, 64, 0.89);
    max-width: 1200px;
    width: 100%;
    margin-top: 64px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0 0 25px 25px;
    text-align: center;
    box-shadow: 0px 0px 18px rgba(0, 0, 10, 0.65);
}

/* CONTENT CARDS */
.cardText, .transpcardText {
  font-family: Suisse, sans-serif;
  font-size: 17px;
  color: lightgray;
  border-radius: 15px;
  padding: 15px;
  overflow: hidden;
  transition: background-color 1200ms ease, background-image 1200ms ease;
}

.cardText {
  backdrop-filter: blur(2px);
  background-color: rgba(0, 0, 0, 0.36);
  border: 1px solid #FFFFFF;
}

.cardText:hover {
  background-color: rgba(0, 0, 0, 0.56);
}

.transpcardText {
  background-color: rgba(0, 0, 0, 0.15);
  padding-left: 40px;
  padding-right: 40px;
  box-shadow: 0 0 18px rgba(0, 0, 10, 0.65);
}

.cardPic {
  color: lightgray;
  background-size: cover;
  border-radius: 15px;
  padding: 15px;
  overflow: hidden;
}

/* COLLAPSIBLE CARD */
.collcard {
  border-radius: 20px;
  overflow: hidden;
  margin: 20px auto;
  width: 100%;
  max-width: 800px;
  background-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 18px rgba(0, 0, 10, 0.65);
  backdrop-filter: blur(5px);
  transition: box-shadow 0.3s ease;
}

.collcard:hover {
  box-shadow: 0 0 24px rgba(0, 0, 10, 0.85);
}

.collcard-header {
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.36);
  cursor: pointer;
}

.collcard-img {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  margin-right: 20px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.collcard-title {
  font-size: 24px;
  color: lightgray;
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0;
}

.collcard-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: rgba(47, 51, 64, 0.92);
  color: lightgray;
  font-family: Suisse, sans-serif;
  transition: max-height 0.6s ease, padding 0.3s ease;
}

.collcard-content p {
  margin-top: 20px;
}

.collcard-content.active,
.collcard-content:target,
.collcard-content.open {
  max-height: 600px;
  padding: 0 20px;
}

#welcomeCard {
    background-image: url(/img/icons/menu.webp);
    width: 100%;
    max-width: 1000px; /* Nagyobb képernyőkön maradjon 1000px */
    height: 400px;
    margin-bottom: 50px;
    margin-top: 130px;
    background-blend-mode: color;
    background-color: rgba(0, 0, 0, 0.30);
    border: 0px;
    text-shadow: #000 1px 0 5px;
}

/* HOVER IMAGE PREVIEW */
.hover-text {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.hover-image {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.hover-text:hover .hover-image {
  display: block;
}

/* IMAGE UPLOAD CONTAINER */
.container {
  width: 90%;
  max-width: 500px;
  margin: 90px auto;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  text-align: center;
}

/* IMAGE GRID */
#uploadedImages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
  justify-items: center;
}

.image-item {
  background: rgba(200, 200, 200, 0.15);
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-frame {
  width: 100%;
  height: 250px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 15px;
}

.image-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
}

.image-frame img:hover {
  transform: scale(1.05);
}

/* COMMENTS SECTION */
.comments-section {
  width: 100%;
  max-width: 500px;
  text-align: left;
}

.comments-list p {
  background: #2e2e2e;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 5px;
  color: #eee;
  font-size: 14px;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.comment-form input[type="text"] {
  flex-grow: 1;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  background-color: #444;
  color: #eee;
  min-width: 0;
}

.comment-form button {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.comment-form button:hover {
  background-color: #45a049;
}

/* DRAG & DROP AREA */
#dropArea {
  border: 2px dashed #4caf50;
  padding: 20px;
  text-align: center;
  color: #bbb;
  margin-bottom: 15px;
  background-color: #222;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

#dropArea.highlight {
  border-color: #76ff03;
  background-color: #333;
}

input[type="file"] {
  display: none;
}

#uploadMessage {
  margin-top: 10px;
  font-weight: bold;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.3s ease-in-out;
}

.lightbox.active {
  display: flex;
}

/* LINK BUBBLES */
.link-bubble,
.link-bubble2 {
  width: 100%;
  max-width: 900px;
  height: 300px;
  margin: 50px auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-bubble:hover,
.link-bubble2:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.bubble-title,
.bubble-title2 {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* VIDEO GALLERY */
.video-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.video-display iframe {
  width: 80vw;
  height: 45vw;
  max-width: 1560px;
  border: 3px solid rgba(0, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
  margin-bottom: 10px;
}

.video-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 70px;
}

.video-thumb {
  width: 180px;
  cursor: pointer;
  text-align: center;
  color: white;
}

.video-thumb img {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.2s;
}

.video-thumb:hover img {
  transform: scale(1.05);
}

.video-thumb.active {
  outline: 2px solid #00bcd4;
  background-color: #1a1a1a;
  border-radius: 6px;
}

/* VIDEO DISPLAY + CHAT */
.video-display-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.video-display {
  flex: 1 1 70%;
  min-width: 320px;
  max-width: 1100px;
}

.video-display iframe {
  width: 100%;
  height: calc(100vw * 9 / 16);
  max-height: 600px;
  border-radius: 12px;
  border: 3px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.video-chat {
  flex: 1 1 25%;
  min-width: 200px;
  max-width: 360px;
  background: #1e1e1e;
  padding: 15px;
  border-radius: 10px;
  color: white;
  max-height: 600px;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
  margin-top: 60px;
}

.video-chat h3 {
  margin-top: 0;
  color: #00bcd4;
  font-size: 1.2em;
}

#chatMessages {
  margin-top: 600px;
}

#chatMessages p {
  margin: 8px 0;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.chat-input {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: none;
  background-color: #2a2a2a;
  color: white;
  font-size: 14px;
  min-width: 0;
}

.chat-input button {
  padding: 8px 12px;
  border: none;
  background-color: #00bcd4;
  color: black;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chat-input button:hover {
  background-color: #00a0b0;
}

/* SHIP INFO */
#ship-info {
  margin: 20px auto 100px;
  background: linear-gradient(to right, #1a1a1a, #2c2c2c);
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  display: none;
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

#ship-info.show {
  display: block;
}

#ship-info h2 {
  font-size: 24px;
  color: #00bcd4;
  margin-bottom: 15px;
}

#ship-info p {
  font-size: 16px;
  margin-bottom: 10px;
}

#ship-info img {
  max-width: 200px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#ship-info .highlight {
  color: #00bcd4;
  font-weight: bold;
}

.ship-select {
  display: block;
  margin: 10px auto;
  padding: 6px 12px;
  background: linear-gradient(to right, #1a1a1a, #2c2c2c);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ship-select select {
  background-color: #0f0f0f;
  color: #f0f0f0;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  appearance: none;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #444;
  transition: all 0.3s ease;
}

.ship-select select:hover {
  background-color: #1e1e1e;
  box-shadow: inset 0 0 0 1px #888;
}

.ship-select select:focus {
  box-shadow: 0 0 0 2px #00bcd4;
}

/* MEDIA QUERY: MOBILOS MEGJELENÍTÉS */
@media (max-width: 768px) {
  .maincontainer,
  .video-display-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px;
  }

  .texcontainer,
  .container,
  .video-display,
  .video-chat,
  .collcard,
  .link-bubble,
  .link-bubble2,
  #ship-info,
  .ship-select,
  #uploadedImages,
  .cardText,
  .transpcardText {
    width: 95% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 10px auto;
    padding: 12px;
  }

  .video-display iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-thumb {
    width: 45vw;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
    padding: 8px;
  }

  h3 {
    font-size: 18px;
  }

  .comment-form,
  .chat-input {
    flex-direction: column;
  }

  .comment-form input,
  .comment-form button,
  .chat-input input,
  .chat-input button {
    width: 100%;
  }

  .bubble-title,
  .bubble-title2 {
    font-size: 1em;
    padding: 10px;
  }

  .link-bubble,
  .link-bubble2 {
    height: 200px;
  }

  .video-chat {
    margin-top: 20px;
    padding: 10px;
    max-height: none;
  }
}

