/* Tablet Frame */
.landscape-tablet {
  width: 100%; /* Avoids horizontal overflow on mobile */
  height: 75vh;
  background-color: #000;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  margin: 0 auto; /* Center horizontally */
  padding: 0;
}

/* Tablet Screen */
.tablet-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Add background image behind the content */
.tablet-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('images/giraffe-wild_23-2151708966.jpg'); /* Update the path */
  background-size: cover;
  background-position: center;
  z-index: 0; /* Behind screen content */
  opacity: 0.29; /* 70% transparent */
}


/* Optional dark overlay for readability */
.tablet-screen::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1; /* Still behind the content, but over image */
}

/* Screen Content */
.screen-content {
  color: white;
  text-align: center;
  padding: 60px;
  animation: fadeIn 1s ease-in;
  position: relative;
  z-index: 2; /* On top of image and overlay */
}

.screen-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}



/* Title Styling */
.screen-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: white;  /* Ensure the title is white */
}

.screen-content p {
  font-size: 22px;
  color: white;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
}

/* Home Button */
.home-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: #444;
  border-radius: 50%;
  box-shadow: inset 0 0 5px #000;
  z-index: 2;
}

/* Power Button */
.power-button {
  position: absolute;
  top: 200px;
  right: -10px;
  width: 5px;
  height: 80px;
  background: #555;
  border-radius: 10px;
  z-index: 3;
}

/* Camera Notch */
.camera-notch {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background: #444;
  border-radius: 50%;
  box-shadow: inset 0 0 3px #000;
  z-index: 3;
}

/* Side Speakers */
.speaker-dots.left,
.speaker-dots.right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.speaker-dots.left {
  left: 10px;
}

.speaker-dots.right {
  right: 10px;
}

.speaker-dots span {
  width: 6px;
  height: 6px;
  background: #555;
  border-radius: 50%;
}

/* Glass Reflection Effect */
.tablet-screen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
  .landscape-tablet {
    width: 95vw;  /* Adjust width to 95% of the screen width */
    height: calc(50vh); /* Adjust height to 50% of the screen height */
  }

  .screen-content h1 {
    font-size: 40px;
  }

  .screen-content p {
    font-size: 18px;
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .landscape-tablet {
    width: 95vw;  /* Adjust width to 95% of the screen width */
    height: calc(45vh); /* Adjust height to 45% of the screen height */
  }

  .screen-content h1 {
    font-size: 30px;
  }

  .screen-content p {
    font-size: 16px;
    max-width: 600px;
  }

  .power-button {
    top: 150px;
    right: -5px;
  }

  .home-button {
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .landscape-tablet {
    width: 95vw;  /* Adjust width to 95% of the screen width */
    height: calc(35vh); /* Adjust height to 35% of the screen height */
  }

  .screen-content h1 {
    font-size: 24px;
  }

  .screen-content p {
    font-size: 14px;
    max-width: 500px;
  }

  .home-button {
    width: 40px;
    height: 40px;
  }

  .power-button {
    top: 100px;
  }

  .speaker-dots.left,
  .speaker-dots.right {
    gap: 5px;
  }
}





/* Status Bar */
.status-bar {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  font-size: 14px;
  color: white;
  z-index: 3;
}

/* Time */
.status-bar .time {
  margin-left: 10px;
}

/* Battery icon */
.status-bar .battery {
  font-size: 18px;
  color: white;
  margin: 0 10px;
}

/* Text after the Battery icon */
.status-text {
  font-size: 12px;
  font-style: italic;
  color: white;
  opacity: 0.8;
  margin-right: 10px;
}

/* Notifications - visible only on desktop */
.notifications {
  font-size: 17px;
  color: white;
  font-weight: bold;
  margin-left: 20px;
  opacity: 0.9;
  display: none; /* Hide notifications by default */
}

/* Show notifications only on desktop */
@media (min-width: 1024px) {
  .notifications {
    display: block;
    position: absolute;
    top: 35px; /* Adjust top position to prevent overlap */
    left: 150px; /* Adjust the horizontal position */
    max-width: 300px;
  }
}


/* CSS for notification messages */
.notification-message {
  opacity: 1;
  transition: opacity 1s ease-in-out;
  padding: 10px;
  margin: 5px 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 5px;
}


/* Screen Content */
.screen-content {
  color: white;
  text-align: center;
  padding: 60px;
  animation: fadeIn 1s ease-in;
  position: relative;
  z-index: 2; /* On top of image and overlay */
  max-width: 90%; /* Limit width to 90% of the container */
  word-wrap: break-word; /* Ensure the text wraps inside */
  overflow-wrap: break-word; /* Break long words to avoid overflow */
  box-sizing: border-box;
  margin: 0 auto; /* Center horizontally */
}

/* Optional: Ensure that the container doesn’t expand beyond its bounds */
.screen-content div {
  display: inline-block; /* Ensures the content doesn't stretch horizontally */
}



.spinning-logo {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 80px;
  height: 80px;
  z-index: 3;
  animation: moveAndSpin 5s ease-in-out forwards;
}

@keyframes moveAndSpin {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(70vw, -70vh) rotate(1440deg);
    opacity: 1;
  }
}



/* Hide spinning logo on small screens */
@media (max-width: 768px) {
  .spinning-logo {
    display: none;
  }
}



.africa-map-wrapper {
  position: fixed;
  top: 50%;
  right: 0; /* Changed from left to right */
  transform: translateY(-50%);
  width: 300px;
  max-width: 30vw;
  z-index: 10;
  display: none; /* Hide on phones */
}

@media screen and (min-width: 768px) {
  .africa-map-wrapper {
    display: block;
  }
}

.africa-map {
  width: 100%;
  height: auto;
  display: block;
}

.kenya-highlight {
  position: absolute;
  top: 54%;
  left: 68%;
  transform: translate(-50%, -50%);
  background: #ffcc00;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

/* Pulsing effect to draw attention */
@keyframes pulse {
  0%, 100% { transform: scale(1) translate(-50%, -50%); }
  50% { transform: scale(1.1) translate(-50%, -50%); }
}



/* Container for the app icons */
.app-icons {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  margin-left: 20px;
}

/* App icon styles */
.app-icon {
  width: 50px;
  height: 50px;
  margin: 10px 0;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* WhatsApp icon */
.app-icon.whatsapp {
  background-image: url('images/pngtree-whatsapp-icon-png-image_6315990.png'); /* Add your icon here */
}

/* Instagram icon */
.app-icon.instagram {
  background-image: url('images/Instagram-Icone.png'); /* Add your icon here */
}

/* Google icon */
.app-icon.google {
  background-image: url('images/google-icon.png'); /* Add your icon here */
}

/* Facebook icon */
.app-icon.facebook {
  background-image: url('images/facebook-icon.png'); /* Add your icon here */
}

/* Gmail icon */
.app-icon.gmail {
  background-image: url('images/gmail-icon.png'); /* Add your icon here */
}

/* Hover effect on icons */
.app-icon:hover {
  transform: scale(1.1);
}









/* General Styling for the Game Container */
.game-container {
  position: fixed;
  top: 20%; /* Adjusting top to create space between the top of the screen and the container */
  left: 0;
  transform: translateY(0);
  width: 220px; /* Reduced width for a smaller container */
  max-width: 100%;
  background: rgba(255, 255, 255, 0.7); /* 70% transparent white */
  padding: 10px; /* Smaller padding for a more compact container */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 50;
  font-size: 12px; /* Smaller font size for compact text */
}

/* Styling for the options and other elements inside the game */
h2 {
  text-align: center;
  font-size: 9px; /* Smaller font size for headings */
  margin-bottom: 5px; /* Reduced space between heading and options */
}

.step {
  margin-bottom: 12px; /* Reduced bottom margin */
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.option {
  background: #eee;
  padding: 6px 12px; /* Smaller padding for options */
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px; /* Smaller font size for options */
}

.option.selected {
  background: #ffcc00;
  color: #000;
  font-weight: bold;
}

.result {
  text-align: center;
  display: none;
}

.result button {
  margin-top: 8px; /* Reduced top margin */
  padding: 6px 12px; /* Smaller button padding */
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px; /* Smaller font size for button */
}

/* Make sure the game container is hidden on small screens (max-width 768px) */
@media screen and (max-width: 768px) {
  .game-container {
    display: none;
  }
}

/* Tablet screen styling for proper positioning */
@media screen and (min-width: 768px) {
  .tablet-screen {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start; /* Align items to the left */
    align-items: center;
    padding-left: 20px; /* Ensure padding to the left */
  }
}
