/* =====================================================
   GRUNDLÄGGANDE STILAR
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Gör bakgrunden beige och texten svart, enligt Dennavecka-stil */
html,
body {
    background-color: beige;
    color: black;
    font-family: 'Futura', sans-serif;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    /* Förhindra horisontell scroll om du vill */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =====================================================
   NAVIGATION & HEADER
   ===================================================== */
header {
    width: 100%;
    background-color: beige;
    text-align: right;
    padding: 1rem;
}

header nav ul {
    list-style: none;
    display: inline-flex;
}

header nav ul li {
    margin-left: 1rem;
}

header nav a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

header nav a:hover {
    text-decoration: underline;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    width: 100%;
    background-color: #f8f8f8;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    /* Tryck ner footern till botten */
    border-top: 1px solid #ccc;
}

#footer-text {
    font-size: 0.9rem;
    color: #666;
}

/* =====================================================
   STARTSIDAN (index.html) - Nedräkning
   ===================================================== */
.main-countdown {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.main-countdown h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#countdown-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.countdown-item {
    text-align: center;
    background-color: #fff;
    padding: 1rem;
    border-radius: 6px;
    min-width: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.next-valentine {
    margin-top: 1rem;
    font-style: italic;
    color: #555;
}

/* Anpassa nedräkningsboxarna för mindre skärmar */
@media (max-width: 600px) {
    #countdown-container {
        flex-direction: column;
        align-items: center;
    }
}

/* =====================================================
   OM-SIDAN (om-alla-hjartans-dag.html)
   ===================================================== */
.om-page-content {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: black;
}

.om-page-content h1,
.om-page-content h2 {
    margin-bottom: 1rem;
}

.om-page-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* =====================================================
   FIRANDE-SIDAN (firande.html)
   ===================================================== */
.firande-page-content {
    width: 90%;
    max-width: 1000px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.firande-page-content h1 {
    margin-bottom: 1rem;
}

.firande-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.firande-page-content table thead tr {
    background-color: #f9f9f9;
}

.firande-page-content table th,
.firande-page-content table td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: left;
}

/* =====================================================
   MEDIA QUERIES för RESPONSIVITET
   ===================================================== */
@media (max-width: 600px) {

    /* Justerar innehållet på om-sidan & firande-sidan */
    .om-page-content,
    .firande-page-content {
        padding: 1rem;
        margin: 1rem auto;
    }

    /* Rubrik och textstorlek anpassning */
    .main-countdown h1 {
        font-size: 1.5rem;
    }

    .countdown-item span {
        font-size: 1.5rem;
    }
}