body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

.desk {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #AA8855;
    background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h180v180H0z' fill='%23aa8855' fill-opacity='0.2'/%3E%3Cpath d='M0 90h180v1H0z' fill='%23000' fill-opacity='0.03'/%3E%3Cpath d='M90 0v180h1V0z' fill='%23000' fill-opacity='0.03'/%3E%3C/svg%3E");
    cursor: default;
}

.paper {
    position: absolute;
    width: 280px;
    height: 200px;
    padding: 20px;
    background-color: #f8f9fa;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    cursor: grab;
    user-select: none;
    transition: box-shadow 0.2s ease, transform 0.3s ease;
    border-radius: 2px;
    box-sizing: border-box;
}

.project-paper {
    padding: 15px;
    padding-bottom: 32px;
    height: auto;     /* Let content determine height */
    min-height: 280px; /* Minimum height for consistency */
}

.paper:hover {
    box-shadow: 3px 3px 12px rgba(0,0,0,0.2);
}

.paper.active {
    cursor: grabbing;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.25);
}

.paper.paper-opening {
    transform: scale(1.05) !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.paper-title {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.paper-content {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.4;
}

.paper-id {
    position: absolute;
    bottom: 7px;
    right: 10px;
    color: #ccc;
    font-size: 0.75rem;
}

/* Regular paper view button */
.paper-view-button {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.paper:not(.project-paper):hover .paper-view-button {
    opacity: 1;
}

.paper-view-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}
.project-screenshot-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    background-color: rgba(0,0,0,0.85);
    color: white;
    padding: 8px 10px;
    border-radius: 4px;
    opacity: 0.7;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: 80px;  /* Ensure minimum space */
}

.project-paper:hover .project-overlay {
    transform: translateY(0);
}

.project-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 4px;
}

.project-description {
    font-size: 0.85em;
    margin-bottom: 8px;
    opacity: 0.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.tech-tag {
    background-color: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7em;
    backdrop-filter: blur(10px);
}

.project-buttons {
    display: flex;
    gap: 6px;
}

.project-button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 0.75em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.live-button {
    background-color: #2196f3;
    color: white;
}

.live-button:hover {
    background-color: #1976d2;
}

.github-button {
    background-color: rgba(255,255,255,0.9);
    color: #333;
}

.github-button:hover {
    background-color: white;
}

.instructions {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: #555;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .paper {
        width: 240px;
        height: 160px;
        padding: 15px;
    }
    
    .paper-title {
        font-size: 1.2rem;
    }
    
    .paper-content {
        font-size: 0.85rem;
    }
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}