body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

form {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    width: 300px;
}

input {
    background: #333;
    border: none;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    background: #444;
}

button {
    background: #6200ea;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

button:hover {
    background: #3700b3;
}

a {
    text-align: center;
    margin-top: 10px;
    color: #bb86fc;
    text-decoration: none;
    font-size: 0.9rem;
}

a:hover {
    text-decoration: none;
}
li {
    color: red;
}
header {
    background-color: #1e1e1e;
    position: absolute;
    padding: 1rem;
    padding-top: 50px;
    padding-left: 0px;
    padding-right: 0px;
    border-bottom: 2px solid #6200ea;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    width: 100%;
    top: 0;
}
.pfp {
    width: 50px!important;
    height: 50px!important;
    border-radius: 50%!important;
    z-index: 999;
}
.pfp:hover {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

header .pfp {
    position: absolute;
    right: 30px;
    top: 25px;
}
header a {
    padding: 20px;
    margin-top: 50%;
}
header h1 {
    margin: 0;
    margin-left: 20px;
    font-size: 1.5rem;
    color: #bb86fc;
}
#article {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    width: 90%;
    height: 80%;
    margin-top: 110px;
}

#article label {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #bb86fc;
}
#login {
    margin-top: 40vh;
}
#article input, #article textarea {
    background: #333;
    border: none;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#article input:focus, #article textarea:focus {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    background: #444;
}

#article textarea {
    height: 90%;
    resize: none;
}

#article button {
    background: #6200ea;
    color: white;
    padding: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

input::file-selector-button {
    background: #6200ea;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

#article button:hover {
    background: #3700b3;
}
#previewContainer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    height: 55%;
    gap: 1rem;
    width: 100%;
    background-color: #121212;
    overflow-x: auto;
    overflow-y: hidden;
    clear: both;
}

#previewContainer > * {
    flex: 0 0 calc((100% - 4rem) / 5);
}

#previewContainer::-webkit-scrollbar {
    height: 8px;
}

#previewContainer::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 10px;
}

#previewContainer::-webkit-scrollbar-thumb {
    background: #6200ea;
    border-radius: 10px;
}

#previewContainer::-webkit-scrollbar-thumb:hover {
    background: #3700b3;
}

#articlepreview {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word;
}

#articlepreview:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

#articlepreview h2 {
    font-size: 20px;
    color: #bb86fc;
    margin-bottom: 0.8rem;
    margin-top: -20px;
}

#articlepreview img {
    width: 70%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

#articlepreview:hover {
    transform: scale(1.05);
}

#articlepreview p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

#articlepreview a:hover {
    text-decoration: none;
}

@media (max-width: 600px) {
    #previewContainer {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        gap: 1rem;
        padding: 1rem;
    }
    #allcontainer {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        gap: 1rem;
        padding: 1rem;
    }

    #previewContainer > * {
        flex: 0 0 100%;
    }

    #articlepreview {
        width: 100%;
        padding: 1rem;
    }

    #articlepreview img {
        width: 100%;
        height: auto;
    }

    #articlepreview h2 {
        font-size: 1.2rem;
    }

    #articlepreview p {
        font-size: 0.9rem;
    }
}
nav {
    position: absolute;
    right: 10%;
    top: 0px;
    padding: 1rem;
}

nav a {
    color: #bb86fc;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    top: 30px;
}

nav a {
    text-decoration: none;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #bb86fc;
    left: 0;
    bottom: -2px;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

h3 {
    font-size: 10px;
    color: white;
}

#articlepage {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 800px;
    margin: 150px auto;
    color: white;
    word-wrap: break-word;
}

#articlepage h1 {
    font-size: 2rem;
    color: #bb86fc;
    margin-bottom: 1rem;
    text-align: center;
}

#articlepage img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
    transition: transform 0.3s ease;
}

#articlepage img:hover {
    transform: scale(1.05);
}

#articlepage h2 {
    font-size: 1.2rem;
    color: #ccc;
    margin: 0.5rem 0;
}
h2 {
    display: block;
}
#articlepage p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

@media (max-width: 600px) {
    #articlepage {
        padding: 1rem;
    }

    #articlepage h1 {
        font-size: 1.5rem;
    }

    #articlepage h2 {
        font-size: 1rem;
    }

    #articlepage p {
        font-size: 0.9rem;
    }
} 
#space {
    margin-top: 10%;
}
#userInfo {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 600px;
    margin: 150px auto;
    text-align: center;
}

#userInfo h1 {
    font-size: 2rem;
    color: #bb86fc;
    margin-bottom: 1rem;
}

#userInfo .pfp {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#userInfo .pfp:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    #userInfo {
        padding: 1rem;
    }

    #userInfo h1 {
        font-size: 1.5rem;
    }

    #userInfo .pfp {
        width: 100px;
        height: 100px;
    }
}
.exp-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}
.exp-progress {
    height: 20px;
    background-color: #bb86fc;
    border-radius: 5px 0 0 5px;
}
.profilepreview {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 0.1rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.profilepreview:hover {
    background-color: #3a3a3a;
}

.profilepreview .pfp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 15px;
}

.profilepreview .displaynamethingy {
    font-size: 1rem;
    color: #bb86fc;
    margin: 0;
}

.profilepreview .createdon {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
}

.pencil {
    margin-left: 550px;
    cursor: pointer;
    font-size: 30px;
}
footer {
    background-color: #1e1e1e;
    color: #bb86fc;
    text-align: center;
    padding: 1rem;
    padding-left: 0px;
    padding-right: 0px;
    border-top: 2px solid #6200ea;
    box-shadow: 0 -2px 5px rgba(255, 255, 255, 0.1);
    margin-top: auto;
    width: 100%;
}

#allcontainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    padding: 20px;
}
#commentForm {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

#commentForm textarea {
    width: 100%;
    height: 100px;
    background: #333;
    border: none;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    outline: none;
    resize: none;
    transition: all 0.3s ease;
}

#commentForm textarea:focus {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    background: #444;
}

#commentForm button {
    background: #6200ea;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

#commentForm button:hover {
    background: #3700b3;
}

#commentsContainer {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.comment {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.comment:hover {
    background-color: #3a3a3a;
}

.comment-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comment-right {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: auto;
}

.displayname {
    margin: 0px;
    font-weight: bold;
    color: #bb86fc;
    text-align: left;
    padding: 0px;
}

.comment-date {
    margin: 0px;
    padding: 0px;
    font-size: 0.9rem;
    color: #aaa;
}

.comment-text {
    margin: 0px;
    padding: 0px;
    color: #ddd;
}
.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-end;
}
  
.menu > li {
    margin: 0 1rem;
    overflow: hidden;
}
  
.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 90px;
    top: -5px;
}
  
#menu-toggle {
    display: none;
}
  
.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
    z-index: 999999999;
}
  
.menu-button::before {
    content: '';
    margin-top: -8px;
}
  
.menu-button::after {
    content: '';
    margin-top: 8px;
}
  
#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}
  
#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}
  
#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}
  
@media (max-width: 700px) {
    .menu-button-container {
        display: flex;
    }
    .menu {
        position: absolute;
        top: 0;
        margin-top: 50px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    #menu-toggle:checked ~ .menu li {
        border: 1px solid #333;
        height: 2.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    .menu > li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
        background-color: #222;
    }
    .menu > li:not(:last-child) {
        border-bottom: 1px solid #444;
    }
    #desktop {
        display: none;
    }
    body {
        margin-top: 100px;
    }
}

@media (min-width: 701px) {
    .menu-button-container {
        display: none;
    }
    .menu {
        flex-direction: row;
        position: static;
        margin: 0;
        width: auto;
    }
    #desktop {
        display: block;
    }
    .menu li {
        display: none;
    }
    body {
        margin-top: 50px;
    }
}