* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide Scrollbars */
body {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

html {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: smooth; /* 平滑滾動 */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/*Font*/
@font-face {
    font-family: 'ABCDiatypeSemi-Mono';
    src: url(../assets/font/ABCDiatypeSemi-Mono-Regular.otf);
}

a {
    color: black;
    text-decoration: underline;
}

a:hover {
    color: white;
    background-color: black;
}


body {
    font-family: 'ABCDiatypeSemi-Mono', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding-top: 1em;
    padding-bottom: 1em;
    margin: 0;
    user-select: none;
}

/*App Icon*/
.icon {
    width: 80px;
    height: 80px;
    background-color: #f7f7f7;
    border-radius: 20px;
    cursor: ew-resize;
}


/*Container*/
.container {
    width: 360px;
    height: 360px;
    background-color: #f7f7f7;
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.container-group {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

/* Auto-height container variant */
.container-auto-height {
    height: auto; /* Override the 360px fixed height */
    min-height: 144px; /* Set a minimum height */
}

/*Layout*/
.horizontal-line {
    display: flex;
    gap: 1em;
    margin-top: 1em;
}


.vertical-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75em;
}

.footer {
    color: #808080;
}

/*Dark Mode*/
body.dark-mode {
    background-color: #000000;
    color: #ffffff;
}

body.dark-mode .icon {
    background-color: #1c1c1c;
}

body.dark-mode .container {
    background-color: #1c1c1c;
}

body.dark-mode a {
    color: #ffffff;
}

body.dark-mode a:hover {
    color: #000000;
    background-color: #ffffff;
}

body.dark-mode .icon svg path {
    fill: #ffffff;
}

/* Hide features on mobile */
/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* Hide Icon Container section (with time icon, zhi icon, Desktop Time System text) on mobile */
    .icon-container {
        display: none !important;
    }
    
    /* Also hide the parent container of icon-container to remove the space */
    .container.container-auto-height {
        display: none !important;
    }
    
    /* Hide World Clock section on mobile */
    .world-clock-container {
        display: none !important;
    }
    
    /* Hide World Clock Edit Button and all controls on mobile */
    .world-clock-controls,
    .world-clock-edit-btn,
    .world-clock-reset-btn {
        display: none !important;
    }
    
    /* Disable clickable time on mobile - just show time without interaction */
    .clickable-time,
    #localTime.clickable-time,
    .clickable-time.tooltip-link,
    #localTime.clickable-time.tooltip-link {
        cursor: default !important;
        text-decoration: none !important;
        pointer-events: none !important;
    }
    
    /* Remove hover effects on mobile */
    .clickable-time:hover {
        color: inherit !important;
        background-color: transparent !important;
    }
    
    /* Remove hover effects in dark mode on mobile */
    body.dark-mode .clickable-time:hover {
        color: inherit !important;
        background-color: transparent !important;
    }
    
    /* Hide tooltip on mobile since timer is disabled */
    .tooltip-link::after {
        display: none !important;
    }
    
    /* Hide two-hands image on mobile since there's no hover interaction */
    .two-hands-image {
        display: none !important;
    }
}

