/* Root color variable */
:root {
    --button-color: #000080;
    --quote-background: rgba(255, 255, 255, 0.1);
    --quote-color: #fffdef;
    --author-color: #00fffc;
    --button-hover-color: rgba(0, 0, 0, 0.6);
}

/* General reset and styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url(bg.png);
    background-size: cover;
    background-position: center;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    filter: brightness(0.5);
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 72px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.quote-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(8, 30, 232, 0.724);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.quote {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 10px;
    color: var(--quote-color);
    transition: opacity 0.5s ease-in-out;
}

.author {
    font-size: 18px;
    color: var(--author-color);
}

/* Button Styling */
#new-quote {
    position: relative;
    padding: 12px 35px;
    background: var(--button-color);
    font-size: 17px;
    font-weight: 500;
    color: #181818;
    border: 3px solid var(--button-color);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(254, 193, 148, 0.5);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin: 10px;
    overflow: hidden;
}

#new-quote:hover {
    background: transparent;
    color: var(--button-color);
    box-shadow: 0 0 25px rgba(254, 193, 148, 0.8);
}

#new-quote:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 255, 252, 0.5);
}

/* Hover Effect for Buttons */
#new-quote:hover {
    background: transparent;
    color: var(--button-color);
    box-shadow: 0 0 25px rgba(254, 193, 148, 0.8);
}

/* Star Elements */
.star {
    position: absolute;
    width: 15px;
    height: auto;
    filter: drop-shadow(0 0 0 #fffdef);
    z-index: -5;
    transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

/* Star Positioning */
.star-1 {
    top: 20%;
    left: 20%;
    width: 25px;
}

.star-2 {
    top: 45%;
    left: 45%;
}

.star-3 {
    top: 40%;
    left: 40%;
    width: 5px;
}

.star-4 {
    top: 20%;
    left: 40%;
    width: 8px;
}

.star-5 {
    top: 25%;
    left: 45%;
}

.star-6 {
    top: 5%;
    left: 50%;
    width: 5px;
}

/* Star Hover Transformations */
#new-quote:hover .star-1 {
    top: -80%;
    left: -30%;
    filter: drop-shadow(0 0 10px #fffdef);
    z-index: 2;
}

#new-quote:hover .star-2 {
    top: -25%;
    left: 10%;
    filter: drop-shadow(0 0 10px #fffdef);
    z-index: 2;
}

#new-quote:hover .star-3 {
    top: 55%;
    left: 25%;
    filter: drop-shadow(0 0 10px #fffdef);
    z-index: 2;
}

#new-quote:hover .star-4 {
    top: 30%;
    left: 80%;
    filter: drop-shadow(0 0 10px #fffdef);
    z-index: 2;
}

#new-quote:hover .star-5 {
    top: 25%;
    left: 115%;
    filter: drop-shadow(0 0 10px #fffdef);
    z-index: 2;
}

#new-quote:hover .star-6 {
    top: 5%;
    left: 60%;
    filter: drop-shadow(0 0 10px #fffdef);
    z-index: 2;
}
/* Star Fill Color */
.fil0 {
    fill: #FFFDEF;
}

/* Select Image Format Button Styling */
#save-quote {
    position: relative;
    padding: 12px 25px;
    background: linear-gradient(135deg, #f30418, #f54343);
    /* Gradient background */
    font-size: 18px;
    /* Slightly larger font size */
    font-weight: 600;
    /* Bold font for prominence */
    color: #ffffff;
    /* White text for contrast */
    border: none;
    /* No border for a cleaner look */
    border-radius: 10px;
    /* More rounded corners */
    box-shadow: 0 4px 20px rgba(240, 185, 185, 0.3);
    /* Enhanced shadow for depth */
    cursor: pointer;
    margin: 10px;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    font-family: 'Arial', sans-serif;
    /* Consistent font */
}

/* Add a hover effect with a smooth transition */
#save-quote:hover {
    background: linear-gradient(135deg, #aa053f, #f00592);
    /* Reverse gradient on hover */
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    /* Deeper shadow on hover */
    transform: translateY(-2px);
    /* Slight lift effect */
}

/* Focus styles for accessibility */
#save-quote:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(239, 4, 169, 0.7);
    /* Enhanced focus ring */
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 48px;
    }

    body {
        background-image: url('bg-mobile.png');
        background-size: cover;
        background-position: center;
    }

    .quote {
        font-size: 20px;
    }

    .author {
        font-size: 16px;
    }
}
