* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, Helvetica, sans-serif; min-height: 100vh; background-color: #ccd3de; } hr { margin: 20px 0; } #root { background-color: white; width: 100%; height: 100vh; max-width: 960px; margin: 0 auto; } #home-container { height: 100%; display: grid; grid-template-rows: auto auto 1fr; } #home-header { text-align: center; margin: 20px 0; color: rgb(0, 73, 101); } #chat-widget-home { padding: 30px; } #chat-widget-home input { width: 100%; max-width: 300px; padding: 8px 10px; font-size: 1.1rem; border-radius: 8px; border: none; outline: none; background-color: rgb(207, 207, 207); } #chat-widget-home label { font-size: 0.9rem; margin-bottom: 5px; } #chat-widget-home div { margin-bottom: 20px; } #chat-widget-home button { height: calc(1.1rem + 20px); padding: 5px 10px; border-radius: 10px; font-weight: 600; letter-spacing: 0.5px; cursor: pointer; } #name-input { display: flex; flex-direction: column; } #name-row { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; } #name-row input { flex: 1; } #continue { padding: 8px 16px; white-space: nowrap; /* keeps “Continue” on one line */ } #code-label { display: block; } #continue { border: 2px solid green; color: white; background-color: green; transition: all 0.1s ease-in; } #continue:hover { background-color: white; color: green; } #root:has(#topic-container) { min-height: 100vh; height: auto; /* override the default 100vh */ } #topic-container { padding: 20px 40px 20px 40px; /* text-align: center; */ color: rgb(0, 73, 101); min-height: 100vh; } #topic-container h1 { margin-bottom: 10px; font-size: 2rem; text-align: center; } #topic-container p { margin-bottom: 30px; font-size: 1.1rem; color: rgb(40, 40, 40); text-align: center; } #topic-list { display: flex; flex-direction: column; align-items: center; gap: 20px; } #topic-list form { width: 100%; max-width: 350px; display: flex; justify-content: center; } .topic-btn { width: 100%; padding: 15px 20px; border-radius: 12px; border: 3px solid rgb(0, 73, 101); background-color: white; font-size: 1.1rem; font-weight: 700; color: rgb(0, 73, 101); cursor: pointer; transition: all 0.15s ease-in-out; letter-spacing: 0.5px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); } .topic-btn:hover { background-color: rgb(0, 73, 101); color: white; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2); } .topic-block { width: 100%; max-width: 860px; display: flex; flex-direction: column; align-items: center; text-align: justify; margin-bottom: 10px; } .topic-form-desc { width: 100%; margin-top: 15px; font-size: 1rem; line-height: 1.5; text-align: justify !important; } /* Make spacing look balanced on larger screens */ @media (min-width: 600px) { #topic-container { padding-top: 60px; } } #error { width: calc(100% - 60px); margin: 0 auto; padding: 10px; background-color: rgb(255, 210, 210); color: red; border-radius: 10px; font-weight: 900; } #room-container { height: 100%; display: grid; grid-template-rows: repeat(2, auto) 1fr; padding: 0 30px; padding-bottom: 30px; } #room-subsection { display: flex; flex-direction: column; justify-content: space-between; /* align-items: center; */ margin-bottom: 20px; } #room-code-display { color: rgb(0, 73, 101); } #room-code-display .topic-title { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; color: rgb(40, 40, 40); font-family: monospace; padding: 8px 5px; } #end-exp-btn { color: white; background-color: rgb(0, 73, 101); font-weight: 800; text-decoration: none; padding: 6px; border: 2px solid rgb(0, 73, 101); display: inline-block; margin-top: 5px; border-radius: 10px; transition: all 0.1s ease-in; } #end-exp-btn:hover { color: rgb(0, 73, 101); background-color: white; } #abort-exp-btn { color: white; background-color: rgb(226, 29, 29); font-weight: 800; text-decoration: none; padding: 6px; border: 2px solid rgb(226, 29, 29); display: inline-block; margin-top: 5px; border-radius: 10px; transition: all 0.1s ease-in; } #abort-exp-btn:hover { color: rgb(226, 29, 29); background-color: white; } .topic-header-row { display: flex; justify-content: space-between; align-items: center; width: 100%; } .topic-header-info { display: flex; gap: 20px; align-items: center; } /* .topic-header-buttons { display: flex; gap: 20px; align-items: center; } */ #room-topic-desc { margin-top: 20px; font-size: 1rem; line-height: 1.5; text-align: justify; } #chat-room-widget { height: 100%; position: relative; background-color: #e1eaf7; border: 4px solid #e1eaf7; border-radius: 15px; } #msgs-container { position: absolute; height: calc(100% - 50px); width: 100%; overflow-y: auto; background-color: #e1eaf7; padding: 10px; } #msgs-container > ul { list-style: none; } #message-box { position: absolute; bottom: 0; width: 100%; height: 50px; display: flex; align-items: flex-end; } #message-input { flex-grow: 1; resize: none; overflow-y: hidden; padding: 10px; font-size: 1.1rem; font-family: inherit; outline: none; border: 4px solid #e1eaf7; border-right: none; background-color: white; border-bottom-left-radius: 15px; min-height: 50px; max-height: 200px; } #send-btn { padding: 0 20px; font-size: 1.1rem; border: 4px solid #e1eaf7; border-left: none; background-color: rgb(0, 100, 140); color: white; cursor: pointer; border-bottom-right-radius: 15px; transition: all 0.1s ease-in; height: 50px; box-sizing: border-box; } #send-btn:hover { background-color: rgb(46, 175, 225); } .message-item { background-color: white; border-radius: 10px; padding: 10px; width: fit-content; max-width: 700px; margin: 10px 0; } .message-item p { word-wrap: break-word; overflow-wrap: break-word; word-break: break-word; white-space: pre-wrap; margin-bottom: 10px; } .peer-message-item { background-color: rgb(0, 100, 140); color: white; border-bottom-left-radius: 0; } .self-message-item { margin-left: auto; margin-right: 0; border-bottom-right-radius: 0; } .chat-user-sender { color: rgb(30, 30, 30); font-size: 1.1rem; background-color: rgb(230, 230, 230); border-radius: .5rem; padding: 2px 4px; } .chat-sender { color: white; font-size: 1.1rem; background-color: rgb(0, 75, 115); border-radius: .5rem; padding: 2px 4px; } .member-activity { text-align: center; margin: 10px 0; color: grey; } .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); z-index: 2000; } .modal-content { background: #ffffff; color: #333; border-radius: 12px; padding: 24px 28px; width: 380px; max-width: 90%; margin: 12% auto; /* centers vertically */ box-shadow: 0 10px 40px rgba(0,0,0,0.25); animation: fadeIn 0.25s ease-out; text-align: center; } .modal-content h3 { font-weight: bold; font-size: 1.50rem; line-height: 1.4; margin-bottom: 22px; } .modal-content p { font-size: 1.05rem; line-height: 1.4; margin-bottom: 22px; } .modal-buttons { display: flex; justify-content: center; gap: 12px; } .modal-btn { padding: 10px 18px; font-size: 0.95rem; font-weight: bold; border-radius: 8px; border: none; cursor: pointer; transition: 0.15s ease-in-out; } #abortYesBtn { background: #d9534f; color: white; } #abortYesBtn:hover { background: #c9302c; } #abortNoBtn { background: #e5e5e5; color: #333; } #abortNoBtn:hover { background: #ccc; } #topicYesBtn { background: green; color: white; } #topicYesBtn:hover { background: #016601; } #topicNoBtn { background: #e5e5e5; color: #333; } #topicNoBtn:hover { background: #ccc; } #welcomeOkBtn { background: green; color: white; } #welcomeOkBtn:hover { background: #016601; } #idYesBtn { background: green; color: white; } #idYesBtn:hover { background: #016601; } #idNoBtn { background: #e5e5e5; color: #333; } #idNoBtn:hover { background: #ccc; } #endYesBtn { background: rgb(0, 73, 101); color: white; } #endYesBtn:hover { background: #016991; } #endNoBtn { background: #e5e5e5; color: #333; } #endNoBtn:hover { background: #ccc; } .landing-links{ display: flex; justify-content: center; margin-top: 20vh; } .landing-links button { width: 60vh; height: 20vh; padding: 5px 10px; border: 5px solid black; border-radius: 10px; font-weight: 700; font-size: 4rem; letter-spacing: 1px; cursor: pointer; color: white; background-color: darkred; } .landing-links button:hover { background-color: white; color: darkred; } .tooltip { display: inline-block; cursor: pointer; position: relative; } .tooltiptext { font-weight: normal; font-size: 1rem; line-height: 2rem; width: 30rem; visibility: hidden; background-color: rgba(40, 40, 40, 0.96); color: #fff; text-align: center; border-radius: .4rem; padding: .3rem .5rem; position: absolute; z-index: 1; opacity: 0; transition: opacity .03s ease; } .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; } .prompt-btn { font-size: 1rem; padding: 6px; font-weight: 400; text-decoration: none; display: inline-block; background-color: darkgreen; color: #fff; border: 2px solid darkgreen; border-radius: 10px; cursor: pointer; line-height: 1; } .prompt-btn:hover { background-color: white; color: darkgreen; }