/*
Theme Name: Rhymebot Child
Theme URI: http://rhymebot.ai
Description: Child theme for Rhymebot
Author: Isaac
Author URI: http://rhymebot.ai
Template: hello-elementor
Version: 1.0.1
*/

/* ✅ Centering Input Fields */
#ordai-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#ordai-form textarea,
#ordai-form input[type="text"] {
    width: 100%;
    max-width: 600px; /* Keeps it from being too wide */
    padding: 12px;
    border: 2px solid #ff9400;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px; /* Space between fields */
    box-shadow: 0 0 10px rgba(255, 148, 0, 0.5);
}

/* ✅ Button Styling */
#ordai-form button[type="submit"] {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(90deg, #ff9400, #ff5e00);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 18px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#ordai-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #ff5e00, #ff9400);
    transform: scale(1.05);
}

/* ✅ Fix Robot & Speech Bubble Layout */
.rhymebot-container {
    display: flex;
    align-items: flex-start; /* Ensures the bot and bubble align properly */
    justify-content: center;
    flex-direction: row;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    position: relative;
}

/* ✅ Adjust Robot Image Position */
.rhymebot-image {
    width: 100px;
    height: auto;
    position: relative;
    z-index: 2;
    margin-right: 15px; /* Moves it closer to the bubble */
}

/* ✅ Fix Speech Bubble Alignment */
.rhyme-bubble {
    position: relative;
    background-color: transparent;
    border: 2px solid #ff9400;
    min-height: 100px;
    border-radius: 20px;
    padding: 15px;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust Speech Bubble Tail Placement on Desktop */
.rhyme-bubble::before {
    content: "";
    position: absolute;
    top: 45%;
    left: -25px; /* Move the tail further to the left */
    transform: translateY(-50%); /* Centers it vertically */
    border-width: 12px;
    border-style: solid;
    border-color: transparent #ff9400 transparent transparent;
}

/* ✅ Interaction Buttons */
.interaction-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    width: 100%;
}

.interaction-buttons span {
    font-size: 24px;
    padding: 10px;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.interaction-buttons span:hover {
    transform: scale(1.2);
}

/* ✅ Center Footer Text */
.footer-text {
    text-align: center;
    font-size: 14px;
    color: #ccc;
    margin-top: 20px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* ✅ Mobile Fixes */
@media (max-width: 768px) {
    #ordai-form textarea,
    #ordai-form input[type="text"],
    #ordai-form button[type="submit"] {
        width: 90%;
    }

    .rhymebot-container {
        flex-direction: column;
        align-items: center;
    }

    .rhyme-bubble {
        margin-left: 0; /* Centers speech bubble on mobile */
    }

    .rhyme-bubble::before {
        display: none; /* Hide the tail on mobile */
    }
}
/* 🔥 General Form Consistency */
#ordai-form, #ordaibeta-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#ordai-form textarea,
#ordai-form input[type="text"],
#ordaibeta-form textarea,
#ordaibeta-form select,
#ordaibeta-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ff9400;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    box-shadow: 0 0 10px rgba(255, 148, 0, 0.5);
}
/* 🔥 Ensure Textarea Matches Button Width */
#ordaibeta-form textarea,
#ordai-form textarea,
#concept {
    width: 100%;
    max-width: 600px; /* Matches the button width */
    padding: 12px;
    border: 2px solid #ff9400;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    box-shadow: 0 0 10px rgba(255, 148, 0, 0.5);
}

/* 🔥 Ensure Form Group Does Not Restrict Width */
.form-group {
    width: 100%;
    max-width: 600px; /* Matches the button width */
    margin: 0 auto; /* Centers the form group */
}

/* 🔥 Buttons Consistency */
#ordai-form button[type="submit"],
#ordaibeta-form button[type="submit"],
.placeholder-buttons button {
    width: 100%;
    background: linear-gradient(90deg, #ff9400, #ff5e00);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 18px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-bottom: 10px;
}

#ordai-form button[type="submit"]:hover,
#ordaibeta-form button[type="submit"]:hover,
.placeholder-buttons button:hover {
    background: linear-gradient(90deg, #ff5e00, #ff9400);
    transform: scale(1.05);
}

/* 🔥 Placeholder buttons match submit button */
.placeholder-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

/* 🔥 Tooltips Style Consistency */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip .tooltiptext {
    background-color: #1a1a1a;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 148, 0, 0.5);
    width: 220px;
    text-align: center;
    border: 2px solid #ff9400;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease-in-out;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 🔥 Dropdowns two per row consistency */
.inline-dropdowns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    gap: 12px;
}

.inline-dropdowns .form-group {
    width: 48%;
    display: flex;
    flex-direction: column;
}

/* 🔥 Adjust text area width to match dropdowns and buttons */
#ordaibeta-form textarea {
    max-width: 600px;
    width: 100%;
}

/* 🔥 Checkbox Alignment */
#enable-beta-toggle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: right;
    margin-bottom: 15px;
    color: #ff9400;
    font-weight: bold;
    font-size: 14px;
}

/* 🔥 Checkbox Style */
#enable-beta-toggle input[type="checkbox"] {
    transform: scale(1.3);
    margin-right: 5px;
    accent-color: #ff9400;
}

.concept-editable {
    background-color: #1a1a1a;
    color: #fff;
    font-size: 16px;
    min-height: 150px;
    border: 2px solid #ff9400;
    border-radius: 8px;
    padding: 12px;
    line-height: 1.5;
    white-space: pre-wrap; /* preserve line breaks */
    outline: none;  /* remove focus outline  */
    margin: 0;
    padding: 0;
  }
  
  .rhymeline { color: #ff9400; font-weight: bold; }
  