@import url('https://fonts.cdnfonts.com/css/sigmar');
@import url('https://fonts.cdnfonts.com/css/roboto');
@import url('https://fonts.cdnfonts.com/css/geomanist');

:root {
    --blue-color: #43afcf;
    --dark-yellow-color: #cc9d05;
    --yellow-color: #f0bd1a;
    --green-color: #80cc28;
    --light-green-color: #C9E8C9;
    --dark-text-color: #484848;
    --dark-text-color2: #023c2a;
    --light-yellow-color: #F3F2C9;
    --font-Geomanist: 'Geomanist', sans-serif;
    --light-green-color2: #F0FDF4;
    --dirty-white: #e8e8e8;
}

body {
    margin: 0;
    padding-top: 0;
    box-sizing: border-box;
    font-family: 'Geomanist', sans-serif;
    color: var(--dark-text-color);
    background-color: var(--dirty-white);
}

/* Headings using Sigmar */
h1 {
    font-family: 'Sigmar', cursive;
    color: var(--dark-text-color2);
    font-size: 2rem;
}

h2 {
    font-family: 'Sigmar', cursive;
    color: var(--dark-text-color);
}


h3,
h4,
h5,
h6 {
    font-family: 'Geomanist', sans-serif;
    color: var(--dark-text-color);
}

/* Paragraphs and other text using Roboto */
p,
button,
.btn,
.navbar a,
.footer p,
.footer a,
label {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text-color);
}

.modalContent,
#siteMapArea,
#treeContainer,
#siteMapaArea h1,
svg,
.siteMapDescription,
#userGuideSection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 80px;
}

header {
    background-color: var(--dark-text-color);
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.logo a img {
    height: 60px;
    width: auto;
}

.nav-btn .btn {
    background-color: var(--yellow-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    width: 50px;
}

.nav-btn .btn:hover {
    background-color: var(--yellow-color);
}


.node rect {
    fill: var(--yellow-color);
    stroke: var(--light-green-color);
    stroke-width: 2px;
}

.node text {
    font: 16px;
    fill: var(--dark-text-color);
    pointer-events: none;
    stroke: var(--dark-text-color);

}

.link {
    fill: none;
    stroke: var(--blue-color);
    stroke-width: 2px;
}

#siteMapSection {
    text-align: center;
    margin-bottom: 50px;
}



#siteMapArea {
    height: auto;
}

#siteMapContent {
    text-align: left;
    padding: 20px;
    width: 60%;
}

#siteMapContent h3 {
    font-size: 1.2rem;
}


#siteMapContent li {
    list-style: none;
    padding-bottom: 10px;
}

.highlight,
#siteMapContent h3 {
    font-weight: 900;
    color: var(--dark-yellow-color);
}


#treeContainer {
    background-color: var(--light-green-color2);
    width: 80%;
    height: 80%;
}


svg {
    border: 2px solid var(--light-green-color);
    width: 100%;
    height: 80vh;
    border-radius: 10px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
}

.tooltip {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    width: 200px;
    padding: 5px;
    border-radius: 4px;
    border: 2px solid var(--yellow-color);
    pointer-events: none;
    font-size: 14px;
    color: var(--dark-text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    /*display will be initially hidden*/
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/*user Guide*/
#userGuideSection {
    background-color: var(--dirty-white);
}

#userGuideSection h1 {
    margin-top: 100px;
}

#userGuideSection h2 {
    margin-top: -30px;
}


.gridContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    width: 70vw;
    margin: 50px 100px;
    position: relative;
}

/* Individual grid boxes */
.gridBox {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    height: 150px;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
}

.gridBox h2 {
    color: var(--dark-text-color2);
    font-size: 1.4rem;
    margin: 0;
}


/* Modal (hidden by default) */
.modal {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: var(--dirty-white);

}

/* Modal content */
.modalContent {
    flex-direction: column;
    background-color: var(--dirty-white);
    width: 100%;
    /* Full width of the modal */
    height: max-content;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-bottom: 30px;

}

#modal8 {
    gap: 4px;
}

#modal5 .modalContent h2,
#modal5 .modalContent h3,
#modal5 .modalContent p {
    margin: 2px 0;
    /* Reduce vertical margin between elements */
}

#modal .modalContent h3 {
    font-size: 1.2rem;
    font-weight: 900;
}

#modal5 .modalContent p {
    line-height: 1.2;
    /* Optional: Adjust line-height for better text readability */
}

/* Close button */
.close {
    position: absolute;
    top: -10px;
    right: 20px;
    color: var(--yellow-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;

}

.close:hover,
.close:focus {
    color: var(--dark-text-color2);
}

#box1 {
    background-image: url('../images/abstract/1.png');
}

#box2 {
    background-image: url('../images/abstract/2.png');
}

#box3 {
    background-image: url('../images/abstract/3.png');
}

#box4 {
    background-image: url('../images/abstract/4.png');
}

#box5 {
    background-image: url('../images/abstract/5.png');
}

#box6 {
    background-image: url('../images/abstract/6.png');
}

#box7 {
    background-image: url('../images/abstract/7.png');
}

#box8 {
    background-image: url('../images/abstract/8.png');
}

#box9 {
    background-image: url('../images/abstract/9.png');
}






@media only screen and (max-width: 600px) {
    .gridContainer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .gridBox {
        height: 100px;
        width: 80vw;

    }

    .modal {
        width: 100%;
    }

    .modalContent {
        height: 100vh;
        width: 120%;
        margin-left: -35px;
        font-size: 20px;
        margin-top: 0;
    }

    #userGuideSection h1 {
        text-align: center;
    }



}


@media only screen and (max-width: 900px) {
    .gridContainer {
        display: flex;
        flex-direction: column;
        margin-bottom: 50px;
    }

    #userGuideSection h1 {
        text-align: center;
    }
}