/* --- FELLES STYLING --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    background-color: #121212; 
    color: #e0e0e0;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: #ffffff;
}
h2 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-top: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
p {
    color: #aaaaaa;
    margin-bottom: 15px;
    line-height: 1.5;
}
strong {
    color: #dddddd;
}
.intro-text {
    max-width: 400px;
    margin-bottom: 20px;
    font-size: 1rem;
}
.about-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.about-link:hover {
    color: #aaa;
}

/* --- FORSIDE (index.html) --- */
.score-box {
    background-color: #1e1e1e;
    padding: 20px 40px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: background-color 0.5s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#total-score {
    font-size: 5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}
.score-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
}
#lykke-msg {
    color: #ffffff; 
    font-size: 0.95rem;
    font-weight: bold;
    margin-top: 15px;
    min-height: 1.5rem; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- NØDMODUS & "EEN TIL" --- */
#one-more-container {
    display: none;
    width: 100%;
    max-width: 350px;
    margin-bottom: 15px;
}
.one-more-btn {
    background-color: #8b0000;
    color: white;
    border: 2px dashed #ff4757;
    border-radius: 15px;
    padding: 30px 10px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    animation: wobble 3s infinite ease-in-out;
}
@keyframes wobble {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg) scale(1.02); }
}

#emergency-screen {
    display: none;
    background-color: #ff0000;
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    margin-bottom: 20px;
    animation: flash 1s infinite alternate;
}
#emergency-screen h2 {
    border: none;
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    color: white;
}
#emergency-screen p {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0;
}
@keyframes flash {
    0% { box-shadow: 0 0 20px #ff0000; }
    100% { box-shadow: 0 0 50px #ff0000; }
}

/* --- KNAPPER --- */
.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 350px;
}
.drink-btn {
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 20px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.drink-btn:active {
    transform: scale(0.95);
    background-color: #555555;
}
.water-btn {
    background-color: #005f9e;
    width: 100%;
    max-width: 350px;
    margin-bottom: 30px;
    border: 2px solid #00a8ff;
}
.drink-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* --- OPPSUMMERING --- */
.summary-box {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
    text-align: left;
    box-sizing: border-box;
}
.summary-box h3 {
    margin-top: 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    color: #ffffff;
}
.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.summary-list li {
    font-size: 1rem;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}
.burn-line {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px solid #333;
    color: #ff9800;
}

.reset-btn {
    margin-top: auto;
    padding: 10px 20px;
    background: none;
    border: 1px solid #555;
    border-radius: 5px;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    margin-bottom: 15px;
}

/* --- OM-SIDEN (om.html) --- */
.content-box {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    text-align: left;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    box-sizing: border-box;
}
.content-box h1 {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.1rem;
}
.back-btn:hover {
    background-color: #555;
}
a.external-link {
    color: #00a8ff;
    text-decoration: none;
}
a.external-link:hover {
    text-decoration: underline;
}

/* Skjema */
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.9rem;
}
input[type="text"], textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #fff;
    box-sizing: border-box;
    font-family: inherit;
}
textarea {
    resize: vertical;
    min-height: 100px;
}
.submit-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #0056b3;
}
.submit-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}
#form-response {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    min-height: 24px;
}
.honeypot {
    display: none;
}

/* --- MODAL / ANIMASJONER --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}
.modal-overlay h2 {
    color: #ff4757;
    margin-bottom: 15px;
}
#sissel-btn {
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 30px;
    cursor: pointer;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.reward-emoji {
    position: fixed;
    font-size: 3rem;
    z-index: 500;
    pointer-events: none;
    animation: floatUp 2s ease-out forwards;
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(0.5); opacity: 1; }
    50% { transform: translateY(-100px) scale(1.2); opacity: 1; }
    100% { transform: translateY(-200px) scale(1); opacity: 0; }
}
