@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Kameron:wght@400..700&display=swap'); @font-face { font-family: 'ps'; src: url('../Fonts/TheRaveIsInYourPants-YxxO.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'x360'; src: url('../Fonts/X360.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Dolce'; src: url('../Fonts/Dolce\ Vita\ Heavy\ Bold.ttf') format('truetype'); font-weight: normal; font-style: normal; } * { margin: 0; padding: 0; user-select: none; } body { background-color: #1e1e1e; color: white; margin: 0; padding: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; /* Prevent horizontal scroll */ } .abril-fatface-regular { font-family: "Dolce", serif; font-weight: 400; font-style: normal; } /* Flexbox container for the main layout */ .main-layout { display: flex; flex: 1; flex-direction: row; overflow: auto; } /* Initially hide the menu */ #menu { opacity: 0; visibility: hidden; transition: opacity 2.5s ease, visibility 2.5s ease; } /* Show the menu with fade-in effect */ #menu.show { opacity: 1; visibility: visible; } /* Hide the menu with fade-out effect */ #menu.hide { opacity: 0; visibility: hidden; } /* Initially hide the menu */ #custom-css-section { opacity: 0; visibility: hidden; transition: opacity 2.5s ease, visibility 2.5s ease; } /* Show the menu with fade-in effect */ #custom-css-section.show { opacity: 1; visibility: visible; } /* Hide the menu with fade-out effect */ #custom-css-section.hide { opacity: 0; visibility: hidden; } /* Sidebar and menu */ #custom-css-section, #menu { display: flex; flex-direction: column; gap: 20px; position: fixed; top: 20px; z-index: 10; } #custom-css-section { left: 20px; width: 250px; /* Reduced width for better responsiveness */ height: calc(100% - 40px); } #menu { right: 20px; } /* Warning header for disconnected controller */ a { text-decoration: none; } #controller-disconnected { font-family: 'Dolce', sans-serif; display: none; background-color: #ff4f4f; color: white; padding: 10px; text-align: center; font-size: 1.2em; font-weight: bold; } #controller-container { margin-left: 250px; /* Adjusted to align with the sidebar */ flex: 1; padding: 20px; /* Added padding for content spacing */ display: flex; flex-direction: column; } /* Responsive adjustments */ @media (max-width: 768px) { #custom-css-section { width: 200px; } #controller-container { margin-left: 0; margin-top: 20px; } } #url-field { width: 93%; /* Make it responsive */ padding: 10px; background-color: #333; border: none; color: white; border-radius: 5px; text-align: center; } /* General button styles */ button { background-color: #333; color: white; border: none; border-radius: 5px; padding: 10px 15px; font-size: 16px; cursor: pointer; transition: background-color 0.3s ease; text-align: center; font-family: "Dolce", serif; } button:hover { background-color: #555; } button:active { background-color: #777; } /* Specific styles for .custom class buttons */ .custom { background-color: #282a36; } .custom:hover { background-color: #3a3f5a; } .custom:active { background-color: #4a4f6a; } /* Adjustments for button width in specific containers */ #menu button, #custom-css-section button { width: 100%; } /* Keyframes for sliding down (opening) */ @keyframes slideDown { 0% { max-height: 0; opacity: 0; transform: translateY(-10px); } 100% { max-height: 500px; opacity: 1; transform: translateY(0); } } /* Keyframes for sliding up (closing) */ @keyframes slideUp { 0% { max-height: 500px; opacity: 1; transform: translateY(0); } 100% { max-height: 0; opacity: 0; transform: translateY(-10px); } } /* Dropdown container */ .dropdown-content { display: none; flex-direction: column; gap: 10px; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-10px); } .dropdown-content.open { display: flex; animation: slideDown 0.5s forwards ease-in-out; } .dropdown-content.close { animation: slideUp 0.5s forwards ease-in-out; } /* Custom styles for the dropdown */ #player-select { background-color: #333; color: white; border: 1px solid #444; border-radius: 5px; padding: 10px; font-family: "kameron", serif; font-size: 16px; width: 100%; outline: none; transition: background-color 0.3s ease, border-color 0.3s ease; } #player-select:focus { border-color: #282a36; background-color: #444; } /* Custom styles for