
/* Style sheet for rock and roll web page.  */

body {
    background-color: #1a1a1a;
/*    color: #f0f0f0;  */
    color: #FFD700;
    line-height: 1.6;
    text-align: center;
}

header {
    background: linear-gradient(to right, #8B0000, #4B0082);
    padding: 1% 1%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
/*    position: sticky;   */
    top: 0;
    z-index: 100;
}

/*  Logo div is used in header.php  */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: #FFD700;
}

.logo h1 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    rotate: -2deg;
}



nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 1%;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


.login-btn {
    background: #FFD700;
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.page-content {
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    margin-bottom: 30px;
}

h2 {
    color: #FFD700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4B0082;
}


/* unvisited link */
a:link {
    color: red;
}

/* visited link */
a:visited {
    color: hotpink;
    background-color: yellow;
}

/* mouse over link */
a:hover {
    color: pink;
}

/* selected link */
a:active {
    color: blue;
}

p.name {
    font-family: cursive;
    rotate: -5deg;
    font: italic bold  3em/1em  serif;
}


.btn {
    background: linear-gradient(to right, #8B0000, #4B0082);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #222;
    color: #fff;
}


@media print {
    .no-print {
        display: none;
    }
    @page {
        size:A4;
        margin-top: 5mm;
        margin-bottom: 10mm;
        margin-left: 5mm;
        margin-right: 5mm;
    }
}
.filter {
    display: none;
}

.container {
    display: grid;
    grid-template-areas:
    "header"
    "main"
    "footer";
    grid-template-columns: auto ;
    background-color: rgba(255, 255, 255, 0.8);
    text-align: left;
    padding: 5px;
    font-size: 1em;
    max-width: 21cm;
    margin: auto;
    column-gap: 10px;
    row-gap: 2px;
    border-radius: 5px;
}

.container > div {
    background-color: #f1f1f1;
    border: 1px solid black;
    padding: 2px;
    font-size: 1em;
    text-align: left;
    border-radius: 10px;
}

.container > div.header {
    grid-area: header;
    text-align: center;
}
.container > div.event {
    border-radius: 20px;
    font-size: 1.1em;
}

c {
    font-family: cursive;
    rotate: -5deg;
    font: italic bold  3em/1em  serif;
}

p.name {
    font-family: cursive;
    rotate: -5deg;
    font: italic bold  3em/1em  serif;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

th {
    background-color: #4B0082;
    color: #FFD700;
}

tr:hover {
    background-color: rgba(75, 0, 130, 0.3);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-container {
    background-color: rgba(40, 40, 40, 0.9);
    border-radius: 10px;
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.message {
    background-color: rgba(75, 0, 130, 0.5);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid #FFD700;
}

.message-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #FFD700;
}

.message-body {
    margin-top: 5px;
}

.chat-form {
    display: flex;
    gap: 10px;
}

.chat-form input {
    flex: 1;
    padding: 12px;
    border-radius: 5px;
    border: none;
    background-color: #222;
    color: #fff;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #111;
    margin-top: 30px;
    border-top: 1px solid #4B0082;
}

.committee-only {
    display: <?php echo isCommittee() ? 'block' : 'none'; ?>;
}

.member-only {
    display: <?php echo isLoggedIn() ? 'block' : 'none'; ?>;
}

.login-required {
    display: <?php echo isLoggedIn() ? 'none' : 'block'; ?>;
}

