/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
/*  font-family: Arial, Helvetica, sans-serif;*/
  font-family: Montserrat, sans-serif;
}

body {
  background: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 1rem;
}

.container {
  /* width: 100%; */
  max-width: 450px;
}

/* Title */
.logo {
  font-size: 2rem;
  color: #ffcc00;
  margin-bottom: 1rem;
}

/* Card */
.card {
  background: transparent;
  padding: 1.5rem;
  /* border-radius: 12px; */
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); */
  margin-bottom: 1.5rem;
  max-width: 75%;
  text-align: center;
  margin: auto;
  border: 10px solid rgb(54, 47, 37);
  padding: 26px;
}

.input-box {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 15px;
  text-align: center;
  background: rgb(186, 186, 186);
  padding: 11px;
  text-align: center;
  border-radius: 6px;
  border: navajowhite;
  color: black !important;
  height: auto;
}

/* Buttons */
.btn {
  width: 100%;
  /* padding: 0.5rem; */
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 100;
  transition: all 0.2s ease;
}

.btn:hover {
  /* opacity: 0.9; */
}

.avatar-btn {
  background: rgb(12, 0, 255) !important;
  color: #fff;
}

.play-btn {
  background: #00cc44;
  color: #fff;
}

.private-btn {
  background: #ff6600;
  color: #fff;
}

/* Icon inside avatar button */
.icon {
  margin-right: 8px;
}

/* Road preview */
.road-preview img {
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  margin: 1rem auto;
  display: block;
}

/* Footer */
footer {
  margin-top: 1rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

footer a {
  color: #ccc;
  text-decoration: underline;
  font-size: 0.9rem;
  font-weight: 600;
}

footer a:hover {
  color: #fff;
}

footer p {
  font-size: 0.8rem;
  color: #ffcc00;
  margin-top: 1.5rem;
}

/* Responsive Tweaks */
@media (min-width: 768px) {
  .container {
    max-width: 640px;
  }

  .logo {
    font-size: 2.5rem;
  }

  .btn {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 824px;
  }

  .logo {
    font-size: 3rem;
  }

  .btn {
    /* font-size: 1.2rem; */
  }
}
/* Modal Background */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Modal Box */
.modal-content {
  background: #222;
  padding: 1.5rem;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  color: #fff;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  /* overflow-y: scroll; */
  border: 1px solid #ffc107;
}

/* Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #000000;
  background: #ffc107;
  border-radius: 50%;
  width: 35px;
  height: 36px;
  line-height: 36px;
}

/* Emoji Grid */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 10px;
  margin-top: 1rem;
}

.emoji-grid span img{
  width: 3rem;
}

.emoji-grid span:hover {
  transform: scale(1.2);
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.logo {
  text-align: center; /* center the logo */
  margin: 20px 0;     /* space above and below */
}

.logo img {
  max-width: 200px;   /* adjust max width as needed */
  width: 50%;         /* responsive width */
  height: auto;       /* maintain aspect ratio */
}
/* Video Container Positioning */
.video-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Play/Pause Button */
.video-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  padding: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2;
}

/* Hover Effect */
.video-toggle:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-toggle {
    font-size: 2rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .video-toggle {
    font-size: 1.8rem;
    padding: 12px;
  }
}
button#openModal:hover {
    background: #004cbc !important;
}
button.play-btn:hover {
    background: #10f95e !important;
}
button.private-btn:hover {
    background: #ff6600e3 !important;
}
div#avatarModal h2 {
    font-size: 20px;
    border-bottom: 1px so;
    color: #ffc107;
    text-align: center;
    font-weight: 600;
    text-decoration: underline;
}
img#selectedImage {
    width: 29px;
    margin-right: 6px;
    /* border: 2px solid #ffc107; */
    /* background: #ffc107; */
    border-radius: 50%;
}
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}
@media (min-width: 820px) {
    .container {
        max-width: 798px;
    }
    .emoji-grid span img {
        width: 4rem;
    }
}
@media (min-width: 852px) {
    .container {
        max-width: 675px;
    }
    .emoji-grid span img {
        width: 4rem;
    }
}
