body {
    font-family: Arial, sans-serif;
    display: flex;
    margin: 0;
    background: linear-gradient(145deg, #1a1a1a, #2d1b69);
    color: #fff;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: rgba(255, 20, 147, 0.1);
    padding: 10px;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    border-right: 1px solid rgba(255, 20, 147, 0.2);
}

.content {
    flex-grow: 1;
    padding: 20px;
    min-height: 100vh;
    margin-left: 270px;
}

.content h2 {
    max-width: 600px;
    margin: 0 auto 10px;
    color: #ff69b4;
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

.content p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: #ddd;
}

.content .tags {
    max-width: 600px;
    margin: 10px auto;
    font-style: italic;
    color: #aaa;
}

.content .choices {
    max-width: 600px;
    margin: 10px auto;
}

.content .footer {
    max-width: 600px;
    margin: 20px auto;
}

.category {
    margin-bottom: 10px;
    background: rgba(255, 20, 147, 0.2);
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    margin-right: 10px;
    border: 1px solid rgba(255, 20, 147, 0.3);
}

.category-header {
    cursor: pointer;
    padding: 5px;
    font-weight: bold;
    color: #ff69b4;
}

.category-header:hover {
    background: rgba(255, 20, 147, 0.3);
}

.category-toggle {
    margin-right: 5px;
}

.category-stories {
    display: none;
    padding-left: 20px;
}

.story {
    cursor: pointer;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.story:hover {
    background: #e0e0e0;
}

.active {
    display: block;
}

.filter {
    margin-bottom: 15px;
    background: rgba(255, 20, 147, 0.2);
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    margin-right: 10px;
    border: 1px solid rgba(255, 20, 147, 0.3);
}

.filter label {
    margin-right: 10px;
    white-space: nowrap;
    color: #fff;
}

.dynamic-icon {
    font-size: 12px;
    color: #ffcc00;
    margin-left: 5px;
}

.submit-choice {
    margin-top: 10px;
    background: #ff69b4;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.submit-choice:hover {
    background: #ff1493;
}

.auth-links {
    margin-bottom: 15px;
}

.auth-links a {
    margin-right: 10px;
    cursor: pointer;
    color: #ff69b4;
    
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    display: none;
    background: rgba(255, 20, 147, 0.1);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 20, 147, 0.2);
}

.form-container.active {
    display: block;
}

.form-container input,
.form-container textarea {
    width: 100%;
    margin-bottom: 10px;
    background: #2d1b69;
    color: #fff;
    border: 1px solid #ff69b4;
    padding: 10px;
    border-radius: 5px;
}

.form-container .error {
    color: #ff1493;
}

#content-inner {
    max-width: 600px;
    margin: 0 auto;
}

.story-card {
    background: linear-gradient(145deg, #1a1a1a, #2d1b69);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    color: #fff;
    border: 1px solid rgba(255, 20, 147, 0.2);
}

.story-card:hover {
    box-shadow: 0 12px 40px rgba(255, 20, 147, 0.5);
    transform: translateY(-5px);
}

.story-card h3 a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
}

.story-card h3 a:hover {
    color: #ff1493;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

.blurb {
    font-style: italic;
    color: #ddd;
    font-size: 1.1em;
    margin: 10px 0;
    line-height: 1.5;
    padding: 10px;
    background: rgba(255, 105, 180, 0.1);
    border-left: 3px solid #ff69b4;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    gap: 15px;
    flex-wrap: wrap;
}

.rating {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.xlevel {
    font-size: 1.5em;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

.readtime {
    color: #00ffff;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.read-icon {
    opacity: 0.7;
    font-size: 1.2em;
    color: #888;
    transition: opacity 0.3s ease;
}

.story-card:hover .read-icon {
    opacity: 1;
    color: #ff69b4;
}

.tags {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 10px;
}

.tags strong {
    color: #fff;
    text-shadow: 0 0 5px #ff69b4;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 20, 147, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.3);
}

.categories-section, .subtags-section, .filters-section, .stories-section {
    background: rgba(255, 20, 147, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 20, 147, 0.2);
}

.category.selected, .filter.selected {
    background: #ff69b4;
    color: #1a1a1a;
}

.login-form {
    background: rgba(255, 20, 147, 0.1);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 20, 147, 0.2);
}

input[type="text"], input[type="password"], input[type="email"], button[type="submit"] {
    background: #2d1b69;
    color: #fff;
    border: 1px solid #ff69b4;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 50%;
}

#search-input {
    width: 80%; /* eller den bredd du vill ha, t.ex. 600px eller 80% */
    box-sizing: border-box;
}

button[type="submit"] {
    background: #ff69b4;
    cursor: pointer;
}

button[type="submit"]:hover {
    background: #ff1493;
}

.error {
    color: #ff1493;
}

.story-part {
    background: rgba(255, 105, 180, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #ff69b4;
}

.choices label {
    display: block;
    margin-bottom: 10px;
    color: #ddd;
}

.footer {
    background: rgba(255, 20, 147, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.loader {
    border: 4px solid rgba(255, 105, 180, 0.3);
    border-top: 4px solid #ff69b4;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alla länkar på hela sajten */
a {
    color: #ff69b4 !important;          /* ljusrosa - matchar dina knappar */
    text-decoration: underline;         /* understruket så det syns tydligt som länk */
}

a:hover {
    color: #ff1493 !important;          /* starkare rosa vid hover */
    text-decoration: underline;
}


/* Modal för Refill hearts */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(45, 27, 105, 0.95);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #ff69b4;
    max-width: 600px;
    width: 90%;
    position: relative;
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.5);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    color: #ff69b4;
    cursor: pointer;
    font-weight: bold;
}

.close-modal:hover {
    color: #ff1493;
}

/* Tack-modal – samma färger som köp-modalen */
#tack-modal .modal-content {
    background: rgba(45, 27, 105, 0.95);
    border: 2px solid #ff69b4;
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.5);
}

#tack-modal h2 {
    color: #ff69b4;
}

#tack-modal .close-modal {
    color: #ff69b4;
}

#tack-modal .close-modal:hover {
    color: #ff1493;
}