body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.profile-intro {
    text-align: center;
    margin-bottom: 20px;
}

.profile-intro h3 {
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
}

.profile-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.projects, .likes, .followers {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.followers {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    grid-column: 1 / -1; /* Make followers section span full width */
}

#followers-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

#projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.project-card, .like-card, .follower-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: transform 0.2s;
}

.project-card {
    margin-bottom: 0; /* Remove margin since we're using grid gap */
    height: 100%; /* Make all cards same height in row */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card h3 {
    margin-top: 0;
    color: #333;
}

.project-card a {
    margin-top: auto;
    display: inline-block;
    padding: 8px 15px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.project-card a:hover {
    background: #45a049;
}

.follower-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    height: 100%;
}

.follower-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.project-card:hover, .like-card:hover, .follower-card:hover {
    transform: translateY(-2px);
}

.sad-blob {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.crying-character {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.nuke-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 0, 0.1);
    border-radius: 10px;
}

.nuke-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: transform 0.2s;
}

.nuke-button:hover {
    transform: scale(1.1);
}

.nuke-button img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.pacer-button {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: transform 0.2s;
}

.pacer-button:hover {
    background: #45a049;
}

.falling {
    transition: transform 0.2s;
    transform-origin: center center;
}

.falling:hover {
    transform: rotate(5deg);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 540px;
    width: 90%;
    text-align: center;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.explosion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, white 0%, rgba(255,165,0,0.8) 30%, rgba(255,69,0,0.6) 70%, rgba(0,0,0,0.4) 100%);
    z-index: 1000;
    animation: explode 2s forwards;
    pointer-events: none;
}

.debris {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #666;
    border-radius: 50%;
    z-index: 1001;
    pointer-events: none;
}

@keyframes explode {
    0% { 
        opacity: 0;
        transform: scale(0);
    }
    10% { 
        opacity: 1;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% { 
        opacity: 0;
        transform: scale(2);
    }
}

.periodic-table, .faklements {
    grid-column: 1 / -1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

#periodic-table {
    display: grid;
    grid-template-columns: repeat(18, 60px);
    gap: 2px;
    margin: 20px 0;
    min-width: min-content;
}

#faklements-table {
    display: grid;
    grid-template-columns: repeat(20, 60px);
    gap: 2px;
    margin: 20px 0;
    min-width: min-content;
}

.element, .faklement {
    aspect-ratio: 1;
    width: 60px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    font-size: 0.8em;
    text-align: center;
}

.element:hover, .faklement:hover {
    transform: scale(1.1);
    z-index: 1;
}

.element .atomic-number {
    font-size: 0.8em;
    align-self: flex-start;
}

.element .symbol {
    font-weight: bold;
    font-size: 1.2em;
}

.element .name {
    font-size: 0.7em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.alkali-metal { background-color: #ff9b9b; }
.alkaline-earth { background-color: #ffd77f; }
.transition-metal { background-color: #fafaa0; }
.post-transition { background-color: #98ff98; }
.metalloid { background-color: #7ec0ee; }
.nonmetal { background-color: #ff99cc; }
.noble-gas { background-color: #c0c0ff; }
.lanthanide { background-color: #ffbfff; }
.actinide { background-color: #ff99ff; }
.cosmic { background-color: #9370DB; }
.technical { background-color: #20B2AA; }
.fictional { background-color: #FFD700; }
.lite { background-color: #98FB98; }

#element-details {
    padding: 20px;
}

#element-details h2 {
    margin-bottom: 15px;
    color: #333;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.property {
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.property-label {
    font-weight: bold;
    color: #666;
}

.element.empty {
    visibility: hidden;
}

.terraria-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.terraria-logo:hover {
    transform: scale(1.02);
}

.platformer-button {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.platformer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.platformer-modal {
    width: 800px;
    height: 600px;
    padding: 0;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

#platformerGame {
    width: 100%;
    height: 500px;
}

.game-controls {
    padding: 10px;
    background: #222;
    color: white;
    text-align: center;
}

.game-controls p {
    margin: 5px 0;
    font-size: 14px;
}

.mascots-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.mascot {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.2s;
}

.mascot:hover {
    transform: scale(1.1);
}

.evil-mode-button {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #800000, #500000);
    color: white;
    border: 2px solid #400000;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.evil-mode-button:hover {
    background: linear-gradient(45deg, #a00000, #600000);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.evil-mode {
    background-color: #200000 !important;
    color: #ff0000 !important;
}

.evil-mode .container {
    background-color: #300000 !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3) !important;
}

.evil-mode .projects, 
.evil-mode .likes, 
.evil-mode .followers,
.evil-mode .periodic-table,
.evil-mode .faklements {
    background-color: #400000 !important;
    border: 1px solid #ff0000 !important;
}

.evil-mode .project-card,
.evil-mode .like-card,
.evil-mode .follower-card {
    background-color: #500000 !important;
    border-color: #ff0000 !important;
}

.evil-mode a {
    color: #ff6666 !important;
}

.faklement {
    background-color: #ffcc99;
}

.evil-mode .faklement {
    background-color: #660000 !important;
    border-color: #ff0000 !important;
}

.gun {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 100px;
    height: auto;
    cursor: pointer;
    transform: rotate(-45deg);
    transition: transform 0.1s;
}

.gun:active {
    transform: rotate(-45deg) scale(0.95);
}

.greebus-loongus {
    position: fixed;
    width: 200px;
    height: 200px;
    z-index: 1000;
    transition: transform 0.1s;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(255,0,0,0.3));
}

.greebus-loongus img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gore-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #8b0000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
}

.being-eaten {
    position: relative;
    z-index: 2;
}

.greebus-button {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #8b0000, #400);
    color: #fff;
    border: 2px solid #600;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px #f00;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.greebus-button:hover {
    background: linear-gradient(45deg, #a00, #600);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.ufo-button {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #6b5bff, #4c89dc);
    color: white;
    border: 2px solid #4c89dc;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px #6b5bff;
    box-shadow: 0 0 20px rgba(107, 91, 255, 0.3);
}

.ufo-button:hover {
    background: linear-gradient(45deg, #7b6bff, #5c99ec);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(107, 91, 255, 0.5);
}

.ufo {
    position: fixed;
    width: 150px;
    height: auto;
    z-index: 1000;
    transition: all 1s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.beam {
    position: fixed;
    width: 100px;
    height: 200px;
    background: linear-gradient(to bottom, rgba(107, 91, 255, 0.8), transparent);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform-origin: top;
}

.being-abducted {
    transition: all 2s ease-in-out;
    z-index: 1000;
}

.anvil-button {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #666666, #333333);
    color: white;
    border: 2px solid #444;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px #888;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.anvil-button:hover {
    background: linear-gradient(45deg, #777777, #444444);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.admin-button {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 100;
    vertical-align: middle;
    margin-left: 10px;
}

.admin-button:hover {
    transform: scale(1.1);
}

.admin-button:active {
    transform: scale(0.95);
}

.vine-boom-button {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #32CD32, #228B22);
    color: white;
    border: 2px solid #006400;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px #00FF00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.vine-boom-button:hover {
    background: linear-gradient(45deg, #3CD33C, #32CD32);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.vine-boom-button.pressed {
    transform: scale(0.95);
}

.laser-beam-button {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff0066, #ff3300);
    color: white;
    border: 2px solid #cc0033;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px #ff0066;
    box-shadow: 0 0 10px rgba(255, 0, 102, 0.3);
}

.laser-beam-button:hover {
    background: linear-gradient(45deg, #ff1a75, #ff471a);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.5);
}

.laser-beam {
    position: fixed;
    top: 0;
    left: 50%;
    width: 4px;
    height: 0;
    background: linear-gradient(90deg, 
        rgba(255,0,0,0) 0%,
        rgba(255,0,0,0.5) 40%,
        rgba(255,255,255,1) 50%,
        rgba(255,0,0,0.5) 60%,
        rgba(255,0,0,0) 100%
    );
    transform-origin: top;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
}

.laser-beam.firing {
    animation: fireBeam 1s ease-out forwards;
    opacity: 1;
}

@keyframes fireBeam {
    0% {
        height: 0;
        transform: translateX(-50%) rotate(0deg);
    }
    20% {
        height: calc(sqrt((var(--targetX) * var(--targetX)) + (var(--targetY) * var(--targetY))));
        transform: translateX(-50%) 
            rotate(calc(atan2(var(--targetY), var(--targetX)) * 180deg / 3.14159rad));
    }
    80% {
        height: calc(sqrt((var(--targetX) * var(--targetX)) + (var(--targetY) * var(--targetY))));
        transform: translateX(-50%) 
            rotate(calc(atan2(var(--targetY), var(--targetX)) * 180deg / 3.14159rad));
        opacity: 1;
    }
    100% {
        height: calc(sqrt((var(--targetX) * var(--targetX)) + (var(--targetY) * var(--targetY))));
        transform: translateX(-50%) 
            rotate(calc(atan2(var(--targetY), var(--targetX)) * 180deg / 3.14159rad));
        opacity: 0;
    }
}

.dog-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.dog-image:hover {
    transform: scale(1.02);
}

.angry-cat {
    position: absolute;
    top: 0;
    left: 100px;
    width: 100px;
    height: 100px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

.angry-cat:hover {
    transform: translateX(-50%) scale(1.1);
}

.angry-cat:active {
    transform: translateX(-50%) scale(0.9);
}

.wikipedia-button {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #347bff, #72a1ed);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.wikipedia-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.wikipedia-modal {
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    padding: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.wikipedia-modal iframe {
    width: 100%;
    height: calc(100% - 40px);
    margin-top: 40px;
}

#cookie-game {
    display: none;
    padding: 20px;
    text-align: center;
}

.cookie-container {
    margin-bottom: 30px;
}

.cookie-button {
    width: 150px;
    height: 150px;
    cursor: pointer;
    transition: transform 0.1s;
    margin: 20px 0;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cookie-button:hover {
    transform: scale(1.1);
}

.cookie-button:active {
    transform: scale(0.95);
}

.upgrades-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.upgrade-button {
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
}

.upgrade-button:hover:not(:disabled) {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.upgrade-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cps-display {
    font-size: 1.2em;
    color: #666;
    margin: 10px 0;
}

#reset-button {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
}

#reset-button:hover {
    background: #ff6666;
    transform: translateY(-2px);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

@keyframes bloodSplatter {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}