body {
    margin: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #0747a6;
    /* JIRA blue */
    color: #ffffff;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hud {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 100;
}

.hud div {
    margin: 5px 0;
}

#scoreboard {
    font-size: 1.2em;
    margin-bottom: 10px;
}

#tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    z-index: 100;
}

.tip-header {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #0052cc;
}

.tip-content {
    font-size: 0.9em;
    line-height: 1.4;
}

.tip-content ol {
    margin-top: 5px;
    padding-left: 20px;
}

.ticket {
    position: absolute;
    width: 200px;
    padding: 15px;
    background: #ffffff;
    border-radius: 3px;
    cursor: grab;
    user-select: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.ticket:hover {
    transform: scale(1.05);
}

.ticket.dragging {
    cursor: grabbing;
    opacity: 0.8;
}

.ticket-title {
    font-weight: bold;
    color: #172b4d;
    font-size: 0.9em;
}

.ticket-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.ticket-type,
.ticket-priority,
.ticket-points {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(23, 43, 77, 0.95);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    z-index: 2;
    width: 400px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hidden {
    display: none;
}

button {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #0052cc;
    /* JIRA blue */
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

button:hover {
    background-color: #0747a6;
}

.slack-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(3px);
}

.slack-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-family: Slack-Lato, appleLogo, sans-serif;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }

    70% {
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.slack-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-right: 30px;
}

.slack-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.slack-user {
    font-weight: bold;
    color: #1D1C1D;
    margin-bottom: 4px;
    font-size: 18px;
}

.slack-time {
    color: #616061;
    font-size: 14px;
}

.slack-content {
    color: #1D1C1D;
    line-height: 1.46668;
    margin: 20px 0;
    font-size: 16px;
    font-weight: 400;
}

.slack-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #611f69;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.slack-close:hover {
    background: #4a1751;
}

/* Zoom Meeting Styles */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    backdrop-filter: blur(3px);
}

.zoom-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #242424;
    border-radius: 12px;
    width: 800px;
    height: 500px;
    z-index: 1002;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.3s ease-out;
}

.zoom-header {
    background: #1a1a1a;
    padding: 15px 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.zoom-title {
    font-size: 16px;
    font-weight: 500;
}

.zoom-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 150px);
}

.zoom-participants {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    padding: 20px;
}

.zoom-participant {
    background: #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #888;
}

.zoom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #1a1a1a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.zoom-button {
    background: #333;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    transition: background-color 0.2s;
}

.zoom-button:hover {
    background: #444;
}

.zoom-button.red {
    background: #e02f2f;
}

.zoom-button.red:hover {
    background: #c42828;
}

/* Start Screen Styles */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 71, 166, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
    text-align: center;
}

.start-screen h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.start-screen .instructions {
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
}

.start-screen ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.start-screen li {
    margin: 10px 0;
}

.start-button {
    background: #36B37E;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.start-button:hover {
    background: #2ea06e;
    transform: translateY(-2px);
}