/* General styles for the selector page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    position: relative; /* Needed to position icons at absolute positions */
}

/* Container styling for the main calculator */
.container {
    width: 90%;
    max-width: 350px;
    background-color: #ffffff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    border-top: 5px solid #a4e053;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: relative; /* Make container the reference point for positioning icons */
}

/* Logo styling */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 100px;
    height: auto;
}

/* Title and message styles */
h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #333333;
}

.message-area {
    text-align: center;
    font-size: 14px;
    color: #555555;
    margin-top: 20px;
}

/* Selector Buttons Styling */
.selector-buttons {
    display: flex;
    flex-direction: column;  /* Stack buttons vertically */
    justify-content: center;  /* Vertically center buttons */
    align-items: center;  /* Horizontally center buttons */
    margin-top: 20px;
    gap: 10px;  /* Add some space between buttons */
}

.selector-buttons button {
    background-color: #a4e053;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 12px;
    text-transform: uppercase;
    border-radius: 5px;
    width: 100%;  /* Make buttons take full width of their container */
    max-width: 330px;  /* Limit maximum width to avoid overly large buttons */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center; /* Ensure button text is center-aligned */
}

.selector-buttons button:hover {
    background-color: #88c440;
    transform: scale(1.05);
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 0;
  padding-bottom: 125%; /* 4:5 aspect ratio */
  overflow: hidden;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  background-color: #ffffff;
}

/* Video element */
.video-container video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mute Button Styling */
.mute-btn {
    position: absolute;
    bottom: 10px;  /* Position it at the bottom */
    right: 10px;   /* Position it at the right */
    background: none;  /* Remove the background */
    border: none;
    padding: 0;   /* No padding */
    cursor: pointer;
    font-size: 24px;  /* Icon size */
    color: white;  /* Icon color */
    z-index: 10;  /* Ensure the button is on top of the video */
}

.mute-btn:hover {
    opacity: 0.7;  /* Slightly decrease opacity when hovered */
}

/* WhatsApp Icon Styling (Right) */
.whatsapp-icon {
  position: absolute;
  top: 10px; /* Adjust vertical position */
  right: 10px; /* Position on the right */
  width: 40px; /* Size of the icon */
  height: auto;
  cursor: pointer;
  z-index: 1000; /* Ensure the icon is above other content */
}

/* Instagram Icon Styling (Right, placed to the left of WhatsApp) */
.insta-icon {
  position: absolute;
  top: 10px; /* Same vertical position */
  right: 60px; /* 40px (icon width) + 10px gap from WhatsApp icon; adjust as needed */
  width: 40px;
  height: auto;
  cursor: pointer;
  z-index: 1000;
}

/* Share Icon Styling (Left) */
.share-icon {
  position: absolute;
  top: 10px; /* Adjust vertical position */
  left: 10px; /* Position on the left */
  width: 40px; /* Size of the icon */
  height: auto;
  cursor: pointer;
  z-index: 1000;
}

/* New WhatsApp Icon (Bottom Right) - Fixed to the viewport */
.whatsapp-icon-bottom {
  position: fixed;
  bottom: 10px;     /* 10px from bottom of viewport */
  right: 10px;      /* 10px from right of viewport */
  width: 65px;      /* Reduced width for a more proportionate size */
  height: auto;
  cursor: pointer;
  z-index: 10000;   /* Ensure it stays above other content */
}

/* Shaking animation keyframes remain unchanged */
@keyframes shake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 2px); }
  50% { transform: translate(0, 0); }
  75% { transform: translate(2px, -2px); }
  100% { transform: translate(0, 0); }
}

/* Shake class */
.shake {
  animation: shake 0.5s ease-in-out;
}

/* Responsive styles for smaller screens */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        width: 95%;
        padding: 15px;
        margin-top: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    h2 {
        font-size: 18px;
    }

    button {
        font-size: 14px;
        padding: 10px;
    }
}
