/* public_html/styles/main.css */
/* * {border: 1px solid green;} */

        body {
            height: 98vh;
            width: 98vw;
            margin: 5px;
            padding: 0;
            font-family: 'Apple Color Emoji', 'Noto Color Emoji', 'Segoe UI Emoji', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            justify-content: center;
            align-items: center;
            background: #0a0c1b;
            color: white;
            position: relative;
        }
        
        

        #bg-rocket {
            font-size: 80vmin;
            width: 96%;
            line-height: 1;            
            position: absolute;
            inset: 0;
            top: 5px;
            left: 5px;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0.5;
            z-index: 0;
            transition: transform 1s linear, opacity 1s ease-out;
            height: 80%;
            pointer-events: none;
            padding-bottom: 5rem;
        }

        #bg-rocket.drift-in {
          animation: rocket-drift-in 1s ease-out forwards;
        }
        
        #bg-rocket.is-hovered {
            animation: rocket-shake 0.4s ease-in-out infinite, streaks 0.8s ease-in-out infinite;
        }        

        .login-container {
            position: relative;
            background-color: rgba(255, 255, 255, 0.1);
            /*backdrop-filter: blur(10px);*/
            border-radius: 15px;
            padding: 2rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            z-index: 2;
            width: auto;
            max-width: 400px;
            height: auto;
            border: 1px solid white;
        }

        .login-container h1 {
            text-align: center;
        }

        .cards {
          display: flex;
          flex-direction: row;
          justify-content: center;
          align-items: center;
          height: 90vh; /* prevents bottom overflow */
          width: 98vw;
          box-sizing: border-box;
        }

        .card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            margin-left: 20px;
            position: relative;
            background-color: rgba(255, 255, 255, 0.1);
            /*backdrop-filter: blur(10px);*/
            border-radius: 15px;
            border: 1px solid white;
            padding: 1rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            z-index: 2;
            width: 20%;
            max-width: 300px;
            min-width: 180px;
            height: 50vh;
            /*max-height: 300px;*/
        }

        .card h1 {
            text-align: center;
            margin-bottom: 1.5rem;
        }        

        .button {
            background-color: #007bff;
            color: white;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            border-radius: 5px;
            border: none;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .button:hover {
            background-color: #0056b3;
        }

        .clearButton {
            background-color: rgba(255, 255, 255, 0.0);
            color: white;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            border-radius: 5px;
            border: none;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .clearButton:hover {
            background-color: rgba(0, 56, 59, 0.1);
        } 
        


        form {
            display: flex;
            flex-direction: column;
        }

        label {
            margin: 0.5rem 0 0.25rem;
            font-weight: bold;
        }

        input[type="text"],
        input[type="password"] {
            padding: 0.75rem;
            border: none;
            border-radius: 8px;
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }

        input[type="submit"] {
            cursor: pointer;
            background-color: #1e90ff;
            color: white;
            padding: 0.75rem;
            border: none;
            border-radius: 8px;
            font-size: 1.2rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
            z-index: 3;
        }

        input[type="submit"]:hover {
            background-color: #187bcd;
        }

        .help-link {
            text-align: center;
            margin-top: 1rem;
            font-size: 1rem;
        }

        .help-link a {
            color: #ccc;
            text-decoration: none;
        }

        .help-link a:hover {
            text-decoration: underline;
        }


        #error-message {
            color: #ff4d4d;    
            min-height: 1.5em;
            margin-bottom: 1rem;
            font-size: 1em;
            font-weight: bold;
            text-align: center;
            /*transition: color 2.0s ease, opacity 2.0s ease-in-out;*/
            opacity: 0;
            transition: opacity 1.0s ease-in-out;
        }
        #error-message:empty::after {
          content: "\200b"; /* zero-width space */
        }

        /* Container holding the stars */
        .streaks {
          position: absolute;
          top: 0;
          left: 0;
          width: 90%;
          height: 80%;
          pointer-events: none; /* so it doesn't block interaction */
          overflow: hidden;
          z-index: 1;
        }
        
        
        /* Each star */
        .streaks .star {
            position: absolute;
            color: white;
            font-size: 1rem;
            opacity: 0;
            animation: streakFlyDynamic 1.5s linear forwards;
        }
        
        .header-bar {
            position: absolute;
            top: 0;
            left: 5px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            /*background: #000;*/
            color: #fff;
            padding: 10px 20px;
            width: 90vw;
            z-index: 90;
            /*box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);*/
            /*border: 1px solid white;*/
            border-radius: 15px;
            background-color: rgba(0, 0, 0, 0);
            /*background-color: #0a0c1b;*/
            opacity: 0;
            transition: opacity 1.0s ease-in-out;
        }
        
        .header-bar.header0 { border: 2px solid red; }
        .header-bar.header1 { border: 1px solid green; }
        .header-bar.header2 { border: 0; }
        
        .header-bar.fade-in { opacity: 1; }
        
        .header-left .logo {
            font-size: 1.2rem;
            font-weight: bold;
        }
        
        .header-right {
            display: flex;
            gap: 10px;
            align-items: center;
            padding: 5px 10px;
            margin-top: -15px;
        }

        .user-btn:hover {
            cursor: pointer;
        }
        
        .logout-link {
            color: #ff4d4d;
            text-decoration: none;
            font-weight: bold;
        }
        
        .logout-link:hover {
            text-decoration: underline;
        }

        
        @keyframes rocket-shake {
            0% { transform: translate(0, 0); }
            25% { transform: translate(-5px, 2px); }
            50% { transform: translate(5px, -2px); }
            75% { transform: translate(-3px, 3px); }
            100% { transform: translate(0, 0); }
        }
/*        
        @keyframes rocket-zoom {
            0% { transform: translate(0px, 0px); opacity: 0.5; }
            100% { transform: translate(500vw, -1000vh); opacity: 0;}
        }        
*/      
        @keyframes rocket-drift-in {
          from {
                transform: translate(0, 0) scale(0);
          }
          to {
                transform: translate(0, 0) scale(1);          }
        }
        
        .shake {
          animation: shake 0.4s ease;
        }
        
        @keyframes shake {
          0%   { transform: translateX(0); }
          20%  { transform: translateX(-8px); }
          40%  { transform: translateX(8px); }
          60%  { transform: translateX(-6px); }
          80%  { transform: translateX(6px); }
          100% { transform: translateX(0); }
        }
