source-code/
break-the-web
Public
codeCodeinfoIssues 0call_splitPull Requestsplay_circleActions
break-the-web/protobutnot/gemini-code-1779554972056.css
css192 lines3.5 KB
/* --- Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    overflow-x: hidden; /* Biar gak ada scroll horizontal aneh */
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00ff00; /* Hint warna hijau ala game lu */
}

/* --- Hero Section (Tempat Game) --- */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

/* --- Game Box Mechanics --- */
#game-box {
    width: 250px;
    height: 70px;
    background-color: #111;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#game-box.expanded {
    width: 800px;  /* Maksimal lebarnya segini, gak full screen */
    height: 500px;
    cursor: default;
    border-radius: 12px;
    align-items: flex-start;
    padding-top: 30px;
    background-color: #0a0a0a;
}

#play-text {
    position: relative;
    display: inline-block;
    transition: color 0.5s ease;
}

#letter-m {
    display: inline-block;
    position: relative;
    transition: color 0.3s;
}

.fade-out-text {
    color: transparent !important; 
}

.falling {
    animation: dropDown 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes dropDown {
    0% { transform: translateY(0); }
    60% { transform: translateY(400px); }
    75% { transform: translateY(370px); }
    90% { transform: translateY(400px); }
    95% { transform: translateY(390px); }
    100% { transform: translateY(400px); }
}

/* --- About Section --- */
.about-section {
    padding: 80px 10%;
    background-color: #fff;
    text-align: center;
}

.about-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

/* Styling khusus buat target curian kita */
#kunci-t {
    cursor: grab;
    display: inline-block;
    color: #111;
    transition: transform 0.2s, color 0.2s;
}

#kunci-t:hover {
    transform: scale(1.2);
    color: #00ff00; /* Nyala dikit pas di-hover biar user sadar ini bisa diinteraksi */
}

#kunci-t:active {
    cursor: grabbing;
}

.content-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: left;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.card p {
    color: #555;
    line-height: 1.6;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px;
    background-color: #111;
    color: #888;
}

About

Interact with the web page itself using HTML5 Drag-and-Drop to pull inputs and images directly into the Phaser physics engine. Alter the website state through bi-directional communication between React and Phaser, unlocking a glitchy horror mode. The game is built using React, Phaser 3, Zustand for state management, and Vanilla CSS.

ReactPhaser 3TypeScriptZustandVite

Contributors

1