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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #222;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: wheat;
    padding: 1rem 2rem;
    border-bottom: 1px solid orange;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 4vw;
    height: auto;
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.header-right{
    display: flex;
    align-items: center;
    gap: 1rem
}

#login-button{
    font-size: 1.0rem;
    font-weight: bold;
    text-decoration-color: #ff9900;
    color: #333;
}

#register-button{
    font-size: 1.0rem;
    font-weight: bold;
    text-decoration-color: #ff9900;
    color: #333;
}

#logout-button{
    font-size: 1.0rem;
    font-weight: bold;
    color: #333;
}
#welcome-user{
    font-size: 1.0rem;
    font-weight: bold;
    text-decoration-color: #ff9900;
    color: #333;
}

.hide-right-header-el{
    display: none;
}

main {
    display: flex;
    flex: 1;
    padding: 2rem;
    gap: 2rem;
}

.post-area {
    flex: 1;
    max-width: 350px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: fit-content;
}

#roar-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


#roar-input-box {
    width: 100%;
    min-height: 3rem;
    max-height: 300px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    resize: none;
    overflow-y: auto;
    transition: box-shadow 0.2s ease;
    box-shadow: none;
}

#roar-input-box:focus{
    outline: none;
    box-shadow: 0 0 6px 2px #ff9900;
}

#roar-form button {
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

#roar-form button:hover {
    background-color: #e68a00;
}

.hidden-notifications {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    color: green;
    font-weight: 500;
    text-align: center;
}

.show-notification{
    opacity: 1;
    pointer-events: auto;
    display: flex;
    justify-content: center;
}

.post-feed {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.single-post {
    background-color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.posticon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.postuser {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.timestamp {
    font-size: 0.85rem;
    align-items: flex-end;
    color: #888;
}

.post-content {
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 800px) {
    main {
        flex-direction: column;
    }
    .post-area, .post-feed {
        max-width: 100%;
    }
}


/*Register:*/

.sub-header-page-container{
    display: flex;
    flex: 1;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering */
    padding: 2rem;
}


.centered-input-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"], input[type="email"], input[type="password"] {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
}

input:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 6px 2px #ff9900;
}

button {
    padding: 0.75rem;
    background-color: #ff9900;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background-color: #e68a00;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}




