@import url("skeleton.css");

/* CSS Reset & Base Styles */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
  background: #f2f2f2;
  font: 12px/21px Tahoma, Arial, sans-serif;
  color: #676767;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  margin-bottom: 110px;
}

/* Basic Alignment */
.align-left { float: left; }
.align-center { text-align: center; }
.align-right { float: right; }

img.align-left { float: left; margin: 0 15px 12px 0; }
img.align-center { text-align: center; clear: both; margin: 15px auto; display: block; }
img.align-right { float: right; margin: 0 0 12px 15px; }

img, object, video { max-width: 100%; height: auto; display: block; }
img { width: auto; max-width: 100%; border: 0; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #464646;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: normal;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
h1 { font-size: 36px; line-height: 50px; }
h2 { font-size: 35px; line-height: 40px; }
h3 { font-size: 14px; line-height: 34px; font-weight: bold; }
h4 { font-size: 16px; line-height: 30px; }
h5 { font-size: 14px; line-height: 24px; }
h6 { font-size: 12px; line-height: 21px; }

p { margin-bottom: 15px; }
p img { margin: 0; }
p.lead { font-size: 21px; line-height: 27px; color: #777; }

em { font-style: italic; }
strong { font-weight: bold; color: #333; }
small { font-size: 80%; }

/* Links */
a, a:visited { 
  color: #333; 
  text-decoration: none; 
  outline: 0;
  transition: color 0.1s ease-in-out;
}
a:hover, a:focus { color: #000; }
p a, p a:visited { line-height: inherit; }

/* Lists */

ul, ol { margin-bottom: 15px; }
ul { list-style: none outside; }
ol { list-style: decimal; }
li { line-height: 18px; margin-bottom: 12px; }

.feature-description ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style: disc outside;
}

.feature-description li {
    margin-bottom: 8px;
    line-height: 1.4;
    list-style-type: inherit;
}

.feature-description li:last-child {
    margin-bottom: 0;
}

.feature-description code {
  background: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

/* CSS Variables */
:root {
  --primary-color: #94C127;
  --secondary-color: #81b600;
  --text-color: #505050;
  --light-gray: #e1e1e1;
  --dark-gray: #363636;
  --white: #fff;
  --border-color: #d7d7d7;
  --shadow-color: #e8e8e8;
  --success-bg: #f2ffde;
  --success-border: #dae6c8;
}

/*================================================= */
/* Header
================================================== */
#header {
    background: var(--dark-gray); 
    padding: 0; 
    margin: 0;
}

#logo {
    display: block;
    height: 53px;
    padding-top: 17px;
    text-indent: -9999px;
    background: url(../images/logo.png) no-repeat 0 14px;
    background-size: 192px 38px;
}

.clearfix {
    content: "."; 
    display: block; 
    height: 0px; 
    clear: both; 
    visibility: hidden;
}

.spacer {
    margin-top: 20px;
}

/*================================================= */
/* Tagline
================================================== */
#tagline {
    margin: 25px 0 0;
    font-size: 25px;
    font-family: "Open Sans", Arial, sans-serif;
    color: var(--text-color);
    letter-spacing: -0.6px;
    line-height: 30px;
    padding-bottom: 30px;
}

#tagline span, #tagline a {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0 7px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

#tagline span:hover, #tagline a:hover {
    background: #6b6b6b;
}

#tagline p {
    margin: 3px 0 20px 0; 
    font-size: 20px;
}

#divider {
    margin: 50px 0 26px 0;
    border-bottom: 1px solid var(--light-gray);
}

.send_button {
    text-align: center;
    margin: 10px 0;
}

#contact_send {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 45px;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact_form label {
    display: block;
    margin: 6px 0 5px 0;
}

/* Label container for form header */
.contact_form .label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 5px 0;
}

.contact_form .label-container label:first-child {
    margin: 0;
}

.contact_form label span {
    color: #ff0000;
}

/* Keep line breaks checkbox styling */
.contact_form label:has(#keep_line_breaks) {
    margin: 0;
}

.contact_textarea {	
    width: 100%;
    max-width: 100%;
    height: 200px;
    border: 1px solid var(--border-color);
    color: #000;
    font-size: 12px;
    font-family: Tahoma, Arial, sans-serif;
    padding: 10px;
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 3px var(--shadow-color);
    border-radius: 5px;
    box-sizing: border-box;
}

.contact_form {
    box-sizing: border-box;
    position: relative;
}

#textagain {
    text-align: center;
    position: absolute;
    top: 27px;
    left: 0;
    right: 0;
    height: 300px;
    background: #89898917;
    display: none;
    box-sizing: border-box;
    padding: 0 10px;
}

#textagain.visible {
    display: block;
}

#textagain a {
    display: inline-block;
    font-weight: bold;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 16px;
    width: 180px;
    margin: 79px auto;
}

.send_button.hidden {
    display: none;
}

#cleantext {
    margin-top: 25px;
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
    padding: 10px; 
    color: #000;
}

/*================================================= */
/* Footer
================================================== */
#footer {
    background: var(--dark-gray); 
    margin: 0; 
    color: #bbbbbb; 
    padding: 5px 0; 
}

#footer p {
    line-height: 20px;
}

#footer_bottom {
    background: var(--dark-gray); 
    border-top: 1px solid #484848;
    margin-top: 40px;
}

.copyright {
    line-height: 50px; 
    color: #aaa;
}

.copyright a, .copyright span {
    color: var(--white);
}

/*================================================= */
/* Media Queries
================================================== */
/* Base styles are for mobile (up to 480px) */

/* Small tablets and large phones (landscape) */
@media (min-width: 481px) {
  /* Remove the contact_textarea override */
}

/* Tablets and small desktops */
@media (min-width: 768px) {
  #navigation {
    float: left;
    width: 100%;
  }
  
  #navigation select {
    display: block;
    float: left;
  }
  
  #navigation ul {
    display: none;
  }
  
  .copyright {
    font-size: 11px;
  }
  
  #adtop {
    display: none;
  }
  
}

/* Medium desktops */
@media (min-width: 960px) {  
  #tagline {
    font-size: 25px;
  }
}

/* Navigation Styles */
#main-nav {
  position: relative;
  z-index: 100;
}

.menu {
  list-style: none;
  margin: 0;
  margin-top: 12px;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.menu li {
  position: relative;
  margin-bottom: 2px;
}

/* First level menu items - white and bold */
.menu > li > a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

.menu > li > a:hover {
  color: #f0f0f0;
}

/* Dropdown Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 101;
  list-style: none;
  padding: 8px;
  margin: 8px 0 0 0;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  background-color: #94c1271c;
}

.dropdown-item.show-all {
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 8px;
    padding-top: 8px;
}

.dropdown-item.show-all .dropdown-link {
    background-color: #f8f9fa;
}

.dropdown-item.show-all .dropdown-link:hover {
    background-color: #e9ecef;
}

.item-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #2c3e50;
  margin-bottom: 2px;
}

.item-description {
  display: block;
  font-size: 11px;
  color: #666;
  font-weight: normal;
}

/* Dropdown chevron styles */
.menu > li.dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu > li.dropdown > a::after {
    content: "›";
    display: inline-block;
    font-size: 20px;
    margin-left: 5px;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.menu > li.dropdown.active > a::after {
    transform: rotate(-90deg);
}

@media (max-width: 767px) {
    .menu > li.dropdown > a::after {
        font-size: 24px;
        margin-right: 10px;
    }
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1000;
    padding: 10px;
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Burger menu animation */
.burger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Styles */
@media (max-width: 767px) {
    .burger-menu {
        display: flex;
        position: fixed;
    }
    
    #header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    #navigation {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--white);
    }
    
    #navigation select {
        display: block;
        width: 100%;
        margin: 0;
        padding: 10px;
        border: none;
        background: var(--white);
        font-size: 16px;
    }
    
    #navigation ul {
        display: none;
    }
    
    .copyright {
        font-size: 11px;
    }
    
    #adtop {
        display: none;
    }
    
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #333;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transition: right 0.3s;
        overflow-y: auto;
        z-index: 999;
    }
    
    #main-nav.active {
        right: 0;
    }
    
    .menu {
        flex-direction: column;
        padding: 60px 0 20px;
    }
    
    .menu li {
        margin: 0;
        border-bottom: 1px solid #444;
    }
    
    /* First level menu items on mobile */
    .menu > li > a {
        padding: 15px 20px;
        color: #fff;
        font-weight: 700;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: rgba(255,255,255,0.05);
        border: none;
        min-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-link {
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .dropdown-link:hover {
        background-color: rgba(255,255,255,0.1);
        transform: none;
    }
    
    .item-title {
        color: #fff;
    }
    
    .item-description {
        color: rgba(255,255,255,0.7);
    }
    
    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 99;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

.footer-links {
    text-align: right;
    line-height: 50px; /* Match the copyright line height */
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    display: inline-block;
    margin-left: 20px;
}

.footer-links a {
    color: #aaa; /* Match the copyright color */
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: none;
}

/* ================================================= */
/* Standard Components
================================================== */

/* Input/Textarea Components */
.input-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.text-input,
.textarea-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color var(--transition-speed);
    background-color: var(--white);
    color: var(--text-color);
}

.textarea-input {
    min-height: 200px;
    resize: vertical;
}

.text-input:focus,
.textarea-input:focus {
    border-color: #000;
}

.text-input:focus-visible,
.textarea-input:focus-visible {
    border:none;
}

/* Button Components */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background-color: var(--light-gray);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #6b6b6b;
}

/* Animation */
@keyframes highlightFade {
    0% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

.highlight {
    animation: highlightFade 0.5s ease-out;
}

/* Primary Button Styles */
.btn-primary,
.contact_submit {
    background: #2c3e50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover,
.contact_submit:hover {
    padding: 12px 35px;
}

.btn-primary:active,
.contact_submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary:disabled,
.contact_submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Case Converter Specific Styles */
@keyframes highlightFade {
    0% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}
.highlight {
    animation: highlightFade 0.5s ease-out;
}
.case-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}
.case-buttons button {
    min-width: 130px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background: #ffffff;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.case-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.case-buttons button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.input-label {
    display: block;
    margin-bottom: 10px;
    color: #495057;
    font-size: 0.95em;
}



.contact_textarea[readonly] {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  color: #666;
  cursor: default;
}

.contact_textarea[readonly]:focus {
  outline: none;
  border-color: #ddd;
}

@media (max-width: 767px) {
    .dropdown-item.show-all {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }
    
    .dropdown-item.show-all .dropdown-link {
        background-color: transparent;
    }
    
    .dropdown-item.show-all .dropdown-link:hover {
        background-color: rgba(255,255,255,0.1);
    }
}

.textareas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

.textarea-container {
    position: relative;
}

.label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-label {
    font-weight: bold;
    margin-bottom: 0;
}

.contact_textarea {
    display: block;
    width: 100%;
    height: 300px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    background: #fff;
    line-height: 1.5;
}

.contact_textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.contact_textarea[readonly] {
    background: #f9f9f9;
    cursor: default;
}

.contact_textarea.monospace,
#result {
    font-family: monospace;
}

.copy-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 10px;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
}

.mode-switch {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-label {
    color: #666;
    font-size: 16px;
    margin-bottom: 5px;
}

.mode-buttons {
    display: flex;
    gap: 15px;
}

.mode-button {
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

.mode-button:hover {
    background: #f8f9fa;
}

.mode-button.active {
    background: var(--primary-color);
    color: white;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.button-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

@media screen and (max-width: 767px) {
    .textareas-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .textarea-container {
        margin-bottom: 20px;
    }
    
    .mode-buttons {
        flex-direction: column;
    }
    
    .mode-button {
        white-space: normal;
        text-align: center;
    }
    
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .button-group button {
        width: 100%;
    }
}

.breadcrumbs-container {
    margin: 10px 0 20px;
    padding: 8px 0;
    font-size: 12px;
}

.breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e1e1e1;
}

.breadcrumb-item {
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color, #0060c0);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active span {
    color: #666;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
}