/* Main Stylesheet for Long Distance Relationship Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Happy+Monkey&display=swap&family=Roboto:wght@300;400;700');

/* Color Palette */
:root {
    --mauve: #eec7ff;
    --wisteria: #FFFFFF;
    --fairy-tale: #f1bfdb;
    --mint-green: #c43bff;
    --light-blue: #b2dce3;
    --text-dark: #4a4a4a;
    --text-light: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Happy Monkey", system-ui;
    font-size: 16px;
    line-height: 1.5;
    color: var(--light-blue);
    background-color: var(--mauve);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Happy Monkey", system-ui;
    color: var(--mint-green);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.25em; }
h6 { font-size: 1em; }

p {
    margin-bottom: 1em;
}

/* Links */
a {
    color: var(--mint-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

/* Layout */
.container {
    text-align: center;
    background-color: var(--wisteria);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 1600px;
    width: 90%;
}

.image-container {
    position: relative;
    width: 100%;
    max-height: 60vh;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    background-color: var(--fairy-tale);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#sunrise-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

#loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: var(--mint-green);
}

#message {
    font-size: 1.2em;
    color: var(--light-blue);
    line-height: 1.4;
}

/* Forms */
form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--mint-green);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--light-blue);
    border-radius: 4px;
    font-size: 1em;
    background-color: var(--fairy-tale);
    color: var(--text-dark);
}

button,
input[type="submit"] {
    background-color: var(--mint-green);
    color: var(--wisteria);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background-color: var(--light-blue);
}

/* Date Idea Styling */
#result {
    background-color: var(--fairy-tale);
    border: 2px solid var(--mint-green);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

#dateIdea {
    font-family: "Happy Monkey", system-ui;
    font-size: 1.2em;
    color: var(--text-dark);
    line-height: 1.6;
    text-align: center;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5em; }
.mt-2 { margin-top: 1em; }
.mt-3 { margin-top: 1.5em; }
.mt-4 { margin-top: 2em; }

.mb-1 { margin-bottom: 0.5em; }
.mb-2 { margin-bottom: 1em; }
.mb-3 { margin-bottom: 1.5em; }
.mb-4 { margin-bottom: 2em; }

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    .image-container {
        max-height: 40vh;
    }
}