@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
}

#logo {
    margin-left: 15px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 6px;
}

#logo span {
    color: #ffc800;
}

#logo #span1 {
    font-size: 1.875rem;
}

.navbar-nav {
    flex-grow: 1;
    justify-content: center;
}

.nav-item .nav-link {
    color: white;
    margin: 0 15px;
    font-size: 1rem;
}

.nav-item .nav-link:hover,
.nav-item .nav-link:focus {
    color: orange;
}

.contact {
    position: relative;
    min-height: 100vh;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: url(images/fremont_birds_thumbnails/bewicks_wren.JPG) no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.contact .content {
    max-width: 800px;
    text-align: center;
}

.contact .content h2 {
    font-weight: 500;
    font-size: 2.25rem;
    color: #ffc800;
}

.contact .content p {
    font-weight: 300;
    color: #fff;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.container .contactInfo {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.container .contactInfo .box {
    position: relative;
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.container .contactInfo .box .icon {
    min-width: 60px;
    height: 60px;
    background: #fff;
    display: flex;
    justify-content: center;
    border-radius: 50px;
    align-items: center;
    cursor: pointer;
    font-size: 1.375rem;
    
}

.container .contactInfo .box .icon:hover
{
   background: #ffc800;
}

.container .contactInfo .box .icon a{
    color: green;
}

.container .contactInfo .box .icon a:hover {
    transform: scale(1.2); /* Scale the icons to its original size */
    color: rgb(9, 81, 9);
   
  }


.container .contactInfo .box .text {
    display: flex;
    margin-left: 20px;
    font-size: 1rem;
    color: #fff;
    flex-direction: column;
    font-weight: 300;
}

.container .contactInfo .box .text h3 {
    font-weight: 500;
    color: #9c2106;
}

.contactForm {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-left: auto; /* Align to the right */
    margin-right: 20px; /* Adjust this value to control how far right it goes */
}

.contactForm h2 {
    font-size: 1.875rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
}

.contactForm .inputBox {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.contactForm .inputBox input,
.contactForm .inputBox textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    resize: none;
}

.contactForm .inputBox span {
    position: absolute;
    left: 0;
    padding: 5px 0;
    font-size: 1rem;
    margin: 10px 0;
    pointer-events: none;
    transition: 0.5s;
    color: #666;
}

.contactForm .inputBox input:focus ~ span,
.contactForm .inputBox input:valid ~ span,
.contactForm .inputBox textarea:focus ~ span,
.contactForm .inputBox textarea:valid ~ span {
    color: #e91e63;
    font-size: 0.75rem;
    transform: translateY(-20px);
}

.contactForm .inputBox input[type="submit"] {
    width: 100px;
    background: #9c2106;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 1.125rem;
    border-radius: 5px;
}

@media (max-width: 1200px) {
    .contact {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 2rem;
    }

    .contact .content {
        max-width: 100%;
    }

    .container {
        flex-direction: column;
    }

    .container .contactInfo {
        width: 100%;
        margin-bottom: 20px;
    }

    .container .contactInfo,
    .contactForm {
        width: 100%;
    }
}

@media (max-width: 576px) {
    #logo {
        font-size: 1.25rem;
    }

    #logo #span1 {
        font-size: 1.5rem;
    }

    .navbar-nav {
        justify-content: flex-start;
    }

    .nav-item .nav-link {
        font-size: 0.875rem;
        margin: 0 10px;
    }

    .contact .content h2 {
        font-size: 1.75rem;
    }

    .contactForm h2 {
        font-size: 1.5rem;
    }
}
