/* BEGINNING - GENERATOR SECTION STYLES */
/* Generator Section */

#generator-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

#search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* This centers child elements horizontally */
    justify-content: center;
    /* This ensures vertical centering */
    width: 100%;
    max-width: 800px;
    padding: 0vh 20px 20px;
    margin: 0 auto;
    box-sizing: border-box;
    /* Ensures the container is centered within the page */
}


#query-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligns items to the left */
    position: relative;
    max-width: 800px;
    width: 100%;
}

#query {
  width: 100%;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 28px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  outline: none;
  text-align: center;
  transition: box-shadow 0.2s ease-in-out;
  resize: none;
  overflow: hidden;
  line-height: 1.5em;
  padding: 8px 48px 8px 20px; /* reduce vertical padding */
  min-height: calc(1.5em + 16px); /* line-height + vertical padding */
  height: auto;
  max-height: calc(1.5em * 4 + 16px); /* 4 lines + padding */
overflow-y: auto; /* shows scrollbar if needed */
  
}

#query:focus {
    border-color: #1489EF;
    box-shadow: 0 2px 6px rgba(20, 137, 239, 0.3);
}

#button-container {
    display: flex;
    flex-direction: column; /* stack children vertically */
    align-items: center;    /* center horizontally */
    gap: 4px;               /* small vertical gap */
    margin-top: 24px;
}


button {
    padding: 14px 24px;
    font-size: 16px;
    color: white;
    background-color: #1489EF;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #1077D0;
}

#random-sns-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #1489EF;
    cursor: pointer;
}

#random-sns-icon:hover {
    color: #1077D0;
}

/* Slide-in Panel */
#slide-in-div {
    position: fixed;
    top: 50%;
    right: -100%;
    transform: translateY(-50%);
    height: 90vh;
    max-width: 500px;
    width: 100%;
    background-color: #f8f8f8;
    box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px 0 0 16px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

@media (max-width: 560px) {
    #slide-in-div {
        max-width: 90vw;
    }
}

#close-slide {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}

#close-slide:hover {
    color: #000;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    flex-wrap: wrap;
}

.toggle-container:first-of-type {
    margin-top: 10px;
}

.toggle-label {
    font-size: 16px;
    flex-grow: 1;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.active {
    background-color: #007bff;
}

.active:before {
    transform: translateX(18px);
}

.description {
    display: none;
    margin-top: 10px;
    background-color: #f8f9fa;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
}

.description.show {
    display: block;
}

#logo {
  margin-bottom: 10px; /* adjust as needed */
}

/* Style for logo */
#logo img {
    height: 80px;
    width: auto;
}

/* Style for Settings tab */
#slide-tab {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: #1489EF;
    color: white;
    padding: 10px 15px 10px 5px;
    border-radius: 0 10px 10px 0;
    writing-mode: vertical-lr;
    text-align: center;
    font-size: 14px;
    width: 10px;
    cursor: pointer;
}

/* Style for the chevron icon */
button i {
    display: inline-block;
    width: 1.2em;
    text-align: center;
}