@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;1,400&family=Montserrat:wght@400;600&display=swap');

body {
    background: url('istockphoto-1395723007-612x612.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1000px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.container:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.img {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: url('vb7gikcmbfe6r2t808hjvp8doc.png') center/cover no-repeat;
    border-radius: 10px;
    margin-top: 20px;
    transition: transform 0.3s ease-in-out;
    align-self: center;
}

.img:hover {
    transform: scale(1.05);
}

.box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#love {
    color: #d32f2f;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.container h1 {
    font-size: 2.5rem;
    margin: 7px 0;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.2;
    text-align: left;
}

.box1 {
    padding: 10px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.container p {
    font-size: 1.1rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

#name {
    width: 100%;
    max-width: 300px;
    border-radius: 7px;
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    margin-top: 10px;
    transition: border-color 0.3s ease;
}

#name:focus {
    border-color: #d32f2f;
    outline: none;
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
    .container {
        flex-direction: column;
        padding: 40px;
        align-items: flex-start;
    }

    .box {
        flex-direction: column;
        align-items: flex-start;
        margin-right: 20px;
      
        background-color: rgba(255, 255, 255, 0.85);
    }

    .img {
        margin-left:20%;
        margin-top: 10;
        /* height: 100%; */
        align-self: flex-start;
    }

    .container h1 {
        font-size: 2rem;
    }

    .container p {
        font-size: 1rem;
    }

    #name {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    .container h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .container p {
        font-size: 0.9rem;
        text-align: center;
    }

    .img {
        width: 80%;
        height: auto;
        max-width: none;
    }
}
