body {
    font-family: Arial, sans-serif;
    text-align: center;
    direction: rtl;
    margin: 0;
    padding: 0, 5vh;
    max-width: 60vh;
    margin: auto;
    font-size: 2.1vh;
}
.header-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 0vh;
}
.container {
    width: 94%;
    max-width: 56vh;
    margin: 0 auto;
    padding: 1.6vh 2.2vh;
    border-radius: 1.4vh;
}

h1 {
    font-size: 3.2vh;
}
h2 {
    font-size: 3.4vh;
    color: grey;
}
span.blue-text {
    color: #007bff;
    font-size: 2.5vh;
}
p, #result-message, #skip-btn {
    font-size: 2.2vh;
}   

.difficulty {
    display: flex;
    justify-content: center;
    gap: 1.2vh;
    margin-bottom: 1.2vh;
    direction: rtl;
}

.difficulty-btn {
    background: #e9ecef;
    color: #999999;
    padding: 1.2vh 2.2vh;
    border-radius: 2.8vh;
    font-size: 2.1vh;
    transition: all 0.2s ease;
    width: 39.6%;
    height: 3.8vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    font-weight: bold;
    position: relative;
}

.current-level {
    background: #007bff;
    color: white;
    font-size: 2.2vh;
}

.difficulty-number {
    position: absolute;
    right: 1.2vh;
    font-size: 1.6vh;
}

.hint-box {
    background: #f6fbff;
    padding: 2vh;
    border-radius: 0.8vh;
    text-align: right;
    box-shadow: 0 0 0.48vh rgba(0, 0, 0, 0.1);
    font-size: 2.1vh;
}

.hint-icon {
    width: 12vh;
    height: 12vh;
    margin-bottom: 0.8vh;
}
#hint-icon {
   
    margin: auto;
}

input {
    width: 93%;
    padding: 1.6vh;
    margin-top: 2vh;
    border: 1px solid #e0e0e0;
    border-radius: 2.8vh;
    text-align: right;
    font-size: 2.1vh;
    box-shadow: 0 0.24vh 0.48vh rgba(0,0,0,0.1);
}

button#submit-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 1.2vh;
    width: 85%;
    margin-top: 1.6vh;
    border-radius: 2.8vh;
    cursor: pointer;
    font-size: 2.8vh;
    font-weight: bold;
    box-shadow: 0 0.24vh 0.48vh rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

button#submit-btn:hover {
    background: #4c9ae9;
    transform: translateY(-.5vh);
    box-shadow: 0 0.48vh 0.96vh rgba(0,0,0,0.2);
}

#result-message {
    margin-top: 1.2vh;
    font-size: 2.16vh;
    font-weight: bold;
    margin-bottom: .3vh;
}

#skip-btn {
    font-size: 2.1vh;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    color: #9f9f9f;
}
#skip-btn:hover {
    opacity: 0.7;
}
.hint-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.start-button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 1.2vh;
    width: 24vh;
    margin-top: 1.6vh;
    border-radius: 2.8vh;
    cursor: pointer;
    font-size: 2.8vh;
    font-weight: bold;
    box-shadow: 0 0.24vh 0.48vh rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
.start-button:hover {
    background: #4c9ae9;
    transform: translateY(-.5vh);
    box-shadow: 0 0.48vh 0.96vh rgba(0,0,0,0.2);
}

.difficulty-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.2vh;
    margin: auto;
}

.difficulty-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.difficulty-btn.start-screen {
    width: 100%;
    color: white;
    margin-top: 1.2vh;
    background-color: #007bff;
    font-size: 2.1vh;
}
#share-btn {
    background: #5ec535;
    color: white;
    border: none;
    padding: 1.2vh;
    width: 60%;
    margin-top: 1.8vh;
    border-radius: 3vh;
    cursor: pointer;
    font-size: 3vh;
    font-weight: bold;
    box-shadow: 0 0.24vh 0.48vh rgba(0,0,0,0.2);
}
#share-btn:hover {
    background: #68db3b;
    transform: translateY(-.5vh);
    box-shadow: 0 0.48vh 0.96vh rgba(0,0,0,0.2);
}

#time-left {
    font-size: 1.5vh;
    margin-top: 1.2vh;
    color: grey;
}
.website-link {
    color: #007bff;
    text-decoration: none;
    font-size: 3.5vh;
    margin-top: 3.2vh;
}
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.popup-footer {
    position: fixed;
    height: 70vh;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    border-radius: 10px 10px 0 0;
    max-width: 100vh;
}

.popup-footer.open {
    transform: translateY(0);
}

.popup-footer.closed {
    transform: translateY(80%);
}

.footer-content {
    padding: 20px;
    text-align: center;
    margin-top: 4vh;
}

.close-footer {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 24px;
    cursor: pointer;
}

.footer-content {
    padding: 20px;
    text-align: center;
    direction: rtl;
}

.text {
    font-size: 2.5vh;
    color: black;
    margin: 10px 0;
}

/* CTA text styling */
.cta {
    font-size: 2.1vh;
    font-weight: bold;
    margin: 0;
    margin-bottom: 6px;
    color: #333;
    line-height: 1.4;
}

/* Description text styling */
.cta-desc {
    font-size: 1.7vh;
    color: #666;
    margin: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.highlight-blue {
    color: #2979FF; /* Blue text */
    font-weight: bold;
    font-size: 2.2vh;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

/* Share button */
.btn-circle:nth-child(1) {
    background: linear-gradient(145deg, #2f9d44, #25802e);
}

.btn-circle:nth-child(1):hover {
    background: linear-gradient(145deg, #33ae4a, #2a9134);
    transform: translateY(-2px);
}

/* Facebook button */
.btn-circle:nth-child(2) {
    background: linear-gradient(145deg, #3b5998, #2f477a);
}

.btn-circle:nth-child(2):hover {
    background: linear-gradient(145deg, #4267B2, #365899);
    transform: translateY(-2px);
}

/* Twitter/X button */
.btn-circle:nth-child(3) {
    background: linear-gradient(145deg, #14171A, #000000);
}

.btn-circle:nth-child(3):hover {
    background: linear-gradient(145deg, #1DA1F2, #14171A);
    transform: translateY(-2px);
}

/* Instagram button */
.btn-circle:nth-child(4) {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-circle:nth-child(4):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-2px);
}

/* Active state for all buttons */
.btn-circle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

/* Add this if you want a pressed effect when sharing */
.btn-circle.sharing {
    animation: press 0.2s ease-in-out;
}

@keyframes press {
    0% { transform: scale(1); }
    50% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

/* Add safe area padding for iOS devices */
@supports (padding: max(0px)) {
    footer {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

.bottom-buttons {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    background: #fff;
    border-top: 1px solid #ccc;
}

.bottom-btn {
    flex: 1;
    padding: 12px 0;
    font-size: 1.5em;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: background 0.2s;
}

.left-btn {
    border-left: 1px solid #ccc;
    color: #3b82f6;
}

.right-btn {
    color: #333;
}

.blue-text {
    color: #3b82f6;
    font-weight: bold;
    font-size: 0.9em;
}
.bottom-btn-img {
    height: 40px;      /* Adjust as needed for your design */
    max-width: 90%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.collapsible-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Heebo', sans-serif;
    padding: 24px 16px 12px 16px; /* Extra top padding for X icon */
    height: auto;
    box-sizing: border-box;
}

.collapsible-footer .close-footer {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    z-index: 1100;
}


@keyframes press {
    0% { transform: scale(1); }
    50% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

/* Add safe area padding for iOS devices */
@supports (padding: max(0px)) {
    footer {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

.highlight-blue:hover {
    color: #62a7f0;
}

footer{
    margin-top: 6.2vh;
}

