html, body {
    scroll-behavior: smooth;
    margin: 0;
    /* font-family: Arial, sans-serif; */
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    text-align: justify;
    color: #352f36;
    height: 100%;
}

/* * {
    background: #000 !important;
    color: #0f0 !important;
    outline: solid #f00 1px !important;
  } */

p {
    line-height: 1.8;
    margin: 0;
}
img {
    width: 100%;
}
b {
    color:#FF6961;
}      
ul li {
    /* list-style: none; */
    position: relative;
    padding: 3px 0 2px 25px;
    margin-bottom: 5px;
    text-wrap: wrap;
  }
ul li::before {
    /* content: '*'; */
    position: absolute;
    top: 6px;
    left: 0;
    text-wrap: wrap;
}
a {
    color: #FF6961;
    text-decoration: underline;
}
a:hover {
    color: #999;
}
      

/* Arrow styling */
.arrow-down {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    /* border-top: 20px solid rgb(48,70,116); */
    border-top: 20px solid white;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
}
/* Hover effect */
.arrow-down:hover {
    transform: translateY(5px);
}

/* Section styling */
.title-section {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
    padding: 50px;
    box-sizing: border-box;
    /* background-color: rgba(199, 214, 211, 1); */
    background-color: rgba(248, 247, 243, 0.6);
    transition: background-color 0.5s ease;
}
.section {
    /* width: 100vw; */
    /* padding: 50px; */
    box-sizing: border-box;
    /* background-color: rgba(199, 214, 211, 1); */
    background-color: rgba(248, 247, 243, 0.6);
    transition: background-color 0.5s ease;
}
.section-text {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.section-graphic {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}
#section-0 {
    background: radial-gradient(ellipse at center, rgba(255,255,255,0) 0%,rgba(255,255,255,0.7) 70%,rgba(255,255,255,1) 100%), url('assets/indonesia-map.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* Text Styling */
.title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 8vw;
    color: #352f36;
}

.text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(237,237,237);
    border-left: 0.2rem solid gray;
    height: 65%;
    width: 65%;
    padding: 15px;
    box-sizing: border-box;
    transition: background-color 0.5s ease;
    /* -webkit-box-shadow: 0 0 10px rgb(48,70,116);
    box-shadow: 0 0 10 rgb(48,70,116); */
}

.text-only {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* height: 65%; */
    width: 65%;
    padding: 15px;
    box-sizing: border-box;
    transition: background-color 0.5s ease;
}
.text-only-no {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* height: 65%; */
    width: 65%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transition: background-color 0.5s ease;
}

.text-box-w-graphic {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* background-color: white; */
    height: 45%;
    width: 45%;
    padding: 15px;
    box-sizing: border-box;
    transition: background-color 0.5s ease;
    /* -webkit-box-shadow: 0 0 10px rgb(48,70,116);
    box-shadow: 0 0 10 rgb(48,70,116);     */
}

.text-link {
    text-decoration: underline;
    font-weight: bold;
    color: rgb(48,70,116);
}

/* Text Box Styling */
.box-color {
    /* background-color: rgba(140, 119, 66, 0.3); */
    background-color: rgb(237,237,237);
    border-left: 0.2rem solid gray;
}

/* Richter Scale Graphic */
.richter-div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 62%;
    padding: 20px;
}
.richter-div1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 60%;
    padding: 20px;
}
.richter-image {
    width: 35%;
}
.btn {
    display: inline-block;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0 10px;
    line-height: 20px;
    height: 20px;
    max-height: 30px;
    width: 100%;
    /* background: #566AE5; */
    font-weight: 700;
    border: 0;
    border-radius: 0;
    color: #FFFFFF;
    transition-timing-function: ease-in-out;
    transition-property: box-shadow;
    transition-duration: 150ms;
}
.btn:hover {
    box-shadow: 0 2px 2px rgba(48,70,116, 0.25);
    }
.btn:focus {
    border: 2px solid #352f36;
}

/* Scrolly 1 Styling */
#scroll, #scroll-2 {
    position: relative;
	padding: 1rem;
}
.scrolly-article{
    position: relative;
	margin: 0 auto;
    z-index: 2;
    width: 40%;
    padding: 20px;
}
.map-container{
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    margin: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
}
.step, .step3 {
    padding: 20px;
    margin: 0 auto 100vh auto;
    /* height: 80vh; */
    /* width: 50%; */
    opacity: 0.5;
    transition: opacity 0.3s;
    /* background-color: rgba(140, 119, 66, 1); */
    /* background-color: rgb(237,237,237); */
    background-color: rgba(237,237,237, 0.8);
    border-left: 0.2rem solid gray;
    box-sizing: border-box;
    pointer-events: none;
}
.step2 {
    padding: 20px;
    margin: 0 auto 100vh auto;
    opacity: 0.5;
    transition: opacity 0.3s;
    background-color: rgba(237,237,237, 0.9);
    border-left: 0.2rem solid gray;
    box-sizing: border-box;
    pointer-events: none;    
}
.step:last-child, .step2:last-child, .step3:last-child {
    margin-bottom: 100vh;
}
.step.is-active, .step2.is-active, .step3.is-active{
    opacity: 1;
}
.scrolly-div {
    width: 100%;
}
#map-base{
    opacity: 1; 
    visibility: visible;
}
#map-base.fade-out {
    transition: opacity 0.5s ease-in-out; 
    opacity: 0; 
}
.map-layer {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in, visibility 0s 0.5s; 
}
.map-layer.active {
    opacity: 1; 
    visibility: visible;
    transition: opacity 0.5s ease-in, visibility 0s; 
}

/* Scrolly before after */
.image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
}
.before-after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; 
}
.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
}
#caption {
    background-color: black;
    color: white;
    max-width: 400px;
    font-size: 10px;
    display: block;
    float: left;
    position: absolute;
    top: 0;
  }

/* First earthquake map */
.graticule {
    fill: none;
    stroke: #e4e4e4;
    stroke-width: 0.5px;
  }
.tooltip {
    position: absolute;
    opacity: 0;
    text-align: center;
    width: auto;
    height: auto;
    pointer-events: none;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px; 
    padding: 5px; 
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transition: opacity 0.05s;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 14px;
    z-index: 1000;
}
.legend-item {
    display: none;
}
#magnitude-scale {
    display: none;
}
#cities-legend {
    display: none;
}

/* Depth Chart */
.depth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-top: 15px;
    padding-bottom: 15px;
  }
.depth-vis {
    width: 60%;
    height: 100%;
}
.chart-text {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.axis text {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 12px;
}

/* Calendar Chart */
.calendar-figure{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    width: 100%;
}
#calendar{
    width: 80%;
    height: auto;
}


/* Damages Charts */
#damages-charts{
    display: flex;
    direction: column;
    justify-content: center;
    align-items: center;
    /* height: 100%; */
    width: 100%;
}

/* Footer Styling */
.footer {
    background-color: rgba(248, 247, 243, 0.6);
    color: #352f36;
    padding: 20px 0;
    font-family: Arial, sans-serif;
    text-align: left;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.footer-column {
    flex: 1;
    padding: 10px;
}

.footer-column h4 {
    color: #352f36;
    /* font-size: 18px; */
    margin-bottom: 10px;
}

.footer-column p{
    color: #352f36;
    /* font-size: 14px; */
    text-decoration: none;
    margin: 5px 0;
}

.footer-links {
    list-style-type: none;
    padding: 0;
}

.footer-links li {
    margin: 5px 0;
}

.image-footer {
    display: flex;
    align-self: center;
    justify-content: center;
    width: 25%;
    height: auto;
    padding: 20px;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-me {
    display: flex;
    direction: row;
    justify-content: flex-start;
}

.footer-links {
    padding-right: 10px;
}