.title{
    font-family: Optima, sans-serif;
    font-size: 10vh;
    text-align: center;
    margin-bottom: 0;
    font-weight: bold;
}


@font-face {
  font-family: "ubuntu";
  font-style: italic;
  font-weight: 300;
  src: local("Lato Light Italic"), local("Lato-LightItalic"),
    url(https://fonts.gstatic.com/s/ubuntucondensed/v8/u-4k0rCzjgs5J7oXnJcM_0kACGMtT-Dfqw.woff2)
      format("woff2");
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    height: 100vh;
    margin: 0;
    font-family: "ubuntu", Arial, sans-serif;
    overflow-x: hidden;
    display: grid;
    background: linear-gradient(45deg, #000 25%, #1a1a1a 25%, #1a1a1a 50%, #000 50%, #000 75%, #1a1a1a 75%, #1a1a1a);
    background-size: 4px 4px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(93, 47, 195, 0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: -1;
}

a {
  text-decoration: none;
  color: #9ca0b1;
}

.intro {
  text-align: center;
  h1 {
    color: #fff;
    font-size: 7vw;
    text-transform: uppercase;
    font-weight: 800;
    font-family: "Josefin Sans", sans-serif;
    background: linear-gradient(to right,#7b0ab0 10%, #7835d0 50%,#7b0ab0 100% );
    background-size: auto auto;
    background-clip: border-box;
    background-size: 10% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 12s linear infinite;
    display: inline-block;
    
  }
}

@keyframes textclip {
  to {
    background-position: 50% center;
  }
}

.aztitle{
    color: rgb(255, 112, 112);
    font-family: Optima, sans-serif;
    font-size: 10vh;
    text-align: center;
    margin-bottom: 0;
    font-weight: bold;
}
.description{ 
    font-family: monospace;
    font-size: 3.5vh;
    text-align: center;
    padding-top: 2%;
    padding-bottom: 5%;
    
}

.header{ 
    background-color: black; 
    color: white;             
    padding: 0;
    margin: 0;
    border: 0;
}
.tabs{
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    background-color: rgb(0, 0, 0);
    width: 100%;
    height: 9vh;
    overflow: hidden;
    margin: 0;
    padding: 0; 
    height: 9vh; 
    position:fixed;
    z-index: 1;

}

.tablinks:link, .tablinks:visited{
    position: relative;
    color: #fff;
    font-size: 4vh;
    padding: 5%;
    font-family: 'Lucida Console';
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #7b0ab0;
}

.tablinks:hover {
    color: #7b0ab0;
    transform: skew(-10deg) scale(1.1);
    text-shadow: 0 0 10px #7b0ab0;
    background: rgba(123, 10, 176, 0.2);
}

@keyframes tilt {
    0% {
        rotate: 0deg;
        background-color: black;
        color: red;
    }

    100% {
        rotate: 5deg;
        background-color: #5b2fc3;
    }
}


.body{
    margin: 0;
    padding: 0;
    border: 0;
    background-color: black;
}
#content{
    align-items    : center;
}
.t404t{
    color: rgb(131, 131, 131);
    font-family: Verdana;
    font-weight: bold;
    font-size: 20vh;
    text-align: center;
    float: center;
    justify-content: center;
    align-content  : center;
    align-items    : center;
}

.post-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12vh;
    position: relative;
}

.post {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #5b2fc3;
    padding: 25px;
    margin: 15px 0;
    width: 80%;
    border-radius: 0;
    position: relative;
    transform: skew(-3deg);
    box-shadow: 5px 5px 0px #5b2fc3;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out forwards;
    /* Add these properties for text containment */
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

.post:hover {
    transform: skew(-3deg) translateY(-5px);
    box-shadow: 8px 8px 0px #5b2fc3;
}

.post-time {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    color: #5b2fc3;
    text-align: right;
    font-weight: bold;
    letter-spacing: 1px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 15px;
    height: 5vh;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 2px solid #5b2fc3;
    color: #5b2fc3;
    transform: skew(-5deg);
    font-weight: bold;
    transition: all 0.3s ease;
}

.pagination a.active,
.pagination a:hover {
    background-color: #5b2fc3;
    color: #fff;
    box-shadow: 3px 3px 0px #000;
}

.login-trigger {
    position: fixed;
    left: 0;
    top: 0;
    width: 20px;
    height: 100vh;
    background-color: #333;
    opacity: 0.3;
    z-index: 100;
}

.login-trigger:hover {
    opacity: 0.5;
}

.login-form {
    position: fixed;
    left: -300px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #5b2fc3;
    color: #fff;
    font-family: 'Arial', sans-serif;
    transition: left 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 99;
    transform: skew(-5deg);
}

.login-form input {
    width: 90%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #444;
    background-color: #fff;
    color: #000;
    font-size: 14px;
    border-radius: 4px;
    background-color: #fff;
    border: 2px solid #5b2fc3;
    color: #000;
    transform: skew(5deg);
    font-weight: bold;
}

.login-form input:focus {
    outline: none;
    border-color: #5b2fc3;
}

.login-form button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #5b2fc3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover {
    background-color: #4925a3;
}

/* Update hover states */
.login-trigger:hover + .login-form,
.login-form:hover {
    left: 10px;
}

.new-post-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 20px 30px;
    background-color: #5b2fc3;
    color: white;
    border: none;
    transform: skew(-10deg);
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 5px 5px 0px #000;
    transition: all 0.3s ease;
    display: none;
}

.new-post-button:hover {
    background-color: #4925a3;
    transform: skew(-10deg) translateY(-5px);
    box-shadow: 8px 8px 0px #000;
}

.post-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.edit-btn, .delete-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    transform: skew(-5deg);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.edit-btn {
    background-color: #5b2fc3;
    color: white;
}

.delete-btn {
    background-color: #ff4444;
    color: white;
}

.edit-btn:hover {
    background-color: #4925a3;
}

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

.post-media {
    max-width: 100%;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-media img {
    max-height: 400px;
    object-fit: contain;
}

.post-media video {
    max-height: 400px;
    width: 100%;
}

/* Add animation for posts appearing */
@keyframes slideIn {
    from {
        transform: translateX(-100%) skew(-3deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) skew(-3deg);
        opacity: 1;
    }
}

.content-wrapper {
    max-width: 800px;
    width: 90%;
    margin: 12vh auto 2rem auto;
    padding: 0 20px;
    font-family: 'ubuntu', sans-serif;
    height: calc(100vh - 12vh); /* Set height to viewport height minus header */
    display: flex;
    flex-direction: column;
}

.post-input-section {
    background: rgba(30, 30, 30, 0.95);
    padding: 2rem;
    border: 2px solid #5b2fc3;
    margin-bottom: 2rem;
    position: sticky;
    top: 12vh;
    transform: skew(-3deg);
    box-shadow: 5px 5px 0px #5b2fc3;
    z-index: 10;
}

.post-input-section h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.8rem;
    transform: skew(3deg);
    text-shadow: 2px 2px 4px rgba(91, 47, 195, 0.5);
}

.post-input {
    display: flex;
    flex-direction: column;
    width: 80%;
    gap: 1rem;
    transform: skew(3deg);
}

.post-input textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #5b2fc3;
    border-radius: 0;
    font-family: 'ubuntu', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    /* Add these properties for text containment */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.submit-post-button {
    background: #5b2fc3;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: skew(-3deg);
    box-shadow: 3px 3px 0px #000;
}

.submit-post-button:hover {
    background: #7b0ab0;
    transform: skew(-3deg) translateY(-2px);
    box-shadow: 5px 5px 0px #000;
}

.posts-section {
    flex: 1;
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 10px; /* Add some padding for the scrollbar */
    transform: skew(-3deg);
}

.posts-section h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1.8rem;
    transform: skew(3deg);
    text-shadow: 2px 2px 4px rgba(91, 47, 195, 0.5);
}

.post p {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    /* Add these properties for text containment */
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
    /* Transform back to normal to counter parent skew */
    transform: skew(3deg);
}

.post-time {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn, .delete-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.edit-btn {
    background: #28a745;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.edit-btn:hover {
    background: #218838;
}

.delete-btn:hover {
    background: #c82333;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid #007bff;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #007bff;
    color: white;
}

.pagination a.active {
    background: #007bff;
    color: white;
}

.post-content {
    /* Add these properties for better content containment */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add custom scrollbar styling */
.posts-section::-webkit-scrollbar {
    width: 8px;
}

.posts-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.posts-section::-webkit-scrollbar-thumb {
    background: #5b2fc3;
    border-radius: 4px;
}

.posts-section::-webkit-scrollbar-thumb:hover {
    background: #7b0ab0;
}
