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

--text-dark: #534242;
--text-light: #ffe9dd;
}

.huninn-regular {
    font-family: "Huninn", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.huninn-bold {
    font-family: "Huninn", sans-serif;
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: "Huninn", Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text-light);

    line-height: 1.5;
    background: radial-gradient(circle,rgba(162, 136, 186, 1) 0%, rgba(0, 0, 0, 1) 100%);

}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 1000;
    opacity: 0;
    font-weight: bold;
}

.hover-pop{
    transition: transform 1s;
}
.hover-pop:hover{
    transform: translateY(-6px);
    transition: transform 1s;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-150px); }
    to   { opacity: 1; transform: translateX(0); }
}

.nav-group {
    display: flex;
    gap: 20px;
}
.navbar.stated {
    animation: slideInLeft 0.6s ease-in-out forwards;
    opacity: 1;
}

.nav-btn {
    text-decoration: none;
    background-color: #ffffff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    box-shadow: 5px 5px 5px black;
    color: var(--text-dark);
}

.big-btn {
    text-decoration: none;
    background-color: #ffffff;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-size: 1.5rem;
    box-shadow: 5px 5px 5px black;
    color: var(--text-dark);
}

.hero-section {
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    text-shadow: 5px 5px 5px black;
    padding: 20px;
}
.hero-image {
    width: auto;
    max-width: 20vh;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    filter: drop-shadow(10px 10px 10px black);
}
.hero-text {
    font-size: min(10vw, 60px);
    font-weight: bold;
    text-align: center;
}
.hero-text-2 {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    color: #7d7d7d;
    opacity:0;
}
.hero-text-2.stated {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 1;
}

.highlight-word {
    color: #ff7c5c;
    font-weight: 900;
    letter-spacing: -1px;
}

.hero-section.stated {
    animation: fadeInDown 0.8s ease-out forwards;
    opacity: 1;
}

.joke1{
    position: relative;
    opacity: 0;
}
.joke1.stated {
    animation: fadeInDown 0.8s ease-out forwards;
    opacity: 1;
}

.collapsible {
    display: flex;
    background-color:#d3e8ff;
    color: #444;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    border-style: dotted;
    border-radius: 10px;
    align-items: center;
    font-size: 1.2rem;
    margin-top: 2vh;

    font-family: "Huninn", Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    color: #1565c0;
}

.active, .collapsible:hover {
    background-color: #afd2f9;
}

.content {
    padding: 0px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    font-weight: 800;
}

.faq-icon {
    font-size: 2rem;
    margin-right: 20%;
    margin-left: 10px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn{
    from { opacity: 0; }
    to   { opacity: 1; }
}

.segment {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

h2 { margin-bottom: 15px; font-size: 2rem; }
p { max-width: 600px; }

.bg-dark { background-color: #1a1a1a; color: var(--text-light); }
.bg-blue { background-color: #e3f2fd; color: #1565c0; }
.bg-fun { background-color: #bc8676; color: #fff9f9; }

footer { min-height: 30vh !important; text-align: center; padding-bottom: 80px;}

@media (prefers-reduced-motion: reduce) {
    .navbar, .hero-section, .joke1, .hero-text-2, .hover-pop {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Hide the large image on mobile */
.d-none {
    display: none;
}

/* Show the small image only when viewport is less than 900px */
@media (max-width: 899px) {
    #mobile-image {
        display: block !important;
    }

    #encryption-diagram {
        display: none !important;
    }

    #desktop-image {
        display: none !important;
    }
}

/* Ensure the large image shows on desktop by default */
@media (min-width: 900px) {
    #mobile-image {
        display: none !important;
    }

    #desktop-image {
        display: block !important;
    }
}

.encryption-container {
    width: 80vw;
    height: auto;
    display: table;
}

.encryption-box{
    display: table-cell;
    border-style: solid;
    border-width: 4px;
    border-radius: 1rem;
    font-weight: 800;
    padding: 1vh;
    height: 15vh;
    vertical-align: middle;
}

.encryption-box-title{
    font-size: 1.5rem;
    top: -3vh;
    position: relative;
    height: 1.2em;
}

.encryption-line{
    font-size: 2rem;
    display: table-cell;
    vertical-align: middle;
}

/* fancy read more button */

.readmore-btn {
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    gap: 0px;
    transition: all 0.4s;
    text-decoration: none;
    background-color: #ffffff;
    padding: 1.081rem 1.6rem;
    border-radius: 999px;
    font-size: 1.5rem;
    box-shadow: 5px 5px 5px black;
    color: var(--text-dark);
}
.book-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    width: 45px;
    height: 100%;
}
.book-wrapper .book-page {
    width: 50%;
    height: auto;
    position: absolute;
}
.readmore-btn:hover .book-page {
    animation: paging 0.4s linear infinite;
    transform-origin: left;
}
.readmore-btn:hover {
    background-color: rgb(137, 105, 166);
    color: white;
}
@keyframes paging {
    0% {
        transform: rotateY(0deg) skewY(0deg);
    }
    50% {
        transform: rotateY(90deg) skewY(-20deg);
    }
    100% {
        transform: rotateY(180deg) skewY(0deg);
    }
}

.tree-label::before,
.file-item::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* From Uiverse.io by ashif_6672 */
.tree-container {
    width: 320px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 50px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul ul {
    margin-left: 11px;
    padding-left: 11px;
    border-left: 1px solid #e4e4e7;
}

.tree-item {
    position: relative;
    margin-top: 4px;
}

ul ul .tree-item::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 14px;
    width: 11px;
    height: 1px;
    background-color: #e4e4e7;
}

.tree-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 24px;
    color: #09090b;
    transition: background-color 0.2s;
    user-select: none;
    text-decoration: none;
    justify-content: center;
    height: 28px;
}

.tree-label,
.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #09090b;
    transition: background-color 0.2s;
    user-select: none;
    text-decoration: none;
    height: 28px;
}

.tree-label:hover,
.file-item:hover {
    background-color: #f4f4f5;
}

.is-selected {
    background-color: #f4f4f5;
    color: #09090b;
    font-weight: 500;
}


/* Folder Open Icon (triggers when the checkbox input is checked) */
.tree-label.tree-toggle::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 2H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z'%3E%3C/path%3E%3Cpath d='M2 10h20'%3E%3C/path%3E%3C/svg%3E");
}

/* File Icon */
.file-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3C/svg%3E");
}
