/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #ffffff; /* Dark purple */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

/* Logo */
.logo img {
    height: 50px;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline;
}

.nav-links li a {
    text-decoration: none;
    color: rgb(0, 39, 212);
    font-weight: bold;
    font-size: 16px;
}

/* Nav Icons */
.nav-icons a {
    color: rgb(0, 12, 179);
    font-size: 18px;
    margin-left: 10px;
}

/* Register Button */
.register-btn {
    background: #e6007e;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* Fix Body Alignment */
body {
    background: linear-gradient(to right, #a7049e, #f3f3f3);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    flex-direction: column; /* Ensures content stacks below navbar */
}

/* Adjust Spacing Below Navbar */
.main-container {
    display: flex;
    width: 90%;
    max-width: 1200px; /* Increased max width */
    margin-top: 80px; /* Push content below navbar */
    gap: 20px;  /* Space between tool and ads */
}

.tool-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 70%; /* Adjust width as needed */
}

.ads-container {
    width: 30%; /* Adjust width as needed */
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: none;
    outline: none;
    resize: none;
}

button {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#generate-essay {
    background: #c70b9e;
    color: white;
}

#generate-essay:hover {
    background: #b60330;
}

.copy-btn {
    background: #28a745;
    color: white;
}

.copy-btn:hover {
    background: #218838;
}

.output-box {
    background: white;
    color: black;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    min-height: 50px;
    word-wrap: break-word;
}

.hidden {
    display: none;
}

/* Tool Description Styling */
.description-box {
    margin-top: 30px;
    padding: 15px;
    border: 2px dotted #4285F4;
    background-color: rgba(255, 255, 255, 0.8); /* Transparent white */
    border-radius: 5px;
    color: #333;
  }

  .description-box h2 {
    margin-top: 0;
    font-size: 18px;
    color: #4285F4;
  }

  .description-box p {
    font-size: 14px;
    line-height: 1.6;
  }

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .tool-container, .ads-container {
        width: 90%;
    }

    .navbar {
        padding: 10px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links li a, .nav-icons a {
        font-size: 14px;
    }
}