body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #667eea;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}
.klokke-container {
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 650px;
    overflow: hidden; /* Sikrer at banneret følger containerens avrundede hjørner */
    padding-bottom: 30px; /* Flyttet padding til bunnen så banneret berører toppen */
}

/* Hero Banner helt øverst i containeren */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 35px 20px 25px 20px;
    margin-bottom: 20px;
}
.hero-banner h1 {
    margin: 0 0 5px 0;
    font-size: 26px;
    font-weight: bold;
}
.hero-banner h1 a {
    color: white;
    text-decoration: none;
}
.hero-banner h1 a:hover {
    opacity: 0.8;
}
.hero-banner p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Språkvelger låst oppe til høyre i banneret */
.sprak-velger {
    position: absolute;
    top: 12px;
    right: 12px;
}
.sprak-velger select {
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-weight: bold;
    outline: none;
}
.sprak-velger select option {
    color: #333;
    background-color: white;
}

/* Resten av klokke-elementene har padding på sidene */
.tidsdisplay {
    font-size: 44px;
    font-weight: bold;
    margin: 20px 0;
    font-family: monospace;
}
.verktøy-input {
    display: none;
    padding: 0 30px;
}
.verktøy-input.aktiv {
    display: block;
}
.fane-meny {
    display: flex;
    justify-content: space-between;
    margin: 30px 30px 0 30px;
    border-top: 2px solid #eee;
    padding-top: 15px;
    gap: 5px;
}
.fane-knapp {
    background-color: #e4e6eb;
    color: #050505;
    font-size: 12px;
    padding: 8px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    flex: 1;
    font-weight: bold;
}
.fane-knapp.aktiv {
    background-color: #007bff;
    color: white;
}
button.handling {
    font-size: 16px;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
}
.start { background-color: #28a745; }
.stopp { background-color: #dc3545; }
.nullstill { background-color: #6c757d; }
.mellomtid { background-color: #17a2b8; }
button:hover { opacity: 0.9; }

input[type="number"], input[type="time"] {
    font-size: 18px;
    padding: 5px;
    width: 70px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
input[type="time"] { width: 130px; }
.rundeliste {
    max-height: 120px;
    overflow-y: auto;
    margin-top: 15px;
    padding: 0;
    list-style: none;
    text-align: left;
    border-top: 1px dashed #ccc;
}
.rundeliste li {
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    font-family: monospace;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}
.adsense-container {
    width: 100%;
    max-width: 650px;
    margin: 15px 0;
    text-align: center;
}
.nav-back {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
    text-align: left; 
}

.nav-back:hover {
    opacity: 0.8;
}

