body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20px 50px;
    color: #ffffff;
    background: black url('assets/night-back.svg') no-repeat center center;
    background-size: cover; /* Ensure the image covers the whole area */
}
/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.header-content {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-icon {
    width: 60px;
    height: 60px;
}
.header-title {
    margin: 0;
}
.header-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.header-link:hover {
    opacity: 0.8;
}

.footer {
    text-align: center;
    color:white;
    font-size:0.8rem;
    margin: 30px auto;
}
input, button {
    margin: 10px;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
}
input {
    background-color: #1c2a5e;
    color: #ffffff;
}
button {
    /*background-color: #3a5ba8;*/
    background-color: #fee458;
    color: #292f61;
    cursor: pointer;
}
button:hover {
    background-color: #292f61;
    color: white;
}
h1, h2 {
    color: #fee458;
}
#result-header {
    display: none;
}
.note {
    font-size: 14px;
    color: #cccccc;
}
ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
}
.highlight {
    margin-top: 20px;
    font-size: 2em;
    font-weight: bold;
}
a {
    color: #fee458;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.input-wrapper {
    background-color: #5364b9; /* Container color */
    border-radius: 16px; /* Rounded corners */
    padding: 12px 16px; /* Inner spacing */
    display: flex; /* Ensure the wrapper expands fully */
    align-items: center; /* Align items vertically */
    gap: 12px; /* Space between icon, label, and input */
    max-width: 500px; /* Optional: Limit width */
    margin: 0 auto 20px;
    position: relative;
}
/* Container for label and icon */
.input-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.input-button-container {
    display: flex;
    gap: 8px; /* Space between input and button */
}

/* SVG icon styling */
.icon {
    width: 32px; /* Adjust size as needed */
    height: 32px;
}

/* Input styling for better alignment */
input[type="time"] {
    margin-left: 8px;
    border: none;
    font-size: 18px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #292f61;
    box-sizing: border-box;
    background-color: white;
}

.article-list-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1); /* 50% translucent white */
    color: white;
    padding: 16px;
    border-radius: 16px;
    max-width: 500px;
    margin: 0 auto 20px;
}

/* Responsive layout for small screens */
@media (max-width: 820px) {
    body {
        background-size: contain; /* Ensure the image covers the whole area */
        margin: 20px 30px;
    }
    h1 {
        font-size: 1.4em;
    }
    .input-wrapper {
        flex-direction: column; /* Stack everything vertically */
        align-items: flex-start; /* Align to the left */
    }

    .input-container {
        width: 100%; /* Ensure label spans full width */
    }

    .input-button-container {
        flex-direction: column; /* Stack input and button */
        width: 100%; /* Full width for small screens */
    }

    input[type="time"] {
        max-width: none;
        height: 60px;
        text-align: center;
        margin: 0 auto;
        font-size: 22px;
        min-width: 180px;
    }
}









/* Container to center the timeline */
.timeline-container {
    display: none;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    margin: 2rem 0;
}

/* Top and bottom rounded rectangles */
.time-node {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between icon and text */
    background-color: rgba(255, 255, 255, 0.3); /* 50% translucent white */
    color: white; /* White text */
    padding: 12px 24px 12px 12px; /* Padding inside the box */
    border-radius: 50px;
    font-weight: bold;
}

.time-label {
    color: white; /* Text color */
    font-size: 1rem; /* Text size */
    font-weight: bold; /* Make text bold */
    white-space: nowrap; /* Prevent text wrapping */
}

.time-value {
    color: white; /* Text color */
    font-size: 1.5rem; /* Text size */
    font-weight: bold; /* Make text bold */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Circle container for icons */
.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; /* Circle size */
    height: 80px;
    border-radius: 50%; /* Makes it a circle */
    background-color: #292f61; /* Circle background */
}

/* Icons inside the circle */
.icon {
    width: 48px; /* Icon size */
    height: 48px;
}

/* Vertical connecting line */
.line {
    width: 4px; /* Line thickness */
    height: 50px; /* Line length */
    background-color: white; /* Line color */
}

/* Middle rounded rectangle (Duration) */
.duration-node {
    /*background-color: rgba(255, 255, 255, 0.5); /* 50% translucent white */
    background-color: rgba(83, 100, 185, 0.5);
    color: white; /* White text */
    padding: 8px 16px; /* Padding */
    border-radius: 32px; /* Rounded edges */
    font-weight: bold;
}

/* Specific styling for translucent nodes */
.translucent {
    background-color: rgba(255, 255, 255, 0.3); /* 50% translucent white */
}

