@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Questrial&display=swap');

:root {
    --ohc-blue: #2e4673;
    --ohc-green: #5f9f41;
}


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

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

header {
    text-align: left;
    margin-bottom: 20px;
    position: relative;
}

.blue-text {
    color: var(--ohc-blue);
}

.green-text {
    color: var(--ohc-green);
}


body {
    font-family: 'Lato', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

button {
    margin: 4px;
}

.post {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    gap: 10px;
    max-width: 1000px;
    cursor: pointer;
}

.post.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    cursor: pointer;
}

.post.drag-over {
    border: 2px dashed #3498db;
    background: #ecf0f1;
}

.postDetails {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: auto;
    width: 95%;
}

.post-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.post-name:hover {
    box-shadow: 0 0 8px rgba(119, 119, 119, 0.3);
}

.post-note {
    font-size: 16px;
    font-style: italic;
    color: #888;
    margin-bottom: 15px;
}

.post-note:hover {
    box-shadow: 0 0 8px rgba(119, 119, 119, 0.3);
}

.post-content {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.post-content:hover {
    box-shadow: 0 0 8px rgba(119, 119, 119, 0.3);
}

.btn-container {
    text-align: center;
    width: 250px;

}

.post-delete-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.post-delete-btn:hover {
    background: #c0392b;
}   

.post-copy-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 5px;
    position: relative;
}   
.post-copy-btn:hover {
    background: #2980b9;
}
.post-content b {
    color: red;
}
.post-content i {
    color: blue;
}
.post-content u {
    color: green;
    text-decoration-color: green;
}
.post-content strong {
    color: orange;
}
.post-content em {
    color: purple;
}
.post-content mark {        
    background-color: yellow;
    color: black;
}
.post-content small {
    font-size: 12px;
    color: gray;
}       
.post-content del {
    text-decoration: line-through;
    color: lightgray;
}
.post-content ins {
    text-decoration: underline;
    color: teal;
}
.post-content sub {       
    font-size: 12px;
    vertical-align: sub;
    color: brown;
}

.post-content sup {       
    font-size: 12px;
    vertical-align: super;
    color: magenta;
}
.post-content code {       
    font-family: 'Courier New', Courier, monospace;
    background: #f4f4f4;            
    padding: 2px 4px;
    border-radius: 3px;
    color: #c7254e;
}

.post-id {
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 12px;

}


.addContainer {
    max-width: 1200px;
    margin: auto;
    
    display:block;
}

.addPostForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
}

.add-post-btn {
    background: #2ecc71;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.add-post-btn:hover {
    background: #27ae60;
}

.post-update-btn {
    background: #f39c12;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}
.post-update-btn:hover {
    background: #d35400;
}

/* The "Copied!" message (hidden by default) */
.post-copy-btn.copied::after {
  content: "Copied!";
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translate(-120%, 20px);
  color: green;
  font-size: 0.9em;
  opacity: 0;
  animation: fadeout 1.5s forwards;
}

/* Fade-out animation */
@keyframes fadeout {
  0%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}


.addPostForm input[type="text"],
.addPostForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
}
.addPostForm textarea {
    resize: vertical;
    min-height: 100px;
}
.addPostForm label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}   

@media (max-width: 768px) {
    .post {
        flex-direction: column;
    }
    .btn-container {
        text-align: center;
        width: 100%;
    }
}   

footer {
    text-align: center;
    margin-top: 20px;
    color: #777;
    font-size: 14px;
}

.hamburger-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--ohc-blue);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;

}

.hamburger-btn:hover {
    background: var(--ohc-green);
}

.menu-container {
    position: fixed;
    top: 0;
    right: -250px; /* Hidden off-screen */
    width: 250px;
    height: 100vh;
    background: #2c3e50;
    transition: right 0.3s ease;
    z-index: 999;
    padding-top: 60px;
}

.menu-container.active {
    right: 0; /* Slide in */
}

.menu-container ul {
    list-style: none;
    padding: 0;
}

.menu-container li {
    padding: 15px 20px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-container li:hover {
    background: #34495e;
}

.gradient-title {
    background: linear-gradient(135deg, var(--ohc-blue), var(--ohc-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--ohc-blue), var(--ohc-green));
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}