/* static/css/style.css */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #7d7d7d;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

#bkg_div {
    width: 100%;
    max-width: 420px;
    height: 95vh;
    max-height: 700px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333; /* Fallback color */
}

.background-video, .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;     /* Added for image consistency */
    background-position: center; /* Added for image consistency */
    z-index: 1; /* Sits behind content */
}

.content-overlay {
    position: relative;
    z-index: 2; /* Sits on top of background */
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: white;
    text-shadow: 1px 1px 3px black;
}

.user-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.user-header .username {
    font-weight: bold;
}

.logout-button {
    padding: 5px 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

#random-element {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 2px;
    width: 100%;
}

#description {
    font-size: 16px;
    text-align: left;
    margin: 0 0 15px 0;
    width: 100%;
}

#timer-container {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    margin-top: auto;
    margin-bottom: 10px;
}

#timer {
    font-size: 1.5rem;
    margin-left: 10px;
    width: 80px;
}

button, #timeInput {
    padding: 8px 15px;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
}

#timeInput {
    width: 60px;
}
