/* Theme Rule: Blue Raspberry Lemonade w/ a sparkle of pink! */
@import url('theoi-base.css');

:root {
    --background-color: #f0f8ff; /* AliceBlue */
    --primary-color: #ff69b4; /* HotPink */
    --secondary-color: #ff1493; /* DeepPink */
    --border-color: #ccc; /* Default border color */
    --border-radius: 8px; /* Default border radius */
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Default box shadow */
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    width: 100%;
    max-width: 1200px;
}

.left-panel, .right-panel {
    flex: 1;
    padding: 20px;
    background-color: #e0e0e0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 10px;
    display: none; /* Initially hidden */
}

.right-panel.active, .left-panel.active {
    display: block; /* Show active panel */
}

.main-content {
    flex: 2;
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 10px;
}

.actions {
    margin: 20px 0;
}

button {
    padding: 10px 20px;
    margin: 5px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--secondary-color);
}

#devote-form {
    margin: 20px 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

#guestbook {
    margin: 20px 0;
}

#guestbook-entries {
    list-style-type: none;
    padding: 0;
}

#guestbook-entries li {
    margin: 10px 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.panel-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.panel-content {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

#praise-counter {
    margin-top: 10px;
    font-weight: bold;
}

.hidden {
    display: none;
}

button.active {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack panels vertically on small screens */
    }

    .left-panel, .right-panel {
        flex: 1 1 100%; /* Full width on small screens */
        margin: 5px 0; /* Reduce margin */
    }

    .main-content {
        flex: 1 1 100%; /* Full width on small screens */
        margin: 5px 0; /* Reduce margin */
    }

    .panel-content {
        max-height: 200px; /* Reduce max height for smaller screens */
    }
}