* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f2f2f2;
    color: #000000;
    display: flex;
    flex-direction: column; 
    min-height: 100vh; 
    padding-top: 80px; 
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    overflow-x: hidden;
    animation: backgroundPulse 15s ease infinite alternate;
}

header {
    background: linear-gradient(135deg, rgba(0, 20, 50, 1), rgba(0, 40, 80, 1));
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
}

header .logo {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 5px;
    text-transform: uppercase;
    transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
    font-family: 'Quicksand';
}

/* Home Logo Styling for Mobile */
.home-logo {
display: none; 
cursor: pointer;
margin-right: auto;
}

.home-logo img {
margin-left: 20px;
width: 30px; 
height: 30px; 
transition: transform 0.3s ease; 
}

.home-logo:hover img {
transform: scale(1.1);
filter: drop-shadow(0 0 5px #00c4ff)
}
nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s, transform 0.3s, filter 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #00c4ff;
    left: 0;
    bottom: -3px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover {
    color: #00c4ff;
    
}

nav a:hover::after {
    transform: scaleX(1);
}
.wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel {
    display: flex;
    justify-content: center;
    position: relative;
}

.center-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ffcc00;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.spin-text {
    color: black;
    font-size: 1.4rem;
    font-weight: 900;
}

.triangle {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 30px solid red;
    position: absolute;
    top: 50%;
    right: -200%;
    transform: translateY(-50%);
}
.textarea-container {
    display: flex;
    flex-direction: column; /* Stack textarea and button */
    align-items: center;
    gap: 20px; /* Space between textarea and button */
    margin-top: 20px;
}

textarea {
    background-color: rgba(20, 20, 20, 0.1);
    color: #333;
    font-size: 16px;
    resize: none;
    padding: 10px;
    border-radius: 8px;
    width: 250px;
    height: 180px;
    border: 1px solid #ccc;
    margin-left: 30px;
    transition: background-color 0.3s ease;
}

textarea:focus {
    background-color: rgba(20, 20, 20, 0.2);
    border-color: #6c63ff;
    outline: none;
}

/* Button styling */
button {
   
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    border: 2px solid #0056b3;
    border-radius: 20px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #00c4ff;
    margin-bottom: 180px;
    margin-left: 5px;
}

button:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.inputArea {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Enhanced Popup Styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 25, 45, 0.9);
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
    color: #00c4ff;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: auto;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.popup-show {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* Color Enhancements for Wheel */
.wheel {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Dynamic Wheel Slice Colors */
.wheel .slice {
    background-color: #6c63ff;
    transition: background-color 0.3s ease;
}

.wheel .slice:hover {
    background-color: #5750e0;
}

footer {
    background: linear-gradient(135deg, rgba(0, 20, 50, 1), rgba(0, 40, 80, 1));
    color: white;
    height: 250px;
    text-align: center;
    padding: 20px;
    margin-top: 150px; 
    position: relative;
    width: 100%;
}
footer h3{
    color:#fff;
}
footer p a {
    text-decoration: none;
    color: #00c4ff;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px #00c4ff);
}

/* Wave Styles */
.wave {
    position: absolute;
    width: 100%;
    height: 90px;
    bottom: 0; 
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%234a90e2" fill-opacity="1" d="M0,128L30,144C60,160,120,192,180,186.7C240,181,300,139,360,117.3C420,96,480,96,540,101.3C600,107,660,117,720,117.3C780,117,840,107,900,106.7C960,106,1020,116,1080,138.7C1140,160,1200,192,1260,197.3C1320,203,1380,181,1410,170.7L1440,160L1440,320L1410,320C1380,320,1320,320,1260,320C1200,320,1140,320,1080,320C1020,320,960,320,900,320C840,320,780,320,720,320C660,320,600,320,540,320C480,320,420,320,360,320C300,320,240,320,180,320C120,320,60,320,30,320L0,320Z"></path></svg>') no-repeat center;
    background-size: cover;
    animation: wave-animation 1.5s linear infinite;
}
/* Wave Animation */
@keyframes wave-animation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}  

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .wheel-container {
        height: 50%;
    }

    .wheel {
        max-width: 350px;
        height: 350px;
        margin-bottom: 80px;
    }

    .center-circle {
        width: 70px;
        height: 70px;
    }

    .header h1 {
        font-size: 1.5em;
    }
    textarea {
        font-size: 12px;
        height: 100px;
        margin-top: 150px;
        width: 100px;
    }

    button {
        font-size: 18px;
        margin-top: 150px;
        
    }
    .spin-text {
        color: black;
        font-size: 1rem;
        font-weight: 900;
    }
    
    .popup {
        width: 200px;
        font-size: 18px;
    }


    nav {
        display: none; 
    }

    .home-logo {
        display: inline; 
        font-size: 1.5rem;
        color: #00c4ff;
        cursor: pointer;
        margin-right: auto;
        margin-left: 250px; 
        text-decoration: none;
    }

    
    header .toggle-button {
        display: block; 
    }

    #sidebar {
        display: none; 
    }

    #sidebar.active {
        display: flex; 
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.2em;
    }
    .wheel {
        max-width: 200px;
        height: 200px;
    }

    .center-circle {
        width: 40px;
        height: 40px;
    }

    textarea {
        width: 100%;
        font-size: 15px;
        height: 80px;
    }

    button {
        font-size: 13px;
        margin-top: 150px;
        
    }
    .spin-text {
        color: black;
        font-size: 0.8rem;
        font-weight: 800;
    }
    
    .popup {
        width: 180px;
        font-size: 16px;
    }

   
    nav {
        display: none; 
    }

    .home-logo {
        display: inline-block; 
        color: #00c4ff;
        cursor: pointer;
        margin-right: auto;
        margin-left: 20px; 
        text-decoration: none;
    }
}
@media (max-width: 480px){
    .home-logo{
      margin-right: 15px;
    }
    header .logo{
      font-size: 25px;
    }
  }
  

@media (min-width: 769px) {
    #sidebar {
        display: none; 
    }

    header .toggle-button {
        display: none; 
    }

    
    nav {
        display: flex; 
    }
}
