/* Vispārīgs ķermeņa stils */
body {
    font-family: Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #000;
}

/* Fona video */
video#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Virsraksts */
h1 {
    font-size: clamp(1rem, 5vmin, 3rem);
    font-family: sans-serif;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}
.underlined {
    position: relative;
}
.underline-a:after {
    content: '';
    position: absolute;
    top: 120%;
    width: 180%;
    aspect-ratio: 3 / 1;
    left: 50%;
    transform: translate(-50%, 0);
    border-radius: 50%;
    border: 6px solid hsl(202, 82%, 56%);
    clip-path: polygon(0 0, 50% 50%, 100% 0);
}

/* Lodziņš saturam */
.box {
    width: 30rem;
    height: 20rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
    overflow-y: auto;
}

/* Meklēšanas josla */
.search-bar {
    width: calc(100% - 2rem);
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #fff;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.search-bar::placeholder {
    color: #fff;
}

/* Elementu saraksts */
.elements {
    margin-top: 1rem;
    text-align: left;
}

/* Elementu vienības */
.element-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}
.element-item:last-child {
    border-bottom: none;
}

/* Datuma stils */
.date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Atpakaļ pogas stils */
.back-button {
    top: 1rem;
    left: 1rem;
    position: absolute;
    padding: 0.5rem 1rem;
    font-size: 18px;
    background-color: #ff2f2f52;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
}
.button:hover {
    background-color: #ff5050;
}
