/* === General Reset === */ @keyframes popIn { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } :root { --chat-sent: var(--clr-1, #ec5f43); --chat-received: #ffffff; --chat-border: #ccc; --vh: 1vh; } @media only screen and (max-width: 768px) { .videocall__webcam { height: calc(var(--vh, 1vh) * 100 - 60px); } } @media only screen and (max-width: 359px) { .videocall__webcam { height: calc(var(--vh, 1vh) * 100 - 50px); } } @media only screen and (orientation: landscape) and (max-height: 600px) { .videocall__webcam { height: calc(var(--vh, 1vh) * 100 - 45px); } } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Bebas Neue', sans-serif; } .page { position: relative; } html, body { height: 100%; overflow: hidden; } body { background: #ffffff; display: flex; flex-direction: column; /* align-items: center; */ min-height: 100vh; background-image: url("Images/testingimage.png"); position: relative; } .page { display: flex; flex-direction: column; min-height: 100vh; width: 100%; } .header { background-color: #000; /* will be updated dynamically */ width: 100%; box-sizing: border-box; box-shadow: 0 4px 8px #FF5C3B; } /* === Header === */ .header__container { width: 100%; font-size: 15px; display: flex; color: #fff; padding: 10px; justify-content: space-between; align-items: center; height: 70px; } h1 { font-size: 26px; letter-spacing: 1px; line-height: 1; } .header__nav { } .header__menu { font-size: 15px; display: flex; justify-content: center; align-items: center; gap: 20px; list-style: none; } .header__menu-item { } .header__menu-link, .header__link { text-decoration: none; color: inherit; } .videocall__webcam { display: flex; justify-content: center; align-items: center; gap: 20px; box-sizing: border-box; } /* Video wrapper for hover functionality */ .video-container, .video-wrapper { position: relative; height: 100%; width: 100%; } video { background: #222; box-shadow: 0 -4px 8px #000000; border-radius: 20px; position: relative; width: 101%; height: 101%; left: -.5%; top: -.5%; max-width: 101%; max-height: 101%; object-fit: cover; } /* User info overlay (hidden by default, shows on hover) */ .current-user-info, .partner-user-info { position: absolute; top: 20px; left: 20px; background: rgba(0, 0, 0, 0.85); color: white; padding: 15px 20px; border-radius: 10px; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 10; min-width: 220px; backdrop-filter: blur(10px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); } .video-wrapper:hover .current-user-info, .video-container:hover .partner-user-info { opacity: 1; } .current-user-info h4, .partner-user-info h4 { margin: 0 0 8px 0; font-size: 25px; color: #fff; font-weight: bold; } .current-user-info p, .partner-user-info p { margin: 4px 0; font-size: px; color: #ddd; line-height: 1.4; } .current-user-info .user-rating, .partner-user-info .user-rating { margin: 8px 0; font-size: 15px; color: #ffd700; line-height: 1.4; font-weight: bold; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); } .current-user-info .user-stats, .partner-user-info .user-stats { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 16px; color: #fff; display: flex; gap: 15px; justify-content: center; } /* Loading overlay */ .loading-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 20px; z-index: 5; } .loading-bg { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; border-radius: 20px; } .loading-spinner { width: 70px; height: 70px; border: 5px solid rgba(255, 255, 255, 0.2); border-top: 5px solid #fff; border-radius: 50%; animation: spin 0.8s linear infinite; z-index: 1; margin-bottom: 25px; } .loading-text { color: white; font-size: 20px; z-index: 1; } .video-container { position: relative; display: inline-block; } /* Updated smash-or-pass overlay */ .video-container .smash-or-pass { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); flex-direction: column; align-items: center; background: rgba(0, 0, 0, 0.9); padding: 25px 30px; border-radius: 15px; gap: 15px; z-index: 15; min-width: 280px; } .video-container:hover .smash-or-pass { display: flex; } .smash-prompt { color: white; font-size: 24px; margin-bottom: 10px; text-align: center; font-weight: bold; } .smash-prompt .partner-name { color: #ff5c5c; font-weight: bold; } .smash-buttons { display: flex; gap: 15px; } .emoji-fall { position: fixed; top: -2em; font-size: 2em; pointer-events: none; z-index: 9999; animation-name: fall; animation-timing-function: linear; } @keyframes fall { to { transform: translateY(110vh); opacity: 0; } } /* === Main Layout Section === */ .videocall__footer { display: flex; flex-direction: row; justify-content: center; width: 100%; position: relative; transform: none; filter: none; perspective: none;