body {
  margin: 0px 8px;
  font-family: 'Courier New', monospace;
}

body, div, button {
  font-size: 1rem;
}

h2 {
  font-weight: 100;
  font-size: 2.1em;
  text-align: center;
}

a {
  color: #c0c0c0;
  font-size: 1.1em;
  margin: 0 0.5em 0 0.5em;
}

/* Header */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #b2b2b2;
  color: white;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.header-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(69, 69, 69, 0.7);
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  color: white;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-button:hover {
  background: rgba(69, 69, 69, 0.8);
  transform: translateY(-2px);
}

.question-circle {
  width: 1.5rem;
  height: 1.5rem;
  background: white;
  color: #454545;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

.room-id {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 15px;
  border-radius: 5px;
  display: none; /* Hidden by default */
  cursor: copy;
}

/* Home */

.home-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 3em;
}

@media (min-width: 970px) {
  .home-container {
    flex-direction: row;
  }
}

.home-container.simple {
  flex-direction: column;
}

.home-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 2em 0 2em;
}

.home-logo {
  margin: 2.5em 0 2.5em;
}

/* Video container */

.video-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 640px; /* Prevents video from being too big */
  aspect-ratio: 4/3; /* 320x240 = 4:3 aspect ratio */
  margin: 20px auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: #000;
}

#localVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

#remoteVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.logo {
  width: 130px;
  height: 130px;
  overflow: hidden;
  border-radius: 24px;
  position: absolute;
}

#screenShareButton {
  position: absolute;
  margin: 58% 0 0;
}

/* Footer */

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10em 1em 1.5em 1em;
}

/* Controls */

.controls-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.controls {
  display: grid;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  max-width: 640px;
  width: 100%;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: rgba(69, 69, 69, 0.7);
  color: white;
  max-width: 300px;
}

.btn:hover {
  background-color: rgba(69, 69, 69, 0.9);
  transform: translateY(-2px);
}

.copy-btn {
  display: none; /* Hidden by default */
}

.copy-btn:hover {
  transform: translateY(-2px);
}

.copy-btn.copied {
  background-color: #9b59b6;
}

/* Tutorial section */

.tutorial-section {
  margin-top: 40px;
  padding: 20px;
  background-color: #b2b2b2;
  border-radius: 15px 15px 0px 0px;
  position: relative;
  overflow: hidden;
}

.tutorial-section h2 {
  text-align: center;
  color: #454545;
  margin-bottom: 30px;
  font-size: 28px;
}

.tutorial-steps {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.step {
  position: relative;
  margin-bottom: 20px;
  padding: 20px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: #454545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.step-content {
  line-height: 1.5;
  color: #2c3e50;
}

.step-content strong {
  color: #454545;
  background-color: rgba(69, 69, 69, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin-top: 10px;
  border-radius: 0 4px 4px 0;
  color: #856404;
}

/* Join room */

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4a5568;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: #4299e1;
}

/* Feature list */

.feature-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 2em 1em 0 1em;
  width: 100%;
  max-width: 640px;
  position: relative;
}

.feature-row {
  display: flex;
  width: 100%;
  z-index: 1;
}

.feature-row.right {
  justify-content: end;
}

.feature-row.left {
  justify-content: start;
}

.feature-row.col {
  flex-direction: column;
}

.feature-item {
  margin: 0 0 2em;
  font-size: 1.2em;
  max-width: 270px;
  background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 540px) {
  .feature-item {
    margin: 0 0 4.5em;
  }
  .home-logo {
    margin: 0 0 1em;
  }
  .nav {
    flex-direction: column;
    margin: 1em 1em 1.5em 1em;
  }
  h2 {
    font-size: 1.7em;
  }
}

.feature-item.large {
  max-width: 100%;
  padding: 0.1em 0 0.1em;
  margin: 0 0 0.5em;
}
