/* 1. Use a more intuitive box-sizing model */
*, *::before, *::after { box-sizing: border-box; }

html, body {  
    box-sizing: border-box;
    height: 100%;
    padding: 0;
    margin: 0;
}

html{
    font-size: 100%;
}

/* 2. Remove default margins so you start with a clean slate */
* { margin: 0; }

/* 3. Ensure form elements inherit your fonts */
input, button, textarea, select { font-size: 1rem; }

/* 4. Fix media elements (standard modern practice) */
img, picture, video, canvas, svg { display: block; max-width: 100%; }

/* Define colors */
:root {
--bg-body: #7691ca;
--bg-container: #aaaaaa;
--bg-header: #ccd3d0;
--bg-footer: #f51616;
--bg-content: #28a745;
--bg-form-card: white;
--bg-section: #ccd3d0;
--bg-card: #d5e1e4;

--bg-menu: #4867bd;
--bg-menu-links: #26a5bb;
--bg-menu-active: #114b5a;

--txt-header: #004d69; 

--max-width: 1200px;
--form-max-width: 520px;
--card-max-width: 350px;

--bg-footer: #aaaaaa;
--text-footer: #000000;
--border-footer: black;

--bg2: #f8f9fa;
--bg3: #e9ecef;
--text2: #495057;
--text3: #6c757d;
--accent1: #007bff;
--accent2: #28a745;
--accent3: #dc3545;
--border1: #dee2e6;
--border2: #adb5bd;
--button: #007bff;
--button-hover: #0056b3;
--button-active: #004085;
--button-disabled: #6c757d;
--form-bg: #ffffff;
--form-text: #495057;
--input-bg: #ffffff;
--input-text: #495057;
--input-border: #ced4da;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    background-color: var(--bg-body);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #111;
}

.page-wrapper, .cards-container, .container,header, footer, .contentH, .contentD{
    width: 100%;
}


/* Positioning container for all content */
.page-wrapper{
    min-height: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 10px;
}

/* container to place cards */
.cards-container {
    max-width: var(--max-width);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}
.container{
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
}

header, footer{
    max-width: var(--max-width);
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 0;
}

.contentH{
    max-width: 80ch;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 1rem 3rem;
}

.contentD{
    max-width: 80ch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
    background-color: var(--bg-section);
    border-radius: 25px;
    gap: 1rem;
}



h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}
h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
small, .note { font-size: 0.9rem; }
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

header{
    background-color: var(--bg-header) ;
    border-radius: 10px;
    justify-content: space-between;
}

footer{
    align-items:end;
    gap: 1rem;
    border-top: 1px solid var(--border-footer);
    border-bottom: 1px solid var(--border-footer);
    background-color: var(--bg-footer);
    color: var(--text-footer);
    justify-content:center;
}

footer img{
    width: 3rem;
    height: auto;
}

.footer-link {
    color: blue;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.form-card {
    margin: 1.25rem;
    background: var(--bg-form-card) ;
    border-radius: 20px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: var(--form-max-width);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow-wrap: anywhere;
}

.message-card {
    margin: 1.25rem;
    background: var(--bg-form-card) ;
    border-radius: 20px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: var(--max-width);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow-wrap: anywhere;
}

.brand {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.brand h1 {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.brand p {
    color: #666;
    font-size: 0.95rem;
}

.server-error{
    font-size: 1rem;
    color: #f02121;
}

.server-warning{
    font-size: 1rem;
    color: #f02121;
}

.server-success{
    font-size: 1rem;
    color: #0f6113;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.form-group select {
    background: white;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 7rem;
}

/* Date and Time Input Styling */
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="datetime-local"] {
    cursor: pointer;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator,
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    filter: invert(0.2);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover,
.form-group input[type="time"]::-webkit-calendar-picker-indicator:hover,
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
}

.checkbox-item label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-item input[type="radio"] {
    width: 1rem;
    height: 1rem;
}

.radio-item label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
}

.remember-me label {
    color: #666;
    font-size: 0.9rem;
}

.forgot-password {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.login-btn, .contact-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

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

.contact-btn:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

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

.social-login {
    margin-top: 2rem;
    text-align: center;
}

.social-login p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e1e1e1;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    width: 3rem;
    height: 3rem;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.social-btn:hover {
    border-color: #000;
    background: #f5f5f5;
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
}

.signup-link a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

.error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.success {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Visibility */
.hidden { visibility: hidden; }
.visible { visibility: visible; }

/* End additional styles */
.app-bg {
    background-image: url("/assets/images/bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.shake {
    animation: shake 0.5s ease;
}

/* Style the flex item (the div) */
#home_link { display: flex; align-items: center; } 

/* Target the logo specifically without extra classes */
#home_link img { height: 3rem; width: auto;;
} 

header img{height: 1.5rem; width: auto;}

header h2{color: var(--txt-header);}

.nav-container {
z-index: 1;

width: 100%;
display: none;
justify-content: center;
align-items: stretch;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}

.nav-container.active {
display: flex;
opacity: 1;
pointer-events: auto;
}

.nav {
width: 100%;
max-width: var(--form-max-width);
background-color: var(--bg-menu);
padding: 20px;
transform: translateX(-100%);
transition: transform 0.3s ease;
}


.nav-container.active .nav {
transform: translateX(0);
}


.closeMenu {
cursor: pointer;
font-size: 24px;
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.menu-section {
    border-bottom: 1px solid #ddd;
}

.menu-header {
    width: 100%;
    background: none;
    border: none;
    padding: 15px;
    font-size: 18px;
    text-align: left;
    cursor: pointer;
}

.menu-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.menu-links a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    background-color: var(--bg-menu-links);
    color: #333;
}

.menu-links img{
    width: 3rem;
    height: auto;
}
.menu-section.active .menu-header {
    background-color: var(--bg-menu-active);
    font-weight: bold;
}

.menu-section.active {
    border-left: 4px solid #333;
}

.load-page-link {
    display: flex;
    align-items: center;
    gap: 10px; /* space between icon and text */
    white-space: nowrap; /* prevents text wrapping */
}
.load-page-link:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

.menu-links a.load-page-link, a.new-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/*
                Cards
*/
.card {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    width: 100%;
    max-width: var(--card-max-width);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.card h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #2c3e50;
}
.card p {
    color: #7f8c8d;
    line-height: 1.5;
}

.colorBlack {background-color: #000000; color: #ffffff;}
.colorWhite {background-color: #ffffff; color: #000000;}
.colorRed {background-color: #ff0000; color: #ffffff;}
.color3 {background-color: #00ff00; color: #000000;}
.colorBlue {background-color: #0000ff; color: #ffffff;}
.colorYellow {background-color: #ffff00; color: #000000;}
.colorAqua {background-color: #00ffff; color: #000000;}
.colorPurple {background-color: #800080; color: #ffffff;}
.colorPink {background-color: #ff69b4; color: #000000;}
.colorGreen {background-color: #008000; color: #ffffff;}
.color12 {background-color: #4b0082; color: #ffffff;}
.colorIndigo {background-color: #3f51b5; color: #ffffff;}
.colorOrange {background-color: #ff8C00; color: #ffffff;}
.colorTeal {background-color: #008080; color: #ffffff;}


.showme{
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:flex-start;
    border-bottom: 1px white solid;
}

.showme-heading{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 3rem;
    width: 100%;
    height: 3rem;
}
.showme-content{
    width: 100%;
    max-width: var(--max-width);
    display: none;
}
/* Stripey list */
.stripey-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stripey-list li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    
    padding: 0.5rem 1rem;
}

.stripey-list li:nth-child(even) {
    background-color: #f2f2f2;
}

.stripey-list li:nth-child(odd) {
    background-color: #ffffff;
}

/* Make heading feel clickable */
.showme-heading {
    cursor: pointer;
}

.showme-heading,
.stripey-list li {
    user-select: none;
}

.stripey-list .button {
    font-size: 1rem;;
    background-color: #ADD8E6;
    color: #000000;
    text-decoration: none;
    padding: 5px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(0);
}

.stripey-list .button:hover {
    background-color: #4fc5ec;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}
.showme h5{
    font-style:normal;
}

button[type=submit] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button[type=submit]:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

button[type=submit]:active {
    transform: translateY(0);
}

.policies{

    display:flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

.policies a {
    color: blue;
    text-decoration: none;
    transition: color 0.1s ease;
    font-weight: bold;
}

.policies a:hover {
    color: rgb(189, 72, 18);
}

.form-msg{
    color: red;
    visibility: hidden;
}

.gen-set{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content:space-evenly;
    width: 100%;
    margin-bottom: 10px;
    width: 100%;
    padding: 2rem 10px;
    font-size: 1rem;
    font-weight: bold;
}

.gen-pair{
    width: 100%;
    display: flex; 
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
}
.gen-set p{
    margin: 0; 
    font-weight: bold
}   
.gen-set button{
    padding: 5px 10px; 
    font-size: 1rem; 
    background-color: #007bff; 
    color: white; 
    border: none; 
    border-radius: 3px; 
    cursor: pointer;
}

.gen-p{
    width: 100%;
}

.no-bullet{
    list-style-type: none;
}

.splash-center {
    background-color: #ccd3d0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items:center;
    justify-content: center;

}
.splash_logo{
    height: 400px;
    width: 400px;
}

.pagin8{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background-color: #8eb1d4;
    padding: 5px;
    border: 1px solid white;
}

.pagin8 a {
    color: blue;
    text-decoration: none;
    transition: color 0.1s ease;
    font-weight: bold;
    cursor: pointer;

}

.pagin8 a:hover {
    color: rgb(189, 72, 18);
}

.pagin8 a {
color: rgb(255, 255, 255); font-size: 16px; line-height: 16px; padding: 4px; border-radius: 10px; font-family: Georgia, serif; font-weight: normal; text-decoration: none; font-style: normal; font-variant: normal; text-transform: none; background-image: linear-gradient(to right, rgb(28, 110, 164) 0%, rgb(35, 136, 203) 50%, rgb(20, 78, 117) 100%); box-shadow: rgb(0, 0, 0) 0px 0px 0px 0px; border: 2px solid rgb(28, 110, 164); display: inline-block;}
.pagin8 a:hover {
background: #791ca4; box-shadow: rgb(0, 0, 0) 0px 0px 0px 0px; border: 2px solid rgb(28, 110, 164); display: inline-block;}
.paginate amyButton:active {
background: #144E75; }

.pagin8 img{
    width: 2rem;
    height:auto;
}

/* small devices  */
@media (min-width: 576px) { 
    .splash-center{
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .splash_logo{
        height: 300px;
        width: 300px;
    }

}



