/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,body {
  font-family: Arial, sans-serif;
  overflow: hidden;
}

/* Container Layout */
.container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  height: calc(var(--vh, 1vh) * 100); /* Ensure that 100vh is correctly calculated */
  background-color: rgb(0, 0, 0);
}

.left-section {
  background-color: #f0f0f0;
  width: 50%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.left-section h1, .left-section h2, .left-section h3 {
  text-align: center;
}

.left-section h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.left-section h2 {
  font-size: 1.5em;
  margin-bottom: 30px;
}
.right-section {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  margin-left: 180px;

}

.icon-container {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.icon-box img {
  width: 50px;
  height: 50px;
  background-color: #f0f0f0;
  border-radius: 50%;  
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
  transition: all 0.3s ease-in-out;
  padding: 5px;
}

.icon-box img:hover {
  transform: scale(1.1); 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

/* Bubbles Canvas Styling */
#bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Position the canvas behind everything */
}

#luck-checker {
  margin-top: 20px;
  text-align: center;
}

/* Luck bar styling */
canvas {
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Media Query for smaller screens */
@media (max-width: 768px) {

  .container {
    flex-direction: column-reverse;
    background-color: rgb(0, 0, 0);
    background-image: url("assets/quoteOne.png");
    background-size: 90% auto;
    object-fit: contain;
    background-position: center 20%;
    background-repeat: no-repeat;
  }

  .right-section {
    width: 100%;
  }

  .right-section img {
    height: 300px;
    width: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid rgb(197, 197, 197);
    z-index: 99;
  }

  .left-section {
    width: 100%;
    clip-path: none;
    border-radius: 50px 50px 0 0;
    overflow: hidden;
    position: relative;
    min-height: 60%;
    justify-content: flex-start;
    bottom: 0;
  }
  .description-details h1{
    margin-top: 120px;
    font-size: 2rem;
  }

  .icon-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }
  .description, .icon-container, #luck-checker{
    z-index: 99;
  }
  #bubble {
    width: 100%;
    height: 100%;
    z-index: 1;
  }

}