﻿/* Hide page initially until JavaScript finishes platform detection and setup */
body.initially-hidden {
    display: none;
}

/* Overall page styling */
body {
    font-family: 'Inter', sans-serif;
    text-align: center;
    background-color: #f5f5f5;
    padding-top: 100px;
    margin: 0;
}

/* Main white card container */
.container {
    background: #fff;
    width: 90%;
    max-width: 440px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 60px 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

/* App logo styling */
.logo {
    width: 50px;
    margin-bottom: 8px;
    border-radius: 12px;
}

/* Main title styling */
h2 {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #222;
}

/* Paragraph/description text styling */
p {
    font-size: 14px;
    line-height: 19px;
    color: #444;
    margin-bottom: 30px;
}

/* Fallback buttons layout and appearance */
#fallback button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
    padding: 12px;
    font-size: 15px;
    border-radius: 0;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

/* Mobile website button styling */
#mobileBtn {
    color: #222;
    font-weight: normal;
}

/* Hover/focus effect for fallback buttons */
#fallback button:hover,
#fallback button:focus {
    border-color: #d32f2f;
    outline: none;
}

/* Spinner shown while app open is being attempted */
#spinner {
    margin: 30px auto;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #cc0000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Spinner rotation animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hidden debug log panel styling */
.log-container {
    display: none;
    text-align: left;
    margin-top: 30px;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #ddd;
    font-size: 13px;
    max-height: 150px;
    overflow-y: auto;
    color: #333;
    border-radius: 8px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Utility class to fully hide elements */
.hidden {
    display: none !important;
}
