html, body {
    margin: 0;
    padding: 0;
    height: 100%; 
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #bfcfec 10%, whitesmoke 100%);
    background-attachment: fixed;
}

header {
    z-index: 2;
    position: fixed;
    top: 0;
    height: 8vh;
    width: 100%;
    background-color: #bfcfec;
}

.logo1 {
    height: 5vh;
    width: auto;
    margin-top: 1vh;
    margin-left: 2vw;
}

nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu {
    height: 100%;
    margin-left: 4rem;
    padding: 0;
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 2rem;
    text-decoration: none; /* remove underline */
    font-family: 'Comic Neue', sans-serif;
    font-size: 1.4em;
    padding: 0.5rem 1rem;
    display: inline-block;
    color: black; 
}

nav a:hover {  
    animation: bounce 0.5s;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

/* body */
.content {
    margin-top: 8vh;
}

/* block */
.block {
    z-index: 1;
    text-align: center;
    padding-bottom: 2vh;
}

.block .logo2 {
    height: 30vh;
    width: auto;
}

.block h1 {
    font-family: 'Comic Neue', sans-serif;
    font-size: 6em;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0.5rem 0;
}

.block p {
    font-family: 'Comic Neue', sans-serif;
    font-size: 2em;
    margin-left: 10rem;
    margin-right: 10rem;
}

.links {
    display: flex;
    margin-top: 3vh;
    min-height: 10vh;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.links a {
    display: flex; 
    margin: 0 4rem; 
    padding: 0.6rem 0.8rem; 
    text-decoration: none; 
    color: black;
    font-family: 'Comic Neue', sans-serif; 
    font-size: 2em;
    border: 0.1em solid black; 
    border-radius: 40px;
    align-items: center;
    transition: background-color 0.3s, color 0.3s; 
}

.links::before {
    content: '';
    width: 20%; 
    visibility: hidden;
}

.links a:hover {
    background: #AFC0D8; 
}
.links a:active {
    background-color: rgba(175, 192, 216, 0);
}

.windows-downloads {
    display: flex;
    position: relative;
    align-items: center;
    margin: 0 4rem;
}

.windows-downloads #windowslinkid {
    margin: 0;
}

.windows-version {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Comic Neue', sans-serif;
    font-size: 0.95em;
    line-height: 1;
    color: rgba(0, 0, 0, 0.68);
    white-space: nowrap;
}

.ios-downloads {
    display: flex;
    position: relative;
    align-items: center;
    margin: 0 4rem;
}

.ios-downloads .shortcut-link {
    margin: 0;
}

.ios-downloads .old-shortcut-link {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 0.95em;
    line-height: 1;
    color: rgba(0, 0, 0, 0.68);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    white-space: nowrap;
}

.ios-downloads .old-shortcut-link:hover {
    background: transparent;
    color: black;
}

.old-shortcut-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.5rem);
    transform: translateX(-50%);
    width: max-content;
    max-width: 18rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    background: rgba(238, 245, 250, 0.96);
    color: black;
    font-size: 0.72em;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.old-shortcut-link:hover .old-shortcut-tooltip {
    opacity: 1;
    visibility: visible;
}

.imgblk {
    display: flex;
    width: 20%; 
}

.shortcut-img {
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    max-height: 0;
    height: 10vh;
    margin-left: 0;
    transition: visibility 0s, opacity 0.5s linear, max-height 0.5s ease-out; 
}

.ios-downloads:has(.shortcut-link:hover) + .imgblk .shortcut-img {
    visibility: visible; 
    opacity: 1; 
    max-height: 10vh; 
}

/* block1 */
.feature-title {
    display: flex;
    justify-content: center;
    font-family: 'Comic Neue', sans-serif; 
    margin-top: 8vh;
    margin-bottom: 0;
    font-size: 2.6em;
    text-align: center;
}

.block1 {
    display: flex;
    position: relative;
    margin-top: 1vh;
    width: 100%;
    justify-content: center;
}

.wholeblk {
    display: flex;
    position: relative;
    margin-top: 3vh;
    padding: 2%;
    width: 80%;
    border-radius: 20px;
    background-color: #b2bfd93e;
}

.featureblk {
    display: flex;
    position: relative;
    flex-direction: column;
    margin-left: 2%;
    height: 100%;
    width: 20%;
}

.name {
    display: flex;
    position: relative;
    margin-top: 10%;
    padding: 3%;
    width: 100%;
    /* border-bottom: 1.5px solid #AFC0D8; */
    cursor: pointer;
    align-items: center;
}

.name:hover {
    animation: bounce 0.5s;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.feature-icon {
    display: block;
    width: 22%;
}

.featureblk p {
    display: flex;
    position: relative;
    font-size: 1.6em;
    margin-left: 2%;
    align-items: center;
    font-weight: bold;
}

.selected {
    background-color: rgba(245, 245, 245, 0.447);
    border-radius: 20px;
}

.contentblk {
    display: flex;
    position: relative;
    width: 80%;
}

.detail{
    display: flex;
    position: relative;
    margin-left: 5%;
    width: 100%;
    align-items: flex-start;
}

.contentblk p {
    display: block;
    position: relative;
    margin-top: 6%;
    margin-bottom: 8%;
    padding-left: 8%;
    padding-right: 8%;
    font-size: 1.3em;
}

.feature-content {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 45%;
    margin-top: 2%;
    background-color: rgba(238, 245, 250, 0.671);
    border-radius: 20px;
    /* border: 0.1em solid #AFC0D8;  */
    /* border: 0.1em solid #f9cde3; */
}


.feature-gif {
    display: flex;
    position: relative;
    width: 45%;
    margin: 0 auto;
    margin-top: 2%;
    border-radius: 10px;
}

.modal {
    display: none; 
    position: fixed; 
    padding-top: 10vh; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
  }
  
  .modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 80%;
    height: auto;
    max-height: 80%;
  }
  
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }

/* block2 */

.block2 {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8vh;
    padding: 0 2rem;
    box-sizing: border-box;
}

.block2 video {
    display: block;
    width: min(82vw, 960px);
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 68vh;
    object-fit: contain;
    background-color: rgba(238, 245, 250, 0.671);
    border: 0.1em solid rgba(0, 0, 0, 0.65);
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

footer {
    position: relative;
    bottom: 0;
    height: 4vh;
    width: 100%;
}


@media screen and (max-width: 1024px) {
    .hamburger-menu {
        display: block;
        position: fixed;
        margin-left: 90%;
    }

    .hamburger-menu span {
        display: block;
        width: 1.2rem;
        height: 2px;
        margin: 5px auto;
        background-color: black;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-menu:hover span {
        background: grey;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(3px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }

    .nav-menu {
        display: none;
        position: fixed;
        z-index: 999; /* make sure it's lower than ham-menu */
        top: 0;
        right: 0;
        flex-direction: column;
        height: 100%;
        width: 100%;
        background-color: #bfcfec;
        transform: translateY(-100%);
        transition: transform 0.5s ease;
    }

    .nav-list {
        display: flex;
        width: 100%;
        flex-direction: column;
        margin-top: 8vh;
        margin-bottom: 6vh;
        font-size: 1em;
    }

    nav a {
        font-size: 1.4em;
        margin-left: 1vw;
        padding-bottom: 2vh;
    }

    .nav-menu.active {
        display: flex;
        z-index: 999;
        height: auto;
        border-radius: 0 0 10px 10px;
        transform: translateY(0);
        animation: slideDown 0.5s ease-out;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    @keyframes slideDown  {
        from { transform: translateY(-100%); }
        to { transform: translateY(0); }
    }

    .nav-menu.sliding-up {
        animation: slideUp 0.5s ease-out forwards;
    }
    
    @keyframes slideUp {
        from { transform: translateY(0); }
        to { transform: translateY(-100%); }
    } 

    .block h1 {
        font-size: 4.5em;
        letter-spacing: -1px;
    }

    .block p {
        font-family: 'Comic Neue', sans-serif;
        font-size: 1.5em;
        margin-left: 5rem;
        margin-right: 5rem;
    }

    .links {
        margin-top: 4vh;
    }

    .links a { 
        margin: 0 2rem;
        padding: 0.4rem 0.6rem;   
        color: black; 
        font-size: 1.6em;
        border: 0.08em solid black; 
        border-radius: 50px; 
    }

    .ios-downloads {
        margin: 0 2rem;
    }

    .windows-downloads {
        margin: 0 2rem;
    }

    .windows-downloads #windowslinkid {
        margin: 0;
    }

    .windows-version {
        font-size: 0.85em;
    }

    .ios-downloads .shortcut-link {
        margin: 0;
    }

    .ios-downloads .old-shortcut-link {
        margin: 0;
        font-size: 0.85em;
    }

    .old-shortcut-tooltip {
        max-width: 14rem;
        font-size: 0.72em;
    }

    .feature-title {
        font-size: 2em;
    }

    .featureblk p {
        font-size: 1.2em;
    }

    .contentblk p {
        font-size: 1em;
    }

    .block2 {
        margin-top: 6vh;
        padding: 0 1.5rem;
    }

    .block2 video {
        width: min(88vw, 820px);
        border-radius: 18px;
    }

}

@media screen and (max-width: 768px) {
    .block h1 {
        font-size: 2.8em;
        letter-spacing: -1px;
    }

    .block p {
        font-family: 'Comic Neue', sans-serif;
        font-size: 1em;
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .links {
        margin-top: 3vh;
    }

    .links a { 
        margin: 0 0.5rem; 
        padding: 0.4rem 0.6rem; 
        color: black; 
        font-size: 1em;
        border: 0.08em solid black; 
        border-radius: 50px; 
    }

    .ios-downloads {
        margin: 0 0.5rem;
    }

    .windows-downloads {
        margin: 0 0.5rem;
    }

    .windows-downloads #windowslinkid {
        margin: 0;
    }

    .windows-version {
        font-size: 0.72em;
    }

    .ios-downloads .shortcut-link {
        margin: 0;
    }

    .ios-downloads .old-shortcut-link {
        margin: 0;
        font-size: 0.72em;
    }

    .old-shortcut-tooltip {
        max-width: 11rem;
        font-size: 0.78em;
    }

    .feature-title {
        font-size: 1.5em;
    }

    .featureblk {
        margin-bottom: 5%;
    }

    .selected {
        background-color: rgba(245, 245, 245, 0.447);
        border-radius: 10px;
    }

    .featureblk p {
        font-size: 0.8em;
    }

    .contentblk p {
        font-size: 0.6em;
    }

    .block2 {
        margin-top: 4vh;
        padding: 0 1rem;
    }

    .block2 video {
        width: 100%;
        border-width: 1px;
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
    }
}
