/**
 * STYLE-MAIN-DIV.CSS
 * Styles the main container and content areas:
 * - Defines the neumorphic styling for the main container
 * - Implements the wave effect at the bottom of the container
 * - Provides responsive design for different screen sizes
 * - Contains animations for content transitions and typewriter effects
 */

/* Main container */
.main-div_bordered {
    width: 1000px;
    margin: 90px auto;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(145deg, #e6e6e6, #f0f0f0);
    box-shadow: 41px 41px 82px #c4c4c4, -41px -41px 82px #ffffff;
    animation: fade-in 2s ease-in-out;
    position: relative;
    overflow: auto;
    z-index: 10;
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Content body */
.content-body {
    padding: 30px;
    margin: 60px auto 150px auto;
    border-radius: 15px;
    background: linear-gradient(145deg, #e6e6e6, #f0f0f0);
    box-shadow: 20px 20px 60px #c4c4c4, -20px -20px 60px #ffffff;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    z-index: 2;
    opacity: 1;
}

/* Ensure that content-body starts slightly translated and transparent for fade-in effect */
.content-body.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Wave effect */
@import url(//fonts.googleapis.com/css?family=Lato:300:400);

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    min-height: 100px;
    max-height: 150px;
}

.parallax > use {
    animation: move-forever 60s linear infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -10s;
    animation-duration: 62s;
}

.parallax > use:nth-child(2) {
    animation-delay: -20s;
    animation-duration: 64s;
}

.parallax > use:nth-child(3) {
    animation-delay: -30s;
    animation-duration: 66s;
}

.parallax > use:nth-child(4) {
    animation-delay: -40s;
    animation-duration: 68s;
}

@keyframes move-forever {
    0% { transform: translateX(-60%); }
    100% { transform: translateX(60%); }
}

/* Media query for tablets */
@media (max-width: 1024px) {
    .main-div_bordered {
        width: 90%;
        margin: 100px auto 0;
    }
}

/* Media query for mobile devices */
@media (max-width: 600px) {
    .main-div_bordered {
        width: 95%;
        margin: 50px auto 0;
        padding: 10px;
    }

    .content-body {
        padding: 15px;
        margin: 30px auto;
    }

    .waves {
        height: 40px;
        min-height: 40px;
    }
}

/* #### Section below is for typewriter effect */
/* Define the fadeIn keyframes */
@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}
  
/* Style for each word */
.word-fade-in {
    opacity: 0;
    display: inline-block;
}
  
/* Optional: Smooth appearance without jump if needed */
.content-body {
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: pre-wrap;
}
  
/* Ensure that inline-block elements wrap properly */
.content-body span {
    white-space: pre;
}

/* Chrome Web Store Link Styling */
.chrome-store-link {
    display: inline-block;
    padding: 15px 30px;
    margin: 20px 0;
    background: linear-gradient(45deg, #a112dd, #f7c612, #ed1bda, #3ac66d, #dc3422);
    background-size: 500% 500%;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    animation: gradientShift 8s ease infinite;
    box-shadow: 0 4px 15px rgba(161, 18, 221, 0.3);
}

.chrome-store-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(237, 27, 218, 0.4);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 50%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ensure main div never shows scroll bars and clips overflow */
.main-div_bordered {
    overflow: hidden;
  }