body {
    font-family: 'IRANSansXFaNum', sans-serif;
    margin: 0;
    background-color: white;
/ / #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 15% 0 0 0;
    background-image: url("assets/tree.png"),
    url("assets/tree4.png"),
    url("assets/tree.png"),
    url("assets/tree6.png"),
    url("assets/tree.png"),
    url("assets/tree6.png"),
    url("assets/tree4.png");
    background-position: -25% 5%,
    51% 45%,
    100% 95%,
    130% 5%,
    135% 120%,
    -15% 140%,
    -45% 90%;
    background-repeat: no-repeat;
    /*background-size: 70% auto;
    /*background-size: 200px 200px;*/
    font-size: 1.5rem; /* instead of 16px or default */
    /*font-family: Arial, sans-serif;*/
}

.viewer {
    position: relative;
    max-width: calc(90vw - 80px);
    max-height: 90vh;
    width: 550px;
    height: 400px;
    border: 2px solid #444;
    border-radius: 12px;
    transition: width 1s ease, height 1s ease;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

#viewer1 {
    background-image: url('assets/point_cloud_placeholder.JPG');
}

#viewer2 {
    background-image: url('assets/point_cloudssr30_placeholder.JPG');
}

.viewer.expanded {
    /*position: fixed;*/
    /*top: 50%;*/
    /*left: 50%;*/
    /*width: calc(100vw - 80px);*/
    width: 80vw;
    /*//calc(90vw - 80px);*/
    height: 90vh;
    margin-right: auto !important;
    /*transform: translate(-50%, -50%) scale(1);*/
    /*align-content: center;*/
    /*z-index: 2000;*/
}

/*iframe*/
iframe {
    width: 100%;
    height: 100%;
    border: none;
    /*background-color: black;*/
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.iframe-wrapper iframe,
.iframe-wrapper .placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.placeholder {
    z-index: 1;
    transition: opacity 0.5s ease;
}

.iframe-wrapper.loaded .placeholder {
    opacity: 0;
    pointer-events: none;
}


/*buttons*/
.load-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    font-size: 26px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 2;
}

/*.load-btn i {*/
/*    transform: scale(1.3);*/
/*}*/

.load-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.close-btn:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

.margin-top {
    margin-top: 80px;
}

/*nav:*/

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    padding: 14px 0;
}

#topnav nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 40px;
}

#topnav nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.625rem; /* 26px -> 1.625rem */
    font-weight: 800; /* slightly bolder */
    padding: 10px 16px; /* more padding for better click area */
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 6px; /* subtle rounded background when needed */
    outline: none; /* remove the blue rectangle on click/focus */
}

#topnav nav ul li a:hover {
    color: #aaa;
}

#topnav nav ul li a.active {
    color: red;
}

/*.section {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    height: 100vh; !* for fullpage.js *!*/
/*}*/
.section-dark {
    background-color: #111;
    color: white;
}

.section-medium {
    background-color: #1d1d1d;
    color: white;
}

.section-light {
    background-color: #f3f3f3;
    color: #222;
}

.about-wrapper {
    text-align: center;
    max-width: 600px;
    height: 90vh;
    /*margin: 0 auto;*/
    /*padding: 40px;*/
    font-size: 1.125rem; /* 18px -> 1.125rem */
    line-height: 1.6;
}

section {
    /*padding: 40%;*/
    /*margin: 0 auto;*/
    width: 100%;
}

#toursHeading {
    font-size: 4rem; /* 64px -> 4rem */
}

.about-wrapper .text-box p {
    margin: 0; /* remove default spacing */
}

.about-wrapper .text-box p + p {
    margin-top: 1.5em; /* spacing between paragraphs */
}

.text-box h1,
.text-box h2 {
    margin: 0; /* reset defaults */
    font-weight: bold;
}

.text-box h2 {
    margin-top: 0.5em; /* spacing between title and subtitle */
    font-weight: bold; /* optional: makes subtitle lighter */
    color: #111; /* optional: slightly softer than h1 */
    font-size: 2rem;
}

/*test for games:*/

.game-section {
    max-width: 900px;
    margin-top: 60vh;
    /*margin: 0 auto;*/
    padding-top: 50px;
    font-weight: bold;
    text-align: center;
}

.game-section h2 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: #222;
}

.game-section p {
    font-size: 1.125rem; /* 18px -> 1.125rem */;
    line-height: 1.6;
    margin: 60px 0;
}

.game-section img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#gamesHeading {
    font-size: 4rem;
}

#about h1 {
    font-size: 4rem;
}

#tours1 {
    font-size: 3rem;
}
#toursSub1 {
    font-size: 3rem;
}

#tours2{
    font-size: 3rem;
}

.leftOfTour {
    float: left;
    margin-top: 100px;
    max-width: 550px;
}

/*@font-face {*/
/*    font-family: 'IRANSansXFaNum';*/
/*    src: url('/fonts/IRANSansXFaNum-Regular.ttf') format('truetype');*/
/*    font-weight: normal;*/
/*    font-style: normal;*/
/*}*/

@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../../../fonts/IRANSansXFaNum-Regular.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

html {
    font-size: 100%; /* 16px by default */
}

/* optional: shrink font on smaller screens */
@media (min-width: 1368px) {
    .rightOfTour{
        max-width: 550px;
    }
}

@media (max-width: 1368px){
    .rightOfTour{
        max-width: calc(100% - 590px);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 90%; /* ~14.4px */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 87.5%; /* ~14px */
    }
}

/*footer:*/

.footer {
    background: #222;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 2rem;
    text-align: center;
    margin-top: 18rem;
}

.footer h3 {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.footer p {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    line-height: 1.8;
}

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

.footer ul li {
    margin: 0.5rem 0;
}

.footer ul li a {
    color: #FF3900;
    text-decoration: none;
    font-size: 1.5rem;
}

.footer ul li a:hover {
    text-decoration: underline;
}
/*#contact-section {*/
/*    background: rgba(0, 0, 0, 0.7); !* subtle dark strip *!*/
/*    color: #f5f5f5;*/
/*    padding: 1.5rem 1rem;*/
/*    text-align: center;*/
/*    margin-top: 10rem;*/
/*}*/

/*#contact-section h3 {*/
/*    font-size: 1.1rem;*/
/*    margin-bottom: 0.5rem;*/
/*    letter-spacing: 0.5px;*/
/*}*/

/*#contact-section ul {*/
/*    list-style: none;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*}*/

/*#contact-section li {*/
/*    margin: 0.3rem 0;*/
/*}*/

/*#contact-section a {*/
/*    color: #f5f5f5;*/
/*    text-decoration: none;*/
/*    font-size: 0.95rem;*/
/*}*/

/*#contact-section a:hover {*/
/*    text-decoration: underline;*/
/*}*/
.text-box-container {
    display: flex;
    justify-content: center; /* center horizontally */
    text-align: center;      /* keep text centered */
    margin: 1em 0;           /* spacing around section */
}

/* inner box for actual blur + background */
.text-box {
    display: inline-block; /* shrink to text size */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5em 1em;
    color: #000;
}

