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

body {
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-family: 'Inconsolata', monospace;
    margin: 0;
    padding: 0;
}

.lobby-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #2b2b2b;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h1,
h2,
h3 {
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-top: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #63b3ed;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #90cdf4;
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3b3b3b;
    border: 1px solid #555;
    color: #e0e0e0 !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-family: 'Inconsolata', monospace;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.btn:hover {
    background-color: #4a4a4a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 6px 12px;
}

.btn-primary {
    background-color: #2c5282;
    border-color: #2b6cb0;
    color: white !important;
}

.btn-primary:hover {
    background-color: #2b6cb0;
}

.btn-success {
    background-color: #276749;
    border-color: #2f855a;
    color: white !important;
}

.btn-success:hover {
    background-color: #2f855a;
}

.logout-btn {
    display: inline-block;
    margin-left: 10px;
}

.logout-btn button {
    background: none;
    border: 1px solid #555;
    color: #aaa;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: inherit;
    cursor: pointer;
}

.logout-btn button:hover {
    color: #fff;
    border-color: #777;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    background-color: #333;
    border: 1px solid #444;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li:hover {
    background-color: #383838;
}

.game-info {
    font-size: 15px;
}

.auth-links {
    margin-top: 20px;
}

/* Form Styles */
.field {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 8px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-family: 'Inconsolata', monospace;
    box-sizing: border-box;
    /* Ensures padding doesn't affect width */
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #63b3ed;
    box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.2);
}

input[type="submit"],
.actions input[type="submit"] {
    /* Replicating .btn and .btn-success styles */
    display: inline-block;
    padding: 8px 16px;
    background-color: #276749;
    border: 1px solid #2f855a;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-family: 'Inconsolata', monospace;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    margin-top: 10px;
}

/* Copy Feedback Animation */
.copy-feedback {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(72, 187, 120, 0.6);
    /* Green-400 with opacity */
    pointer-events: none;
    animation: ripple 0.6s linear forwards;
    transform: translate(-50%, -50%);
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

input[type="submit"]:hover,
.actions input[type="submit"]:hover {
    background-color: #2f855a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.actions {
    margin-top: 20px;
}

/* Confirmation Modal */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.15s ease-out;
}

.confirm-modal {
    background-color: #2b2b2b;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.15s ease-out;
}

.confirm-modal p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #e0e0e0;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}