/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #f4f4f4;
    color: #333333;
}

/* Header Styling */
header {
    position: relative;
    background: url('header.png') no-repeat center center, linear-gradient(135deg, #ff0000, #ffffff, #ff0000);
    background-size: cover;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Flag Container Styling */
.flag-container {
    position: relative;
    width: 250px;
    height: 250px;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff0000 40%, transparent 40%, transparent 60%, #ff0000 60%);
    background-size: cover;
}

.flag-container h1 {
    position: relative;
    color: #ffffff;
    font-size: 72px;  /* Larger font size */
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 2;
    letter-spacing: 2px;
    margin-bottom: -20px;  /* Overlap the bottom */
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    cursor: pointer;  /* Indicate interactivity */
}

.flag-container h1:hover {
    transform: scale(1.1);
    color: #ffcccc;
}

.content {
    padding: 20px;
    text-align: justify;
}

.content p {
    margin: 20px 0;
    line-height: 1.6;
}

a {
    color: #0072ff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom 0.3s;
}

a:hover {
    color: #333333;
    border-bottom: 2px solid #0072ff;
}

/* Form Styling */
form {
    margin-bottom: 30px;
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

form .input-group {
    position: relative;
    margin-bottom: 15px;
}

form .input-group i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #0072ff;
    font-size: 14px;
}

form input, form textarea {
    width: calc(100% - 40px);
    padding: 10px 10px 10px 35px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
}

form input:focus, form textarea:focus {
    border-color: #0072ff;
    outline: none;
}

form textarea {
    resize: vertical;
    height: 120px;
}

form .captcha-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

form .captcha-container label {
    margin-right: 10px;
    font-weight: bold;
}

form .captcha-container input {
    width: auto;
    flex: 0 1 50px;
    padding: 8px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
}

form .captcha-container input:focus {
    border-color: #0072ff;
    outline: none;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #0072ff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #005bb5;
}

/* Comments Section */
.comment {
    border-bottom: 1px solid #ccc;
    padding: 15px 0;
    margin-left: 0px; /* Reset left margin to 0 */
}

.comment h4 {
    margin: 0;
    color: #0072ff;
}

.comment p {
    margin: 5px 0;
    font-size: 16px;
    color: #555;
}

.reply {
    margin-left: 30px;
    margin-top: 10px;
    border-left: 3px solid #0072ff;
    padding-left: 10px;
}

.admin-reply h4 {
    color: red;
    display: flex;
    align-items: center;
}

.admin-reply h4 .fa-shield-alt {
    margin-right: 5px;
}

.admin-reply p {
    font-style: italic;
}

/* Admin Area Specific Styles */
.admin-container {
    width: 80%;
    max-width: 900px;
    margin: 50px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #0072ff;
    text-align: center;
    margin-bottom: 20px;
}

.comment {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #0072ff;
    border-radius: 5px;
    position: relative;
}

.comment h4 {
    margin: 0 0 10px;
    color: #0072ff;
}

.comment p {
    margin: 0 0 10px;
    color: #555;
    line-height: 1.5;
}

.comment-buttons {
    display: flex;
    gap: 10px; /* Adds spacing between buttons */
}

.comment-buttons button {
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px; /* Ensure consistent font size */
    transition: background-color 0.3s;
    border: none;
    color: white;
}

/* Delete Button Styling */
.delete-button {
    background-color: #ff0000;
}

.delete-button:hover {
    background-color: #cc0000;
}

/* Edit Button Styling */
.edit-button,
.reply-button { /* Apply the same style to both edit and reply buttons */
    background-color: #0072ff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

.edit-button:hover,
.reply-button:hover {
    background-color: #005bb5; /* Darker blue on hover */
}

/* Reply Button Styling */
.reply-button {
    background-color: #00b300; /* Green for Reply */
}

.reply-button:hover {
    background-color: #009900;
}

.edit-comment-form,
.reply-comment-form {
    margin-top: 10px;
}

.edit-comment-form textarea,
.reply-comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: vertical;
}

.edit-comment-form button,
.reply-comment-form button {
    background-color: #0072ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit-comment-form button:hover,
.reply-comment-form button:hover {
    background-color: #005bb5;
}

/* Picture Gallery Styling */
.picture-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.picture-item {
    display: inline-block;
    text-align: center;
}

.picture-item img.thumbnail {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

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

/* Footer Styling */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
    color: #777;
    font-size: 14px;
    margin-top: 20px;
}

/* Compact styling for the notify checkbox */
.notify-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.notify-label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

/* Hide the default checkbox */
.notify-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #0C6FAA; /* Blue border */
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    outline: none;
    cursor: pointer;
}

/* Create a custom checkmark */
.notify-label input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: #0C6FAA; /* Blue checkmark */
    transform: translate(-50%, -50%) rotate(45deg);
    clip-path: polygon(14% 44%, 0 58%, 45% 98%, 100% 2%, 87% 0, 45% 78%);
}

/* Add a transition for smooth effect */
.notify-label input[type="checkbox"]:checked {
    background-color: white;
    transition: background-color 0.3s ease;
}

.notify-label input[type="checkbox"]:hover {
    border-color: #0A5F7F; /* Darker blue on hover */
}

.notify-label input[type="checkbox"]:focus {
    box-shadow: 0 0 3px #0C6FAA;
}
