/* Caffeina Styles */
* {
    box-sizing: border-box;
    font-family: 'Oswald', sans-serif;
}

:root {
    --coffee-dark: #3E2723;
    --coffee-light: #D7CCC8;
    --coffee-crema: #A1887F;
    --accent: #FF5722;
}

body {
    background: var(--coffee-dark);
    color: var(--coffee-light);
    text-align: center;
    margin: 0;
    overflow-x: hidden;
}

.coffee-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle, var(--coffee-crema) 0%, var(--coffee-dark) 100%);
    opacity: 0.3;
}

.container {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px;
}

.container-shake:hover {
    animation: tiny-shake 0.1s infinite;
}

@keyframes tiny-shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    50% {
        transform: translate(-1px, -1px) rotate(-1deg);
    }

    100% {
        transform: translate(1px, -1px) rotate(1deg);
    }
}

.header {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    border-bottom: 5px solid var(--accent);
}

.cup-icon {
    font-size: 5rem;
    animation: steam 2s infinite alternate;
    filter: drop-shadow(0 0 10px var(--coffee-crema));
}

@keyframes steam {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.5;
    }
}

.header h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 5px #000;
    margin: 0;
    text-transform: uppercase;
}

.form-container {
    background: #fff;
    color: var(--coffee-dark);
    padding: 40px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.input-line {
    text-align: left;
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.2rem;
}

input,
select {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 2px solid var(--coffee-crema);
    background: #fafafa;
    font-size: 1.1rem;
}

input:focus,
select:focus {
    border-color: var(--accent);
    outline: none;
}

.jitter-btn {
    width: 100%;
    padding: 20px;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 5px 0 #D84315;
    transition: 0.1s;
}

.jitter-btn:hover {
    background: #F4511E;
    animation: tiny-shake 0.05s infinite;
}

.jitter-btn:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #D84315;
}

.overlay,
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay {
    background: rgba(62, 39, 35, 0.95);
}

.modal {
    background: rgba(0, 0, 0, 0.9);
}

.hidden {
    display: none !important;
}

.spinner {
    font-size: 6rem;
    animation: coffeeSpin 0.5s infinite linear;
}

@keyframes coffeeSpin {
    100% {
        transform: rotate(360deg) scale(1.2);
    }
}

.modal-content {
    background: var(--coffee-light);
    color: var(--coffee-dark);
    padding: 40px;
    border-radius: 10px;
    border: 5px solid var(--accent);
    max-width: 500px;
    animation: tiny-shake 0.05s infinite;
}

.modal-content h1 {
    color: var(--accent);
    font-size: 3rem;
    margin: 0;
}

.download-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--coffee-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: bold;
    font-size: 1.5rem;
    text-transform: uppercase;
}

#close-modal {
    padding: 15px 30px;
    background: #999;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    text-transform: uppercase;
}