html, body {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    background-repeat: no-repeat;
    background-color: black;
    background-size: cover;
    background-position: center center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #FFF;
    text-align: center;
    transition: background-image 0.5s ease-in-out;
}

a {
    color: inherit;
    text-decoration: inherit;
    cursor: pointer;
}

#greeting {
    margin-top: 10vh;
}

#time {
    font-size: 150px;
    line-height: 1;
    margin: 0;
}

.wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    max-width: 100vw;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.panel {
    font-size: 25px;
    line-height: 1.5;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    padding: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    text-align: right;
}

.panel span:before {
    content: '';
    width: 25px;
    height: 25px;
    margin-right: 10px;
    display: inline-block;
    background-size: cover;
    line-height: 1.5;
    margin-bottom: -3px;
}

/* Exclude line-circle from the before pseudo-element */
.line-circle:before {
    content: none;
    display: none;
}

#weather:before {
    width: 0;
}

#rain:before {
    background-image: url('./assets/humidity.svg');
}

#pressure:before {
    background-image: url('./assets/pressure.svg');
}

#bitcoin:before { 
    background-image: url('./assets/bitcoin.svg'); 
}

#water:before { 
    background-image: url('./assets/water.svg'); 
}

#coffee:before { 
    background-image: url('./assets/coffee.svg'); 
}

#sunrise:before { 
    background-image: url('./assets/sunrise.svg'); 
}

#sunset:before { 
    background-image: url('./assets/sunset.svg'); 
}

#ip:before { 
    background-image: url('./assets/network.svg'); 
}

.transport-line {
    font-weight: bold;
}

.line-circle {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    color: white;
	line-height: 30px;
    font-weight: bold;
    margin-right: 10px;
    vertical-align: middle;
	font-size: 15px;
}

.tram4-circle {
    background-color: #00bae5; /* Zurich Tram 4 color - blue */
}

.bus72-circle {
    background-color: #ea3c41; /* Zurich Bus 72 color - red */
}

.transport-line-info {
    font-size: 25px;
    line-height: 1.8;
    display: flex;
    align-items: center;
}

.transport-entry {
    margin-bottom: 10px;
}

.workout-panel {
	transform: scaleX(-1);
	line-height: 2;
}

.workout-btn {
    background: rgba(255, 255, 255, 0.5);
    padding: 5px 7px 5px 10px;
    border-radius: 12px;
}

.heatmap-grid {
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(8, 18px); /* 8 weeks */
    grid-template-rows: repeat(7, 18px);    /* 7 days */
    justify-content: center;
}

.heatmap-square {
    width: 18px;
    height: 18px;
    background-color: white; /* White color for workouts */
    border-radius: 3px;
    opacity: 0.2; /* Default opacity for days with no workouts */
    transition: opacity 0.2s ease;
}

/* Birthday Panel Styles */
.birthday-title {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.birthday-title:before {
    content: none !important;
    display: none !important;
}

.birthday-entry {
    font-size: 25px;
    line-height: 1.5;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px;
    gap: 20px;
    transition: background-color 0.2s ease;
}

.birthday-entry:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.birthday-entry:before {
    content: none !important;
    display: none !important;
}

.birthday-name {
    font-weight: normal;
}

.birthday-name:before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

.birthday-date {
    font-size: 18px;
    opacity: 0.9;
}

.birthday-date:before {
    content: none !important;
    display: none !important;
}

/*html, body {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    background-repeat: no-repeat;
    background-color: black;
    background-size: cover;
    background-position: center center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #FFF;
    text-align: center;
    transition: background-image 0.5s ease-in-out;
}

a {
    color: inherit;
    text-decoration: inherit;
    cursor: pointer;
}

#greeting {
    margin-top: 10vh;
}

#time {
    font-size: 150px;
    line-height: 1;
    margin: 0;
}

.wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    max-width: 100vw;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.panel {
    font-size: 25px;
    line-height: 1.5;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    padding: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    text-align: right;
}

.panel span:before {
    content: '';
    width: 25px;
    height: 25px;
    margin-right: 10px;
    display: inline-block;
    background-size: cover;
    line-height: 1.5;
    margin-bottom: -3px;
}

/* Exclude line-circle from the before pseudo-element */
.line-circle:before {
    content: none;
    display: none;
}

#weather:before {
    width: 0;
}

#rain:before {
    background-image: url('./assets/humidity.svg');
}

#pressure:before {
    background-image: url('./assets/pressure.svg');
}

#bitcoin:before { 
    background-image: url('./assets/bitcoin.svg'); 
}

#water:before { 
    background-image: url('./assets/water.svg'); 
}

#coffee:before { 
    background-image: url('./assets/coffee.svg'); 
}

#sunrise:before { 
    background-image: url('./assets/sunrise.svg'); 
}

#sunset:before { 
    background-image: url('./assets/sunset.svg'); 
}

#ip:before { 
    background-image: url('./assets/network.svg'); 
}

.transport-line {
    font-weight: bold;
}

.line-circle {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    color: white;
	line-height: 30px;
    font-weight: bold;
    margin-right: 10px;
    vertical-align: middle;
	font-size: 15px;
}

.tram4-circle {
    background-color: #00bae5; /* Zurich Tram 4 color - blue */
}

.bus72-circle {
    background-color: #ea3c41; /* Zurich Bus 72 color - red */
}

.transport-line-info {
    font-size: 25px;
    line-height: 1.8;
    display: flex;
    align-items: center;
}

.transport-entry {
    margin-bottom: 10px;
}

.workout-panel {
	transform: scaleX(-1);
	line-height: 2;
}

.workout-btn {
    background: rgba(255, 255, 255, 0.5);
    padding: 5px 7px 5px 10px;
    border-radius: 12px;
}

.heatmap-grid {
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(8, 18px); /* 8 weeks */
    grid-template-rows: repeat(7, 18px);    /* 7 days */
    justify-content: center;
}

.heatmap-square {
    width: 18px;
    height: 18px;
    background-color: white; /* White color for workouts */
    border-radius: 3px;
    opacity: 0.2; /* Default opacity for days with no workouts */
    transition: opacity 0.2s ease;
}

/* Birthday Panel Styles */
.birthday-title {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.birthday-title:before {
    content: none !important;
    display: none !important;
}

.birthday-entry {
    font-size: 25px;
    line-height: 1.5;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px;
    gap: 20px;
    transition: background-color 0.2s ease;
}

.birthday-entry:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.birthday-entry:before {
    content: none !important;
    display: none !important;
}

.birthday-name {
    font-weight: normal;
}

.birthday-name:before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

.birthday-date {
    font-size: 18px;
    opacity: 0.9;
}

.birthday-date:before {
    content: none !important;
    display: none !important;
}

/* Override any span:before within birthday elements */
#birthday-list span:before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

/* Login Screen Styles */
#loginScreen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: white;
    text-align: center;
    flex-direction: column;
}

#loginForm {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.1s ease;
}

#loginForm h1 {
    margin-bottom: 30px;
    font-size: 2.5em;
}

#loginForm h2 {
    margin-bottom: 20px;
    font-weight: normal;
}

#passwordInput {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255,255,255,0.9);
    color: #333;
    margin-bottom: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#passwordInput:focus {
    background: rgba(255,255,255,0.95);
    transform: scale(1.02);
    outline: none;
}

#passwordInput:blur {
    background: rgba(255,255,255,0.9);
    transform: scale(1);
}

.login-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.login-button:hover {
    background: rgba(69, 160, 73, 0.9);
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
}

#errorMessage {
    color: #ff6b6b;
    margin-top: 15px;
    font-size: 14px;
    display: none;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* Animations */
@keyframes fastShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-8px); }
    20% { transform: translateX(8px); }
    30% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    50% { transform: translateX(-8px); }
    60% { transform: translateX(8px); }
    70% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
    90% { transform: translateX(-8px); }
}

@media only screen and (max-width: 576px) {
    .wrapper {
        flex-direction: row;
    }
    .row {
        flex-direction: column;
    }
}