/* Global Styles */
body {
    margin: 0;
    padding: 7px;
    font-family: monospace;
    font-size: 12pt;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: black;
    color: orange;
}

/* Links (Global, including email) */
a, a:link, a:visited, a:active {
    color: orange;
    text-decoration: none;
    border: 2px solid orange;
    border-radius: 10px;
    padding: 5px 10px;
    background-color: black;
    transition: all 0.3s ease;
}

a:hover {
    color: black;
    background-color: orange;
    border-color: orange;
}

/* Wrapper */
.wrapper {
    flex: 1;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid orange;
    border-radius: 10px;
}

/* Header Styles */
#floating-header {
    padding: 30px;
    position: fixed;
    top: 0;
    width: calc(100% - 74px);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    background: black;
    border: 2px solid orange;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 128px;
    height: 64px;
    border: 2px solid orange;
    border-radius: 10px;
}

.main-nav {
    margin-left: auto;
    padding-right: 50px;
    display: flex;
    gap: 10px;
}

.main-nav a {
    display: inline-block;
    padding: 10px 20px;
}

/* Content */
#content {
    flex: 1;
    padding: 140px 20px 140px 20px;
    box-sizing: border-box;
}

/* Grid View */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    border: 2px solid orange;
    border-radius: 10px;
}

.item {
    border: 2px solid orange;
    border-radius: 10px;
    padding: 10px;
    background-color: black;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.item:hover {
    background-color: orange;
}

.item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: orange;
    width: 100%;
}

.item-link:hover {
    color: black;
}

.item img {
    width: 128px;
    height: 128px;
    border: 2px solid orange;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.item-content {
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}

.item-title,
.item-username,
.item-desc {
    display: block;
    margin: 5px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.2;
    color: orange;
}

.item:hover .item-title,
.item:hover .item-username,
.item:hover .item-desc,
.item:hover .item-link,
.item:hover .username-link {
    color: black;
}

.username-link {
    color: orange;
    border: none;
    padding: 0;
    text-decoration: underline;
}

.item:hover .username-link {
    color: black;
}

.username-link:hover {
    background-color: transparent;
    color: black;
}

/* Single Item View */
.single-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 20px auto;
    border: 2px solid orange;
    border-radius: 10px;
    padding: 20px;
}

.single-item img {
    width: 128px;
    height: 128px;
    border: 2px solid orange;
    border-radius: 10px;
    object-fit: cover;
}

.item-details {
    width: 100%;
    margin-top: 10px;
}

.content-media {
    max-width: 100%;
    width: 100%;
    height: auto;
    border: 2px solid orange;
    border-radius: 10px;
}

/* Profile Info */
.profile-info {
    border: 2px solid orange;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}
.profile-info p {
    margin: 5px 0;
}
.profile-info strong {
    color: orange;
}
.profile-info em {
    color: #ffaa00;
}

/* Form Styles */
.responsive-form table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-form td {
    padding: 5px 0;
    vertical-align: top;
}

.responsive-form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.responsive-form .form-row label {
    margin-bottom: 5px;
}

.responsive-form input[type='text'],
.responsive-form input[type='password'],
.responsive-form textarea,
.responsive-form select {
    width: 100%;
    max-width: 100%;
    background-color: orange;
    color: black;
    border: 2px solid orange;
    border-radius: 10px;
    padding: 5px;
    box-sizing: border-box;
    font-family: monospace;
    font-size: 12pt;
}

.responsive-form textarea {
    height: 100px;
    resize: vertical;
}

.responsive-form input[type='submit'] {
    display: inline-block;
    padding: 10px 20px;
    background-color: black;
    color: orange;
    border: 2px solid orange;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right: 5px;
}

.responsive-form input[type='submit']:hover {
    background-color: orange;
    color: black;
    border-color: orange;
}

/* Footer Styles */
#floating-footer {
    position: fixed;
    bottom: 0;
    width: calc(100% - 14px);
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid orange;
    border-radius: 10px;
}

#floating-footer marquee {
    width: 90%;
    margin: 0 auto;
    color: orange;
    border: 2px solid orange;
    border-radius: 10px;
    padding: 5px;
}

#floating-footer p {
    width: 90%;
    margin: 5px auto;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    border: 2px solid orange;
    border-radius: 10px;
    padding: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #floating-header {
        padding: 15px;
        width: calc(100% - 44px);
    }
    .main-nav {
        padding-right: 10px;
        flex-wrap: wrap;
    }
    .main-nav a {
        margin: 5px;
    }
    #content {
        padding: 100px 10px 100px 10px;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .single-item {
        max-width: 100%;
        padding: 10px;
    }
}
