@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Poppins:wght@300;400;500;600;700&family=Winky+Rough:ital,wght@0,300..900;1,300..900&display=swap');


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

:root {
    /* Colors */
    --primary-text-color: #5a6497;
    --secondary-text-color: #edf0f1;
    --background-color-primary: #24252a;
    --background-color-secondary: rgba(219, 219, 224, 0.8);
    --primary-button-color: rgba(0, 136, 169, 1);
    /* Font */
    --primary-font-family: "Open Sans", sans-serif;
}

html,
body {
    height: 100%;
    font-family: var(--primary-font-family);

}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f7f7f7;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    /* keep top padding but avoid extra bottom gap */
    /* padding: 40px 20px 0; */
    /* ...existing declarations like background, font, etc... */
}

body::before {
    content: "";
    position: fixed;
    inset: 1;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(8px);
    -webkit-filter: blur(8px);
    pointer-events: none;
    z-index: -1;
}

body.home {
    background-image: url('https://dogz-pics.s3.eu-north-1.amazonaws.com/background_main.jpg');
    background-attachment: fixed;
}

body.adopt {
    background-image: url('https://dogz-pics.s3.eu-north-1.amazonaws.com/background_adopt.jpg');
    background-attachment: fixed;
}

body.contact {
    background-image: url('https://dogz-pics.s3.eu-north-1.amazonaws.com/background_contact.jpg');
    background-attachment: fixed;
}

li,
a {
    font-family: var(--primary-font-family);
    font-weight: 500;
    font-size: 26px;
    color: var(--secondary-text-color);
    text-decoration: none;
}

header {
    background-color: var(--background-color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px auto;
}

img.logo {
    cursor: pointer;
    margin-left: 4rem;
    transition: all 0.3s ease;
}

img.logo:hover {
    transform: scale(1.1) rotate(16deg);
}

/* Νavigation  menu */

nav {
    flex: 1;
    /* take available space */
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    display: inline-block;
    padding: 0 20px;
    font-size: 1rem;
    margin-top: 1rem;

}

.nav-links li a {
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-text-color);
}

.social-media a i:hover {
    color: var(--primary-text-color);
}

.social-media {
    margin-top: 1rem;
}

.nav-links a i {
    justify-content: space-around;
    font-size: 1.8rem;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}


header .social-media a i {
    font-size: 2rem;
    margin-left: 1.5rem;
}

header .social-media {
    margin-left: 6rem;
}

/* Donate Button */
nav button {
    width: 10rem;
    height: 4rem;
    color: var(--secondary-text-color);
    font-family: poppins, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 9px 25px;
    margin-left: 15rem;
    background-color: var(--primary-button-color);
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.3s ease;
}

button:hover {
    background-color: rgba(0, 136, 169, 0.8);
}

/* Humberger menu */
.nav_mobile-menu {
    display: none;
    position: relative;
}

.nav_mobile-menu-toggle {
    background: transparent;
    border: 0;
    color: var(--secondary-text-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

/* slide-in menu (hidden by default) */
.nav_mobile-menu-items {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    height: auto;
    background: var(--background-color-primary);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateX(10%);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .18s ease;
    padding: 12px;
    z-index: 3000;
}

.nav_mobile-menu-items.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.nav_mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav_mobile-menu-list a {
    color: var(--secondary-text-color);
    padding: 10px;
    display: block;
    border-radius: 6px;
}

.nav_mobile-menu-list a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary-text-color);
}


/* popover window */

[popover] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 900px;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

[popover]::backdrop {
    background: rgba(0, 0, 0, 0.5);
}


[popover] h2 {
    margin: 0 0 16px 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

[popover] .popover-paypal,
[popover] .iban {
    margin: 12px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

[popover] .popover-paypal i,
[popover] .iban i {
    font-size: 2rem;
    color: var(--primary-text-color);
}

[popover] h2 {
    margin: 0;
    font-size: 2.5rem;
    font-family: 'poppins', sans-serif;
    color: var(--background-color-primary);
    text-align: center;
}



[popover] .popover-paypal a {
    color: var(--primary-button-color);
    text-decoration: none;
    font-size: 1.5rem;
    word-break: break-all;
}

[popover] .iban,
[popover] .popover-paypal {
    font-size: 1.5rem;
    font-family: var(--primary-font-family);
}

[popover] .iban strong,
[popover] .popover-paypal strong {
    font-weight: bold;
}


[popover] .iban #copy {
    width: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-button-color);
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
}

[popover] .iban #copy:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

[popover] .popover-paypal a:hover {
    text-decoration: none;
    color: #005a9c;
}

[popover] .close-popover {
    display: block;
    margin: 1rem auto 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary-button-color);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 2rem;
    cursor: pointer;
    margin-top: 12px;
    width: 150px;
}

[popover] button:hover {
    background: #005a9c;
}




/* Home page styles */
#welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.description {
    display: flex;
    width: 1200px;
    background-color: var(--background-color-secondary);
    font-family: var(--primary-font-family);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--background-color-primary);
    line-height: 1.6;
    margin: 0 auto;
    margin-top: 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    padding: 20px;
}

.dogs {
    width: 1200px;
    padding: 2rem;
    margin: 0 auto;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    background-color: var(--background-color-secondary);
    color: var(--background-color-primary);
    border-radius: 5px;
}

.dogs-header {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.dogs-header h2,
.dogs-header p {
    font-family: var(--primary-font-family);
    font-size: 2rem;
    /* color: var(--primary-text-color); */
}

.dogs-header p {
    font-size: 1.5rem;
}

.dogs-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dogs-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dogs-gallery img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.dogData {
    font-family: var(--primary-font-family);
    color: var(--background-color-primary);
    text-align: center;
    font-weight: 500;

}

.male-symbol {
    color: #007bff;
    font-weight: bolder;
    font-size: 1.3em;

}

.female-symbol {
    color: #ff69b4;
    font-weight: bold;
    font-size: 1.2em;
}

.more-info {
    font-family: var(--primary-font-family);
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--primary-button-color);
    text-decoration: underline;
    cursor: pointer;
    transition: ease 0.3s;
}

.more-info:hover {
    color: var(--primary-text-color);
}

.dog-description {
    font-family: var(--primary-font-family);
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--background-color-primary);
    padding: 0 10px;
    line-height: 1.4;
}

/* Adopt */
.headerAdopt {
    justify-content: center;
    text-align: center;
    background-color: var(--background-color-secondary);
    padding: 2rem 2rem;
    border-radius: 8px;
    margin: 1.5rem auto;
    max-width: 800px;
    line-height: 1.6;
    font-family: var(--primary-font-family);
    font-size: 1.1rem;
    color: var(--background-color-primary);
}

.headerAdopt p a {
    color: var(--primary-button-color);
    text-decoration: underline;
    font-size: 1.2rem;
    scale: 2;
}

.headerAdopt p a:hover {
    color: var(--primary-text-color);
}

.infoHelp {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem auto;
    margin: 2rem 2rem;
    scroll-behavior: smooth;
}

.infoHelp .adopt_card {
    background-color: var(--background-color-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin: 1.5rem auto;
    max-width: 800px;
    line-height: 1.6;
    font-family: var(--primary-font-family);
    font-size: 1.1rem;
    color: var(--background-color-primary);
}

/* form */
.application-form {
    background-color: var(--background-color-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin: 1.5rem auto;
    max-width: 800px;
    text-align: center;
}

.application-form h2 {
    color: var(--background-color-primary);
    margin-bottom: 1.5rem;
    font-family: var(--primary-font-family);
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-header p {
    font-size: 1.1rem;
    color: var(--background-color-primary);
    margin-bottom: 1rem;
}

.radio-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

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

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

.radio-item label {
    font-family: var(--primary-font-family);
    font-size: 1.1rem;
    color: var(--background-color-primary);
    cursor: pointer;
}

.submit-btn {
    background-color: var(--primary-button-color);
    color: var(--secondary-text-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 auto;
    width: auto;
    height: auto;
}

.submit-btn:hover {
    background-color: rgba(0, 136, 169, 0.8);
}

/* Contact form */
main.contact-page {
    flex: 1 0 auto;
    width: 800px;
}

.contact-page {
    background-color: var(--background-color-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin: 1.5rem auto;
    max-width: 800px;
    text-align: center;
}

.contact-page h1 {
    color: var(--background-color-primary);
    margin-bottom: 1.5rem;
    font-family: var(--primary-font-family);
}

.contact-form .form-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-form .form-row textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form label {
    font-family: var(--primary-font-family);
    font-size: 1.1rem;
    color: var(--background-color-primary);
    align-self: flex-start;
}

input[type="text"],
input[type="email"],
textarea {
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--primary-font-family);
}


.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--primary-font-family);
}

.contact-form button {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--primary-button-color);
    color: var(--secondary-text-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 1rem auto 0;
    display: block;
}

.contact-form button:hover {
    background-color: rgba(0, 136, 169, 0.8);
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    background: #f5f5f5;
    outline: none;
    box-shadow: 0 0 8px 2px var(--primary-color), 0 0 16px 4px rgba(0, 123, 255, 0.3);
    animation: glow 0.8s ease-in-out;
}

.contact-form #name:focus,
.contact-form #email:focus,
.contact-form #message:focus {
    border: 3px solid var(--primary-button-color);
}


/* back to top button */
.back_to_top {
    scroll-behavior: smooth;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-button-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.5s ease;
}

.back_to_top:hover {
    background-color: var(--primary-text-color);
}

/* footer */
.footer {
    background-color: var(--background-color-primary);
    color: var(--secondary-text-color);
    text-align: center;
    padding: 30px auto;
    margin-top: auto;
    font-family: var(--primary-font-family)
}

.footer a img {
    background-color: var(--secondary-text-color);
    border-radius: 5px;
}

.footer a img:hover {
    background-color: var(--primary-text-color);
}

.footer a i:hover {
    color: var(--primary-text-color);
}

.footer p {
    margin-top: 1rem;
    font-size: 1rem;
}

.footer .follow-links-footer {
    margin-top: 0.5rem 1rem auto;

    font-size: 1.5rem;

}

/* Donation popover */
.donation-popover {
    position: absolute;
    background: url('https://dogz-pics.s3.eu-north-1.amazonaws.com/arkOfHope_Logo.png');
    min-width: 280px;
    max-width: 360px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(18, 25, 30, 0.18);
    padding: 14px 14px 12px 14px;
    z-index: 1200;
    transform-origin: top left;
    transition: transform .12s ease, opacity .12s ease;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.donation-popover.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.donation-popover .arrow {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    top: -7px;
    left: 20px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: -2px -2px 6px rgba(0, 0, 0, 0.04);
}

.popover-close {
    position: absolute;
    right: 8px;
    top: 6px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.donation-popover h3 {
    margin: 6px 0 8px 0;
    font-size: 1.05rem;
}

.popover-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.btn {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    background: #f7f7f7;
}

.btn-paypal {
    background: #0070ba;
    color: #fff;
    border-color: rgba(0, 0, 0, 0.06);
}

.btn-bank {
    background: #fff;
    color: #111;
}

.popover-panel {
    font-size: 0.95rem;
    color: #333;
}

.btn-link {
    display: inline-block;
    padding: 8px 12px;
    background: #ffc439;
    color: #111;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 6px;
}


/* Media Queries */
@media screen and (max-width: 1530px) {

    .description,
    .dogs {
        width: 95%;
        margin: 1rem auto;
        padding: 1rem;
    }

    .desktop-nav .nav-links,
    .social-media {
        flex-direction: row;
        display: flex;
        font-size: 2rem;
        margin-left: 2rem;
    }

    .desktop-nav .social-media {
        align-items: center;
        margin: auto;
    }

    .desktop-nav button {
        margin: auto;
    }
}

@media screen and (max-width: 1200px) {
    .desktop-nav .social-media {
        display: none;
    }

    .infoHelp {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
    }

    .headerAdopt,
    .adoption,
    .fostering,
    .virtual-adoption {
        max-width: 90%;
    }

    /* .headerAdopt {
        width: 250px;
        height: 150px;
    } */

    .headerAdopt h2 {
        font-size: 1.5rem;
        margin: auto;
    }

    .headerAdopt p {
        font-size: 14px;
    }
}

@media screen and (max-width: 1020px) {
    .desktop-nav ul li a i {
        display: none;
    }
}

@media screen and (max-width: 922px) {
    nav button {
        display: none;
    }


    .nav-links {
        margin-right: auto;
    }

    /* Contact */
    .contact-page {
        max-width: 600px;
    }

}

@media screen and (max-width: 768px) {
    header {
        flex-direction: row;
        padding: 20px 5%;
    }

    .nav-links {
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 20px 0;
    }

    .nav-links li {
        padding: 1rem auto;
        font-size: 1rem;
    }

    .desktop-nav nav button {
        display: none;
    }

    .description {
        font-size: 16px;
        padding: 15px;
    }

    .dogs-header h2 {
        font-size: 1.5rem;
    }

    .dogs-header p {
        font-size: 1.2rem;
    }

    .dogs-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .dogs-gallery img {
        height: 200px;
    }

    /* Adopt */
    .infoHelp {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
    }


    .headerAdopt h1 {
        font-size: 2rem;
        padding: 1rem 0;
    }

    .headerAdopt p {
        font-size: 1.1rem;
    }

    .adoption,
    .fostering,
    .virtual-adoption {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .adoption h2,
    .fostering h2,
    .virtual-adoption h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .adoption,
    .fostering,
    .virtual-adoption {
        font-size: 1rem;
        line-height: 1.5;
    }

    .contact-page {
        max-width: 400px;
    }

    /* Form */
    .radio-options {
        flex-direction: column;
        gap: 1rem;
    }

    .radio-item {
        justify-content: center;
    }

    .submit-btn {
        width: 100%;
        font-size: 1rem;
    }

    /* Hamburger menu */
    .desktop-nav {
        display: none;
    }

    .nav_mobile-menu {
        display: block;
    }

    header {
        padding: 16px 12px;
    }

    img.logo {
        margin-left: 0;
    }

    nav button {
        display: none;
    }



    .nav_mobile-menu #donate_button {
        height: 3rem;
        background: var(--primary-button-color);
        color: var(--secondary-text-color);
        font-family: var(--primary-font-family);
        font-size: 1.6rem;
        font-weight: 700;
        width: 100%;
        cursor: pointer;
        border-radius: 10px;
    }

    .nav_mobile-menu #donate_button:hover {
        opacity: 0.8;
    }


}

@media screen and (max-width: 568px) {
    header {
        padding: 15px 3%;
    }

    .logo {
        width: 150px;
    }

    .nav-links li {
        padding: 0 5px;
        font-size: 14px;
    }

    button {
        width: 7rem;
        height: 2.5rem;
        font-size: 1rem;
        padding: 5px 15px;
    }

    .description {
        font-size: 14px;
        padding: 10px;
    }

    .dogs-header h2 {
        font-size: 1.2rem;
    }

    .dogs-header p {
        font-size: 1rem;
    }

    .dogs-gallery {
        grid-template-columns: 1fr;
    }

    .dogs-gallery img {
        height: 180px;
    }

    .dogData {
        font-size: 14px;
    }

    /* Adopt */
    .headerAdopt h2 {
        font-size: 1.1rem;
    }

    .headerAdopt p {
        font-size: 14px;
    }

    .adoption,
    .fostering,
    .virtual-adoption {
        padding: 1rem;
        margin: 0.8rem auto;
    }

    .adoption h2,
    .fostering h2,
    .virtual-adoption h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .adopt_card p {
        font-size: 14px;
    }

    /* contact */
    .contact-page {
        padding: 20px;
        border-radius: 12px;
        scroll-behavior: smooth;
    }

    button[type="submit"] {
        width: 100%;
        padding: 10px 10px;
    }

    /* back to top button */
    .back_to_top {
        right: 15px;
        bottom: 15px;
    }

    .back_to_top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

}