diff --git a/docs/index.html b/docs/index.html index a21abd5..d90e1a5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,7 +11,7 @@ align-items: center; height: 100vh; margin: 0; - background-color: #062424; /* Change background color */ + background-color: #062424; } h1,h2,h3,h4,h5,h6 { @@ -23,7 +23,7 @@ } a { - color:cyan; + color: cyan; } .container { @@ -35,22 +35,23 @@ .box { width: auto; - height: 200px; /* Set fixed height */ + height: 200px; margin: 0 10px; display: flex; justify-content: center; align-items: center; background-color: #00f1f1; - border-radius: 5px; /* Rounded corners */ + border-radius: 5px; padding: 3px; overflow: hidden; text-decoration: none; + cursor: pointer; } .box img { - height: 100%; /* Same height for all images */ - width: auto; /* Maintain aspect ratio */ - border-radius: 5px; /* Slight rounding of the image itself */ + height: 100%; + width: auto; + border-radius: 5px; } .box:hover { @@ -64,23 +65,161 @@ } .flex-container { - display:flex; - align-items:center; - padding:1em; + display: flex; + align-items: center; + padding: 1em; + } + + /* Modal styles */ + .modal-overlay { + display: none; + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.85); + z-index: 1000; + backdrop-filter: blur(5px); + } + + .modal { + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: calc(81vw + 270px); + height: 81vh; + background: #000; + border-radius: 10px; + box-shadow: 0 0 20px rgba(0, 241, 241, 0.3); + z-index: 1001; + } + + .modal-content { + position: relative; + width: 100%; + height: 100%; + } + + .close-button { + position: absolute; + top: -40px; + right: 0; + background: #00f1f1; + border: none; + color: #062424; + width: 32px; + height: 32px; + border-radius: 50%; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + font-size: 18px; + font-weight: bold; + transition: background-color 0.2s ease; + z-index: 1002; + } + + .close-button:hover { + background: #fff; + } + + .game-iframe { + width: calc(100% - 200px); + height: 100%; + border: none; + border-radius: 10px; + } + + .loading { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + color: #00f1f1; + font-size: 1.2em; + } + + .game-description-panel { + position: absolute; + right: 0px; /* Panel appears on the right side */ + top: 0; + width: 280px; + height: 100%; + background: rgba(6, 36, 36, 0.95); + padding: 20px; + color: #f1f1f1; + border-left: 2px solid #00f1f1; + overflow-y: auto; + } + + .game-description-panel h3 { + color: #00f1f1; + margin: 0 0 15px 0; + } + + .game-description-panel h4 { + color: #00f1f1; + margin: 20px 0 10px 0; + } + + .game-description-panel ul { + list-style: none; + padding: 0; + margin: 0; + } + + .game-description-panel li { + margin-bottom: 8px; + color: #f1f1f1; + } + + @media (max-width: 1200px) { + .game-description-panel { + position: relative; + right: 0; + width: auto; + height: auto; + border-left: none; + border-top: 2px solid #00f1f1; + } + + .modal { + width: 90vw; + } + + .game-iframe { + width: 100%; + height: calc(100% - 200px); /* Adjust based on description panel height */ + } } - .flex-child { + @media (max-width: 768px) { + .modal { + width: 100vw; + height: 100vh; + border-radius: 0; + } + + .game-iframe { + border-radius: 0; + } + + .close-button { + top: 10px; + right: 10px; + } } - +
-

Puffer Ocean

- +

Puffer Ocean

Our growing collection of 1st party environments. All run 1M+ agent steps per second per cpu core. They are implemented in pure C and can be compiled as desktop or web apps. Read our docs here. All our tools are free and open source, but we do offer service packages for companies.

-
@@ -97,7 +236,6 @@

Puffer Ocean

-
-
+
- +
MOBA Thumbnail - +

Puffer MOBA

- +
Tactics Thumbnail - +

Puffer Tactics

-
+
- +
TCG Thumbnail - +

TCG

- +
Snake Thumbnail - +

Multiagent Snake

-
+
- +
Pong Thumbnail - +

Pong

- +
Breakout Thumbnail - +

Breakout

-
+
- +
Puffer Triad Thumbnail - +

Puffer Triad

- +
Connect4 Thumbnail - +

Connect4

+ + + + +