/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
}

/* Import Poppins font from local directory */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins/Poppins-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins/Poppins-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

:root {
    --spacing: 20px;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 16px;
    color: #323232;
    background: url('../img/background.jpg') no-repeat top right fixed;
    background-size: cover;
    min-height: 100vh;
    min-width: 98vw;
    padding: calc(2 * var(--spacing));
}

html:has(body.room-view), body.room-view {
    height: 100%;
}

#container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    align-content: flex-start;
    /* background:rgba(255,0,0,0.5); */
}

h1 {
    font-size: 3em;
    line-height: 0.7em;
    flex-basis: 100%;
    margin-bottom: var(--spacing);
}

h1 + h2 {
    margin-top: calc(2 * var(--spacing));
}

.login-box h2 {
    text-align: center;
    margin-bottom: calc(0.25 * var(--spacing));
}

.time-card {
    width: 55vw;
    background: #e9e9e9;
    border-radius: 0.15em 0.15em 0.5em 0.5em;
    margin-top: var(--spacing);
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(60,60,60,0.08), 0 1.5px 4px 0 rgba(60,60,60,0.04);
    /* subtle shadow */
}

.time-card .text[data-free="false"] span:not(:last-child) {
    color: #d27270;
}

.time-card .text[data-free="true"] span:not(:last-child) {
    color: #4e9451;
}

h2 {
    background: #607cb5;
    color: white;
    padding: 0 calc(0.6 * var(--spacing));
}

.text {
    padding: calc(0.6 * var(--spacing));
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-weight: bold;
    font-size: 2em;
}

.text span:last-child {
    flex-basis: 100%;
}

#datetime {
    position: absolute;
    bottom: 0;
    right: 0;
    text-align: right;
}

#datetime span {
    display: block;
}
#datetime {
    position: absolute;
    bottom: 0;
    right: 0;
    text-align: right;
}

#time {
    font-size: 4em;
    line-height: 1em;
}

#date {
    font-size: 2em;
}

/* Admin page styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    box-shadow: 0 2px 12px 0 rgba(60,60,60,0.08), 0 1.5px 4px 0 rgba(60,60,60,0.04);
    table-layout: fixed;
}
.admin-table:last-of-type {
    margin-bottom: 0;
}
.admin-table th, .admin-table td {
    border: none;
    padding: 0.5em;
    /* Fixed column widths */
    vertical-align: baseline;
}
.admin-table :is(th, td):is(:nth-child(1), :nth-child(2)) {
    width: 250px;
}
.admin-table :is(th, td):nth-child(4) {
    width: 180px;
}
.admin-table th {
    background: #e9e9e9;
    text-align: left;
}
.admin-form {
    margin-bottom: 2em;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
input, button {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 16px;
    height: 30px;
    padding: 0 0.25em;
}
.admin-table tr:nth-child(even) {
    background-color: #fafafa;
}
.admin-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.logout-link {
    margin-left: 1em;
    text-decoration: underline;
    color: #d27270;
}