@import url('https://fonts.googleapis.com/css2?family=Protest+Revolution&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bonheur+Royale&family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bonheur Royale', cursive;
    text-decoration: none;
}

body {
    /* height: 100vh; */
    width: 100%;
    background: url(./assets/pexels-anntarazevich-6712383.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(10px);
}

.main {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0rem 1rem;
}

.main h2 {
    color: var(--white);
    letter-spacing: 2px;
    font-size: 45px;
    transform: rotate(-2deg);
    border-bottom: 2px dotted var(--white);
    border-radius: 1rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

:root {
    --primary: #4be1ec;
    --secondary: #cb5eee;
    --white: #fff;
    --gray: #9b9b9b;
}

.quote-heading {
    font-size: 2rem;
    backdrop-filter: blur(10px);
    padding: 1rem;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 5rem;
    margin: 0.1rem;
    height: 80vh;
    width: 100vw;
    position: relative;
    /* Ensure the back arrow is positioned relative to the hero section */
}

.left {
    text-align: center;
    background: url(./assets/d-ng-h-u-CCjgYjUudxE-unsplash.jpg);
    background-size: cover;
    background-position: center;
    /* Center the background image */
    height: 100%;
    padding: 1rem 1rem;
    font-size: 1.4rem;
    border-top-left-radius: 1rem;
    /* Rounded top-left corner */
    border-bottom-left-radius: 1rem;
    /* Rounded bottom-left corner */
}

#user-profile-text,
#fpname,
#spname {
    font-family: 'Protest Revolution', sans-serif;
    text-transform: uppercase;
    padding: 0.2rem 0;
}

h3 {
    margin: 1rem;
}

.right {
    margin-left: 5px;
    height: 100%;
    width: 100%;
    padding: 0.5rem;
    overflow: hidden;
    overflow-y: scroll;
    text-align: center;
    color: var(--white);
    background: url(./assets/biel-morro-kcKiBcDTJt4-unsplash.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-top-right-radius: 1rem;
    /* Rounded top-right corner */
    border-bottom-right-radius: 1rem;
    /* Rounded bottom-right corner */
    justify-items: center;
    background-position: center;
    will-change: transform;
}

/* Specific background for propose.html */
.propose-right {
    background: url(./assets/Propose.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-top-right-radius: 1rem;
    /* Rounded top-right corner */
    border-bottom-right-radius: 1rem;
    /* Rounded bottom-right corner */
    background-position: center;
}

/* Specific background for rose.html */
.rose-right {
    background: url(./assets/Rose.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-top-right-radius: 1rem;
    /* Rounded top-right corner */
    border-bottom-right-radius: 1rem;
    /* Rounded bottom-right corner */
    background-position: center;
}

/* Specific background for chocolate.html */
.chocolate-right {
    background: url(./assets/jasmine-waheed-hQPLAFopuaE-unsplash.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-top-right-radius: 1rem;
    /* Rounded top-right corner */
    border-bottom-right-radius: 1rem;
    /* Rounded bottom-right corner */
    background-position: center;
}

.teddy-right {
    background: url(./assets/Teddys.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-top-right-radius: 1rem;
    /* Rounded top-right corner */
    border-bottom-right-radius: 1rem;
    /* Rounded bottom-right corner */
    background-position: center;
}

.promise-right {
    background: url(./assets/Promises.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    background-position: center;
}

.hug-right {
    background: url(./assets/Hugs.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    background-position: center;
}

.kiss-right {
    background: url(./assets/Kisses.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    background-position: center;
}

.valentine-right {
    background: url(./assets/Val.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    background-position: center;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.right::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.right {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

lord-icon {
    border: 2px solid var(--secondary);
    border-radius: 50%;
}

.quotes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    will-change: transform;
}

.quote {
    border: 1.5px solid #ffffff;
    /* Change border color to #ff0000 */
    padding: 1.2rem;
    margin: 1rem;
    border-radius: 1rem;
    color: var(--white);
    font-family: cursive;
    font-size: 1rem;
    cursor: pointer;
    aspect-ratio: 8/2;
    min-height: 14rem;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 17rem;
    will-change: transform;
}

.back {
    display: flex;
    align-items: center;
    text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 10;
    /* Ensure it is above other elements */
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 0 0 10px 0;
    transition: background-color 0.3s, color 0.3s;
}

.back .material-symbols-outlined,
.back .back-text {
    color: var(--white);
    transition: color 0.3s;
}

.back:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.back:hover .material-symbols-outlined,
.back:hover .back-text {
    color: var(--primary);
    /* Change to your desired hover color */
}

.back .back-text {
    margin-left: 0.5rem;
    font-size: 1rem;
}

.back-container {
    position: relative;
    width: 100%;
    text-align: left;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 1.5rem;
    color: var(--white);
    font-family: 'Protest';
    transform: rotate(-1deg);
    border-bottom: 2px dotted var(--white);
    border-radius: 1rem;
    padding: 0.4rem;
}

@media only screen and (max-width: 400px) {
    .main {
        height: max-content;
        margin: 0;
        padding: 1rem;
    }

    .left,
    .right {
        width: 100%;
    }

    .left {
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
    }

    .hero {
        display: flex;
        flex-direction: column;
        padding: 2rem 0;
        margin: 0;
        height: max-content;
    }

    .right {
        height: max-content;
        margin: 0;
        border-bottom-right-radius: 1rem;
        border-bottom-left-radius: 1rem;

    }

    .quotes {
        display: flex;
        flex-direction: column;
    }

    .back {
        display: none;
    }
}

/* Add this media query to handle the layout for mobile devices */
@media only screen and (max-width: 600px) {
    .lovers-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lovers-details img {
        margin-bottom: 1rem;
    }
}