
body::before,
body::after {
    z-index: -1;
    pointer-events: none;
}
.logo-link {
    text-decoration: none;
    color: inherit;
}
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to bottom, #2c003e, #8e44ad, #f39c12);
    color: #fff;
    position: relative;
    overflow-x: hidden;
}
.login-box {
  color: black;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 15px 30px;
    color: #fff;
}

.dashboard-header .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #d6336c;
}

.dashboard-header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.dashboard-header nav .btn {
    background: #444;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, background 0.3s;
}

.dashboard-header nav .btn:hover {
    background: #d6336c;
    transform: scale(1.05);
}

/* 🎴 Dra kort-knappen med animation */
.draw-btn {
    background: linear-gradient(135deg, #d6336c, #ffcc00);
    color: #fff;
    font-weight: bold;
    position: relative;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(214,51,108, 0.7); }
    50% { transform: scale(1.08); box-shadow: 0 0 15px rgba(214,51,108, 0.7); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(214,51,108, 0.7); }
}



/* Siluetter */
body::before, body::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 500px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
}

body::before {
    left: 0;
    background-image: url('sil4.png');
}

body::after {
    right: 0;
    background-image: url('sil2.png');
}

/* Resten av din CSS är oförändrad */
header {
    text-align: center;
    padding: 40px 20px 10px;
    z-index: 1;
    position: relative;
}

.logo {
    font-family: 'Great Vibes', cursive;
    font-size: 3em;
    color: #f39c12;
    margin: 0;
}

.tagline {
    font-size: 1.2em;
    color: #fff;
    margin-top: 5px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: #f39c12;
    color: #2c003e;
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px 20px;
    z-index: 1;
    position: relative;
}

.hero h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5em;
    color: #f39c12;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

.hero hr {
    margin-top: 20px;
    border: 1px solid #f39c12;
    width: 60px;
}

/* Game cards */
.games {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    z-index: 1;
    position: relative;
}
.login-header {
    text-align: center;
    padding: 30px 0 10px;
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 14px;
    font-size: 18px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.login-form button {
    padding: 14px;
    font-size: 18px;
    border-radius: 8px;
    background: #6a1b9a;
    color: white;
    border: none;
    cursor: pointer;
}
.game-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #f39c12;
    border-radius: 15px;
    padding: 20px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.game-card h3 {
    color: #f39c12;
    margin-bottom: 10px;
}

.game-card p {
    font-size: 1em;
    margin-bottom: 20px;
}

.game-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

/* Button */
.btn {
    display: inline-block;
    background: #f39c12;
    color: #2c003e;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.btn:hover {
    background: #ffb6c1;
    color: #2c003e;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    z-index: 1;
    position: relative;
}

footer nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer nav a:hover {
    color: #f39c12;
}

.register-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.register-container h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #e63946;
}

.register-container p {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    color: #555;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.register-form label {
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #333;
}

.register-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
}

.register-form button {
    background: #e63946;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease;
}

.register-form button:hover {
    background: #d62839;
}

.login-container, .register-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.login-form, .register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: Black;
}

.login-form input, .register-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
}

.login-form button, .register-form button {
    background: #e63946;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-form button:hover, .register-form button:hover {
    background: #d62839;
}
/* Modal overlay */
.tip-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal box */
.tip-modal-content {
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    animation: fadeIn 0.25s ease;
}

/* Close button */
.tip-close {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 28px;
    cursor: pointer;
    color: #444;
}

/* Iframe */
#tip-frame {
    width: 100%;
    height: 350px;
    border-radius: 8px;
}
.tip-open-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
}

.tip-open-btn:hover {
    background: #005fcc;
}
/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-link a {
    display: inline-block;
    padding: 10px 18px;
    background: #d63384;
    color: white;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    background: #b82a6f;
}