* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}

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

.transparent {
    background: rgba(38, 39, 69,0.5);
    border-radius: 10px;
    padding: 25px;
}

header {
    background-color: #2c3e50;
    color: white;
    margin-bottom: 30px;
}

.header-inner {
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 72px;
}

nav.topbar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
}

.brand a {
    color: white;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 700;
    text-align: left;
}

.auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    color: white;
    font-size: 0.9em;
}

nav.topbar a {
    color: white;
    text-decoration: none;
    padding: 4px 6px;
}

header h1 {
    margin-bottom: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

nav a:hover {
    text-decoration: underline;
}

nav a:hover {
    text-decoration: underline;
}

a.yellow-button:hover {
    text-decoration: none;
    background-color: #b08503;
}


main {
    min-height: calc(100vh - 200px);
}

.post {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.outside {
    color: white;
}

.meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.post p {
    margin-bottom: 10px;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

form {
    background: white;
    padding: 20px;
    border-radius: 5px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

form button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

form button:hover {
    background-color: #2980b9;
}

form button.delete-button:hover {
    background-color: darkred;
}

.delete-button {
    background:#dc3545;
    color:#fff;
    border:none;
    padding:6px 16px;
    border-radius:4px;
    cursor:pointer;
}

.yellow-button {
    background:#ffc107;
    color:#333;
    border:none;
    padding:8px 16px;
    border-radius:4px;
    cursor:pointer;
    margin-left: 10px
}

a.btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

a.btn:hover {
    background-color: #2980b9;
}

.login-form {
    max-width: 400px;
    margin: 50px auto;
}
/*style for comments*/

.comments-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #ddd;
    border-radius: 8px;
}

.comment {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.comment strong {
    color: #00d4ff;
}

textarea {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background: #ddd;
    color: black;
    border: 1px solid #333;
    border-radius: 6px;
}

.btn-small {
    margin-top: 8px;
    padding: 5px 10px;
}
