/* main.css - Main styles for the application */

/* Wave background styles */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

:root {
    --primary-color: #F78E1F;
    --secondary-color: #F8D4A9;
    --tertiary-color: #181818;
    --tertiary-color-light: #474747;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dialog-width: 440px;
    --dialog-height: 480px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Titillium Web", sans-serif;
    font-weight: 300;
    font-style: normal;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    overflow-x: hidden;
}

h2 {
    font-weight: 500;
}

.ocean-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(60deg, rgba(71, 71, 71, 1) 0%, rgba(109, 109, 109, 1) 100%);
    z-index: -10;
}

/* Wave styles */
.waves {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
    z-index: -5;
}

/* Animation */
.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}


/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--tertiary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--tertiary-color-light);
}

.btn-large {
    width: 100%;
    padding: 15px;
}

.btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading spinner */
/* Spinner base */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* Ensure button layout doesn't break */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Ionic icon styles */
ion-icon {
    font-size: 24px;
    color: var(--primary-color);
}

/* Dialog responsiveness */
@media (max-width: 480px) {
    .dialog {
        width: 90%;
        padding: 20px;
    }

    .region-selection {
        flex-direction: column;
        align-items: center;
    }

    .region-option {
        width: 80%;
    }

    .waves {
        height: 40px;
        min-height: 40px;
    }
}
