@charset "utf-8";
/* CSS Document */

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
    background-image: url('./media/images/science-header-background-large.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh; /* Ensure the body takes at least the full viewport height */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px; /* Add padding to adjust the vertical position */
    overflow: auto; /* Allow scrolling if needed */
}
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

/* Header styling */
table th {
    background-color: #5A98C2;  /* Blue color for the header */
    color: white;
}

/* Non-transparent rows */
table td {
    background-color: #d0f0d0;  /* Light green background for rows */
    color: #333;  /* Dark text for readability */
}

/* Zebra-striped table rows */
table tr:nth-child(even) {
    background-color: #B3E2C2;  /* Slightly darker green for striping */
}

/* Hover effect for table rows */
table tr:hover {
    background-color: #88C0A8;  /* Darker green for hover effect */
}


.admin-button-container {
    position: absolute;
    top: 20px;
    right: 10px;
}

.admin-sign-in {
    padding: 10px 15px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    border: none;
	box-shadow: 0 6px 6px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.admin-sign-in:hover {
    background-color: #0056b3;
}

.card-container {
    perspective: 1000px;
    width: 100%;
    max-width: 320px;
}

.card {
    width: 100%;
    max-width: 320px;
    height: auto; /* Allow height to adjust based on content */
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.card-front, .card-back {
    width: 100%;
    min-height: 100%; /* Ensure minimum height is 100% of the container */
    position: absolute;
    backface-visibility: hidden;
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.card-front {
    background: rgba(0, 0, 0, 0.8);
    transform: rotateY(0deg); /* Ensure the front is facing correctly */
}

.card-back {
    background: rgba(0, 0, 0, 0.9);
    transform: rotateY(180deg); /* Invert the back content initially */
}

.card.open {
    transform: rotateY(180deg); /* Rotate card to show the back */
}

.card.open .card-front {
    transform: rotateY(0deg); /* Rotate front out of view */
}

.card.open .card-back {
    transform: rotateY(180deg); /* Rotate back into view */
}

h1, h2, h3, h4, p {
    margin: 5px 0;
}

h1 {
    font-size: 1.3em;
}

h2 {
    font-size: 1.1em;
}

h3 {
    font-size: 0.9em;
}

h4 {
    font-size: 0.8em;
}

p {
    font-size: 0.8em;
}

hr {
	width:90%;
	text-align:center;
	margin-left:10
}
.details-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0px 20px;
}

.details {
    display: flex;
    align-items: flex-start;
    margin: 10px 0; /* Add margin to space out details */
    text-align: left; /* Align text to the left */
    width: 100%; /* Make sure the element takes full width */
}
        .details a {
            color: #4FC3F7;
            text-decoration: none;
        }
        .details a:hover {
            text-decoration: underline;
        }

.details strong {
    flex-shrink: 0;
    margin-right: 5px; /* Add space between "Location:" and the address */
}
.date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
	padding-left: 25px;
}
.time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
	padding-left: 25px;
}
.address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
	padding-left: 5px;
	line-height: 1.25;
}

.address span {
    display: block; /* Ensure each address part is on a new line */
}
.request {
	text-align: center;
}
.event-title {
    width: 100%;
    text-align: center; /* Ensure event title is center-aligned */
    padding-left: 20px; /* Ensure it aligns with the details */
	text-decoration: underline;
}

.balloon {
    max-width: 100%;
    height: auto;
    animation: balloon 2s infinite;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

input[type="text"], input[type="number"] {
    padding: 8px;
    margin: 8px 0;
    width: calc(100% - 16px);
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    box-sizing: border-box;
}

label.diet {
    padding: 0px;
}

label {
    font-size: 0.9em;
    margin: 8px 0 5px;
}

input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle; /* Align checkboxes vertically with labels */
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 5px;
}

button {
    padding: 8px 16px;
    background-color: #ff9800;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: center;
    margin-top: 15px;
}

button:hover {
    background-color: #e68900;
}

/* Media queries for responsiveness */
@media (max-width: 600px) {
    body {
        background-attachment: scroll;
    }

    .card {
        width: 100%;
        max-width: none;
        height: auto; /* Allow card to expand based on content */
    }

    h1 {
        font-size: 1.4em;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1em;
    }

    h4 {
        font-size: 0.9em;
    }

    p {
        font-size: 0.75em;
    }

    form {
        width: 100%;
    }

    input, button {
        width: 100%;
    }

    .checkbox-container {
        flex-wrap: wrap; /* Allow wrapping */
        margin-bottom: 10px; /* Adjusted for better spacing */
    }

    input[type="checkbox"] {
        width: auto;
    }
}

/* Specific handling for landscape mode */
@media (orientation: landscape) and (max-width: 600px) {
    .card {
        height: auto; /* Ensure the card takes the full viewport height */
        padding-bottom: 20px; /* Add bottom margin to provide space */
        overflow-y: auto; /* Allow scrolling */
    }
}

/* Keyframe animation for floating effect */
@keyframes balloon {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}
