a:link, a:hover, a:active, a:visited{color: #000;} html, body{margin: 0; padding: 0; height: 100%; width: 100%;} canvas{margin: 0; padding: 0; border: none; display: block;} button:not([disabled]){cursor: pointer;} @font-face{ font-family: "Rametto"; src: url("data/styles/font.ttf"); } @font-face{ font-family: "Tajawal"; src: url("data/styles/Tajawal/Tajawal-Regular.ttf"); } *{ font-family: "Tajawal"; color: #000; font-size: 17px; } :root{ --if-width: 300px; --if-border-width: 5px; --if-padding: 25px; --if-content-width: calc(var(--if-width) - var(--if-padding) * 2); --if-background-color: rgb(70, 70, 70); --button-color: rgb(40, 143, 228); } .tooltip > .tooltiptext { visibility: hidden; width: 150px; background-color: var(--button-color); text-align: center; padding: 5px; border-radius: 5px; /* Position the tooltip text */ position: absolute; z-index: 1; bottom: 145%; left: 50%; margin-left: -80px; /* Fade in tooltip */ opacity: 0; transition: opacity 0.1s; } .tooltip:hover:disabled > .tooltiptext { visibility: visible; opacity: 1; } .tooltip > .tooltiptext::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -8px; border-width: 8px; border-style: solid; border-color: rgb(34, 137, 189) transparent transparent transparent; } #project_info{ position: absolute; bottom: 0; left: 0; width: var(--if-width); display: flex; align-items: baseline; } #project_info > *{ margin: 5px; font-size: 20px; height: 30px; } #user_feedback{ position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; background-color: rgba(83, 83, 83, 0.699); text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; } #user_feedback > *{ width: 50%; padding: 5px; box-sizing: content-box; margin: 5px; } #user_feedback > span{ font-size: 40px; margin: 20px; } /** * Standard styles */ #content{ display: grid; grid-template-columns: calc(var(--if-width) + var(--if-border-width)) calc(100% - (var(--if-width) + var(--if-border-width)) * 1) /**calc(var(--if-width) + var(--if-border-width)) */ ; grid-template-rows: 100%; width: 100%; height: 100%; } #interface{ background-color: var(--if-background-color); border: var(--if-border-width) solid rgb(200, 200, 200); } #p5_loading{ display: none; } /** Interface */ #interface{ border-width: 0 var(--if-border-width) 0 0; } #main, #lobby, #room, #game_room{ height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; } h1{ font-size: 30px; margin: 10px; width: 80%; word-wrap: break-word; text-align: center; } input[type=text]{ border: 2px solid; padding: 0; width: 200px; height: 30px; font-size: 25px; margin: 10px; text-align: center; } button:not(.player_ready){ width: 200px; height: 40px; margin: 10px; font-size: 25px; background-color: var(--button-color); border: 2px solid; } button:hover:not([disabled]){ filter: brightness(150%); } button:disabled{ filter: brightness(70%); } #interface > div:not(#project_info):not(#user_feedback) > *:last-child{ margin-bottom: 45px; } .fieldset_container{ width: 200px; height: auto; min-height: 100px; overflow-y: auto; background-color: rgb(50, 50, 50); border: 5px solid #000; margin-bottom: 10px; } .fieldset_container > div{ display: flex; flex-direction: column; align-items: center; } .fieldset_container > div > *{ width: 180px; height: auto; margin: 10px 0; word-wrap: break-word; } legend{ font-size: 25px; } table{ width: inherit; } td{ font-size: 20px; } td:nth-child(1){ width: 60%; } td:nth-child(2){ width: 40%; } td > input, td > select{ border-radius: 2px; border: 1px solid #000; background-color: rgb(95, 95, 95); width: 100%; } #lobby > input{ margin-bottom: 50px; } .player_listing{ display: flex; flex-direction: row; align-items: center; justify-content: flex-end; background-color: rgb(80, 80, 80); border-radius: 5px; } .player_listing > span{ margin-right: 15px; font-size: 30px; text-align: center; word-wrap: break-word; width: 126px; } .player_ready{ margin-right: 5px; width: 30px; height: 30px; background-color: none; border-radius: 4px; border: 2px solid #000; } .spectator_listing{ text-align: center; font-size: 30px; border-radius: 5px; background-color: rgb(100, 100, 100); } #game_players_holder{ height: auto; overflow-y: hidden; } .game_player{ font-size: 35px; text-align: center; width: 180px; word-wrap: wrap; border-radius: 5px; padding: 10px; } .join_type{ width: 100%; margin-bottom: 5px; }