html, body {
    height: 100%;
    margin: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body {
    background:  linear-gradient(180deg, #8dccf7, #95d0f8, #fcf2dd);
}

.patch-notes-container {
    max-width: 45vw;
    margin: 0 auto;
    padding: 0 0 100px 0;
    background-color: rgb(231 233 233)!important;
    display: flex;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    /* padding: 0; */
}

.header-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top bottom;
}

.header-container p {
    font-family: Roboto;
    color: rgba(0, 0, 0, 0.712) !important;
    font-size: 1.5rem;
    text-align: center;
    max-width: 60%;
    /* padding: 0 20px; */
}

html body .patch-notes-container h3,
html body h3.uppercase,
html body .patch-notes-container h4{
    text-align: center;
    font-family: 'Bowlby One SC', sans-serif;
    letter-spacing: 1px;
    color: #3f3f3f;
    font-weight: bold;
    line-height: 1.5; 
    padding: 30px;
    text-shadow: -2px -2px 0 #f6ebf1, 2px -2px 0 #f6ebf1, -2px 2px 0 #f6ebf1, 2px 2px 0 #f6ebf1;

}

html body .patch-notes-container h3,
html body h3.uppercase{
    border-top: 1px solid lightgray;
    margin-top: 2em !important;
    font-size: 2em !important;
    letter-spacing: 0.11px;

}

html body .patch-notes-container h4{
    font-size: 3em !important;
    letter-spacing: 2px;
}

.uppercase,.table-contents-font, .uppercase-subevent,.uppercase-borderline-top, .uppercase-borderline-bottom {
    font-family: 'Bowlby One SC', sans-serif;
    color: rgba(0, 0, 0, 0.712);
    line-height: 1;

}

.table-contents-font{
       margin-top: 3rem;
  
}
.table-contents-wrapper ul{
    position: relative;
    top: 30px;
}


.table-contents-wrapper {
    width:140%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-left: 3rem;
    column-gap: 2rem;
   
}
.table-contents-wrapper li{
    margin-bottom: 0.5rem;
}

.table-contents-wrapper img{
    max-width: 50%;
}
.table-contents-font {
    font-size: 2.1em;
}

.uppercase, .uppercase-subevent, .uppercase-borderline-top, .uppercase-borderline-bottom{
    font-size: 1.5em;
    text-align: center !important;

}

.uppercase-borderline-top{
    padding-top: 30px;
    border-top: 1px solid lightgray
}


.uppercase-borderline-bottom{
    padding: 30px;
    border-bottom: 1px solid lightgray
}

.uppercase-subevent{
    margin-top: 2em;
}

.patch-text {
    font-size: 1.1em;
    text-align: center;
}

.patch-text:has(+ .intro-list) {
    /* font-family: 'Bowlby One SC', sans-serif; */
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1;
    color: rgba(0, 0, 0, 0.712);
    letter-spacing: 2px;
    font-size: 1.4em;
}

.intro-list {
    margin-bottom: 4rem !important;
}

.game-changes-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 1rem;
}

.game-changes-text {
    flex: 0 1 60%;
    text-align: left;
    font-size: 1.1em;
    padding-right: 2rem;
    max-width: 50%;
}

.game-changes-image {
    /* width: 150px; */
    max-width: 50%;
}

.ms-items {
    padding: 22px;
}

.purple-box {
    /* width: 10rem;
    height: 10rem; */
    object-fit: cover;
    background-color: #d5c3c3;
    border: 4px solid #ffffff;
    border-radius: .7rem;
}

.myshop {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    column-gap: 3rem;
}

.myshop h5, .myshop li {
    color: rgb(28 0 0);
    font-family: Roboto;
    font-weight: bold;
}

ul.custom-bullet {
    list-style-type: none;
}

ul.custom-bullet li::before {
    content: "✦";
    color: rgb(70, 61, 61);
    font-size: 20px;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.ms-box {
    border: 3px solid #ffffff;
    border-radius: 30px;
    background-color: #e5e2db;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 25px;
    row-gap: 0.5rem;
    width: 65%;
    margin: 1rem;
    margin-bottom: 3rem;
}

.ms-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 2rem;
}

.event-rewards, .event-rewards-exchange {
    width: 60%;
    border-collapse: collapse;
    background-color: #efeded66;
    color: #160f11; 
    font-family: 'Roboto', sans-serif;
    margin-bottom: 2rem;
    text-align: center;
}


.event-rewards th,
.event-rewards td,
.event-rewards-exchange th,
.event-rewards-exchange td {
    border: 1px solid #69696942;
    padding: 12.5px;
    text-align: center;
}

.event-rewards th,.event-rewards-exchange th {
    background-color: #97c3e1;
    font-weight: bold;
    color: white;
}



.fuse-container {
   margin-top: 1rem;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.3rem;
}

.fuse-container img {
    max-width: 100%;
    margin-top: 1em;
    height: auto;
    border-radius: 12px;
}

.intro-container{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 6vw;
    border-bottom: 1px solid lightgray;
    
}
.intro-list{
    margin-bottom: 2rem;

}


.event-container{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 1vw;
}


.event-container li{
    list-style: none;
    font-size: large;

}

.event-container a{
    color: #000000b5;;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2em;
}

/* Add hover effect for table of contents links */
.event-container a:hover {
    color: #000000;
    transition: color 0.2s ease;
    font-weight: bold;
   
}




.egg-shop-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    column-gap: 4rem;
}

.npc-image {
    width: 10rem;
}


.event-rewards ul, .egg-items li {
    list-style-type: none;
}

.item-list {
    display: flex;
    flex-direction: column;
}

.item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.item:last-child {
    margin-bottom: 0;
}

.item img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
}

.monster-icon {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    vertical-align: middle;
}

.exchange-rewards{
    margin-bottom: 2rem;
}


.goddess-image {
    width: 90%;
}

.calendar-image {
    width: 90%;
}

.announcement-image {
 border-radius: 12px;
} 



@media (max-width: 1300px) {

    .patch-notes-container{
        max-width: 55vw;}

    h3 {
        font-size: 2em !important;
    }

    .event-rewards {
        width: 70% !important;
    }

}


@media (max-width: 991px) {

    ul {
        margin-top: 0 !important;
      }
    .patch-notes-container{
        max-width: 80vw;
    }
   

    .event-rewards li {
        font-size:15px; 
    }

    .ms-box{
        width: 85%;
    }

    /* .fuse-container img{
    width: 85%;
    } */

    .ms-row{ 
        column-gap: 1rem;
    }

    .game-changes-container {
        flex-direction: column;
        text-align: center;
        width: 90%;
    }

    .game-changes-text {
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .game-changes-image {
        width: 150px;
    }

}
    

@media (max-width: 688px) {

    .patch-notes-container{
        max-width: 100vw;
    }

    .ms-box {
        width: 100%;
    }

    .myshop h5, .myshop h5{
        font-size: 1em;
    }

    .event-rewards, .event-rewards, .event-rewards-exchange {
        width: 100% !important;
    }
    .game-changes-container {
        width: 100% !important;
    }

    .game-changes-text {
        max-width: 100%;
    }
    .table-contents-font {
        font-size: 1.5em;
    }
    .event-container a {
        font-size: 1em;
    }
    html body .patch-notes-container h3, html body h3.uppercase {
        font-size: 1.5em !important;
     }
     .card-list li {
        margin-bottom: 0.2rem;

    }
  
}


.back-to-top {
    text-align: center;
    margin: 30px 0;
}

.back-to-top-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #a3926d;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: 2.5px solid #ffffff;
}

.back-to-top-button:hover {
    background-color:#cebd98;
    color: rgb(0, 0, 0) !important;
    border: 2.5px solid #ffffff;
  
}

.item-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;  /* adds space between each item */
}

.item-name {
    margin-left: 10px;
}

.npc-container {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 2.6rem;
    margin-bottom: 2rem;
}


.card-lists-container {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin: 2rem 0;
}

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

.card-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}



@media (max-width: 768px) {
    .card-lists-container {
        flex-direction: column;
        gap: 1rem;
    }
}

.fortune-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 1rem 0;
} 

.fortune-image {
  max-width: 50%;
}

.fortune-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}


.fortune-content .event-rewards th:first-child,
.fortune-content .event-rewards td:first-child {
  min-width: 180px;
}

.fortune-content .event-rewards th:last-child,
.fortune-content .event-rewards td:last-child {
  min-width: 130px;
}


.fortune-content .event-rewards {
  flex: 1;
  margin: 0;
  width: 100% !important;
}

/* Add responsive styling */
@media (max-width: 768px) {
  .fortune-content {
    flex-direction: column;
    gap: 1rem;
  }

  .fortune-image {
    max-width: 100%;
  }
}

.discord-table th {
    padding: 20px;
}
.specific-fortune {
    gap: 3rem;
}


.lena-exchange-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.lena-exchange-1, .lena-exchange-2, .lena-exchange-3, .lena-exchange-4 {
    width: 120px;
    height: 120px;
    object-fit: cover; /* or contain, depending on your preference */
    display: block;
    margin: 0 auto;
    background: #ffffff00;
}

.lena-exchange-5, .lena-exchange-6 {
    width: 170px;
    height: 170px;
    object-fit: cover; /* or contain, depending on your preference */
    display: block;
    margin: 0 auto;
    background: #ffffff00;
}

/* Poppuri Pet Image Modal Styles */
.poppuri-image-1, .poppuri-image-2 {
    cursor: pointer;
    transition: transform 0.2s ease;
    max-width: 100%;
    height: auto;
}

.poppuri-image-1:hover, .poppuri-image-2:hover {
    transform: scale(1.05);
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    cursor: pointer;
}

/* Modal Content */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.modal-close:hover {
    color: #ddd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .modal-close {
        top: -35px;
        font-size: 25px;
    }
}

