html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(245, 247, 250) 0%, rgb(195, 207, 226) 100%);
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 400px;
    /* background: linear-gradient(to bottom, #eef6f5, #a6d0cb); */
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
}
/* .container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 10px;
} */

.top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.logo {
    /* max-width: 200px; */
    font-size: 3em;
    font-weight: 700;
    font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #2c5a52;
    letter-spacing: 2px;
    position: relative;
    text-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
    margin: 15px 0px;
}

.logo::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, transparent, #65b0a5, transparent);
    width: 140%;
    position: relative;
    left: -20%;
    top: 10%;
}
.logo::after {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, transparent, #65b0a5, transparent);
    width: 140%;
    position: relative;
    left: -20%;
    bottom: 0%;
}

.welcome {
    font-size: 1.3em;
    font-weight: bold;
    color: #4d4d4d;
    margin-top: 15px;
}

.middle-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.main-button {
    display: block;               /* Make both block-level */
    box-sizing: border-box;      /* Ensures padding/border don't add to width */
    text-align: center;          /* Center text inside the <a> */
    text-decoration: none;       /* Remove underline from <a> */
    /* background-color: #3b8d7c; */
    background: linear-gradient(90deg, rgb(59, 141, 124), rgb(101, 176, 165));    
    color: white;
    font-weight: bold;
    border: 2px solid #d8704d;
    padding: 12px 30px;
    margin: 10px auto;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 180px;
    transition: all 0.2s ease-in-out;
}
.main-button:hover {
    background-color: #337b6d;
}

.bottom-section {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.resource-button {
    background:#e9ecef;
    border: 1px solid rgb(171, 171, 171);
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    color: #4d4d4d;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}

.resource-button:hover {
    background-color: #dcdcdc;
}

#installBtn.install-button {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3b8d7c, #65b0a5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
}

#installBtn.install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

#installBtn.install-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#installBtn.install-button:focus-visible {
    outline: 3px solid rgba(82, 169, 155, 0.6);
    outline-offset: 4px;
}

#installBtn.install-button[hidden] {
    display: none;
}

#installBtn.install-button svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* iOS Install Modal Styles */
#iosInstallOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

#iosInstallTip {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#iosInstallTip svg {
    display: inline;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0 2px;
}

#iosInstallTip .close-btn {
    float: right;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}