/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
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;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    background-image: url('../ImagesForCatsRBetter/6851c5ce0cff640ac15f4cbd4b67f913.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

body.form-page {
    overflow: hidden;
    height: 100vh;
}

.AllContent {
    max-width: 1181.33333333334px;
    margin: 0 auto;
    background-color: transparent;
}

.AllContent {
    display: grid;
    grid-template-areas:
        "navbar-container header div"
        "Content1 filler Content3"
        "Content4 filler Content5"
        "Content6 Content2 Content7"
        "Content8 Content2 Content9";
}

.header {
    display: flex;
    grid-area: header;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 20px;
}

.div {
    grid-area: div;
}

.navbar-container {
    grid-area: navbar-container;
    padding: 0;
    margin: 0;
}

.homepage {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 40px;
    left: 0;
    z-index: 10;
}

#hamburger {
    padding: 10px;
    padding-bottom: 0px;
    margin-bottom: 10px;
}

.navbar {
    position: absolute;
    padding: 20px;
    display: none;
    margin-top: 0px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.navbar a {
    display: block;
    margin: 0;
    padding: 4px 0;
}

.navbar.show {
    display: flex;
}

.button {
    display: block;
    background: none;
    border: none;
}

.navbar-container,
.header,
.div {
    background-color: rgb(213, 213, 213);
}

.footer {
    justify-content: center;
    text-align: center;
    font-size: small;
    padding-top: 10px;
    color: gray;
}

.googlemaps {
    display: flex;
    justify-content: center;
    align-items: center;
}

.googlemaps iframe {
    width: 100%;
    height: 300px;
}

.contacts {
    display: block;
    justify-content: center;
    align-items: center;
    font-size: medium;
    text-align: center;
}

.nextgig {
    display: flex;
    justify-content: center;
    align-items: center;
}

.Asterisk {
    color: red;
}

#Content1 {
    grid-area: Content1;
}

#Content2 {
    grid-area: Content2;
}

#Content3 {
    grid-area: Content3;
}

#Content4 {
    grid-area: Content4;
}

#Content5 {
    grid-area: Content5;
}

#Content6 {
    grid-area: Content6;
}

#Content7 {
    grid-area: Content7;
}

#Content8 {
    grid-area: Content8;
}

#Content9 {
    grid-area: Content9;
}

#Content1,
#Content3,
#Content4,
#Content5,
#Content6,
#Content7,
#Content8,
#Content9 {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
#Content1 {
    animation-delay: 0.2s;
}

#Content3 {
    animation-delay: 0.6s;
}

#Content4 {
    animation-delay: 0.8s;
}

#Content5 {
    animation-delay: 1s;
}

#Content6 {
    animation-delay: 1.2s;
}

#Content7 {
    animation-delay: 1.4s;
}

#Content8 {
    animation-delay: 1.6s;
}

#Content9 {
    animation-delay: 1.8s;
}

a {
    color: rgb(8, 0, 255);
}

/* Image and text layout - Desktop default */
.roberts {
    width: 40%;
    flex-shrink: 0;
}

.text-content {
    flex: 1;
    font-size: large;
}

.text-with-image {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

.text-content h1 {
    font-size: large;
    font-weight: bold;
    margin-bottom: 10px;
}

.form {
    max-width: 400px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    margin-top: 20px;
}

.inputwrapper {
    position: relative;
    margin-bottom: 20px;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form textarea:focus {
    outline: none;
    border-color: rgb(8, 0, 255);
}

.form textarea {
    min-height: 120px;
    resize: vertical;
}

.form .Asterisk {
    position: absolute;
    right: 12px;
    top: 12px;
    color: red;
    font-size: 18px;
}

.form .submit {
    width: 100%;
    padding: 12px;
    background-color: rgb(8, 0, 255);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form .submit:hover {
    background-color: rgb(6, 0, 200);
}

/* Mobile layout (411px and less) */
@media (max-width: 411px) {
    body {
        background-image: none;
        background-color: white;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .AllContent {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        padding: 0;
        margin: 0;
        background-color: white;
        overflow-x: hidden;
    }

    .header,
    .navbar-container,
    .div,
    #Content1,
    #Content2,
    #Content3,
    #Content4,
    #Content5,
    #Content6,
    #Content7,
    #Content8,
    #Content9,
    #Footer {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #Content2 {
        padding: 20px;
        margin: 0;
        background-color: white;
        border-radius: 0;
        box-shadow: none;
        animation: none;
        opacity: 1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        overflow-x: hidden;
    }

    #Content2 p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        max-width: 100%;
    }

    .header {
        padding: 20px;
        padding-top: 40px;
        width: 100%;
        background-color: rgb(213, 213, 213);
    }

    .homepage {
        margin-top: 20px;
    }

    .navbar-container {
        background-color: rgb(213, 213, 213);
        width: 100%;
        padding: 10px;
        padding-right: 20px;
        position: relative;
        z-index: 300;
    }

    #hamburger {
        margin: 0;
    }

    .navbar {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
        margin: 0 !important;
        z-index: 200;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-x: hidden;
    }

    .navbar a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        max-width: 100%;
        white-space: normal;
    }

    .navbar.show {
        display: flex !important;
    }

    .div {
        display: none;
    }

    .text-with-image {
        flex-direction: column;
        padding: 10px;
    }

    .roberts {
        width: 100%;
    }

    .text-content h1 {
        font-size: medium;
    }

    .form {
        width: calc(100% - 40px);
        max-width: 500px;
        padding: 20px;
    }
}

@media (min-width: 412px) {
    body {
        min-height: 200vh;
    }

    .AllContent {
        display: grid;
        grid-template-areas:
            "navbar-container header div"
            "Content1 filler Content3"
            "Content4 filler Content5"
            "Content6 Content2 Content7"
            "Content8 Content2 Content9"
            "Footer Footer Footer";
        min-height: 100vh;
    }

    #Content2 {
        grid-area: Content2;
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 800px;
        max-height: 70vh;
        overflow-y: auto;
        padding: 30px;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.8s ease-out;
        z-index: 100;
    }

    #Content2 {
        animation: showOnScroll 0.1s linear forwards;
        animation-timeline: scroll();
        animation-range: 0px 100px;
    }

    @keyframes showOnScroll {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
            pointer-events: auto;
        }
    }

    @supports not (animation-timeline: scroll()) {
        #Content2 {
            animation: delayedShow 0.8s ease-out 2s forwards;
        }
        
        @keyframes delayedShow {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
                pointer-events: auto;
            }
        }
    }

    .header {
        display: flex;
        grid-area: header;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding-top: 20px;
    }

    .navbar-container {
        grid-area: navbar-container;
        padding: 0;
        margin: 0;
    }

    .homepage {
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        top: 40px;
        left: 0;
        z-index: 10;
    }

    #hamburger {
        padding: 10px;
        padding-bottom: 0px;
        margin-bottom: 10px;
    }

    .navbar {
        position: absolute;
        padding: 20px;
        display: none;
        margin-top: 0px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    a {
        color: rgb(8, 0, 255);
    }

    .navbar a {
        display: block;
        margin: 0;
        padding: 4px 0;
    }

    .navbar.show {
        display: flex;
    }

    .button {
        display: block;
        background: none;
        border: none;
    }

    .navbar-container,
    .header,
    .div {
        background-color: rgb(213, 213, 213);
    }
}