 *,
 *::after,
 *::before {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     cursor: url("../asset/BOOK-OF-RUGS-44-copy.png") 16 16, auto !important;
     text-transform: capitalize;
 }


 /* Button styling */
 .retro-nav {
     background-color: #2b3a5a;
     color: #ffffff;
     font-family: "Press Start 2P", cursive;
     font-size: 12px;
     padding: 12px 24px;
     border: 4px solid #e63946;
     border-radius: 6px;
     cursor: pointer;
     transition: background-color 0.2s ease;
     text-decoration: none;
     display: inline-block;
     /* max-width: fit-content; */
     text-align: center;
 }

 .retro-nav:hover {
     background-color: #3c5488;
     color: white;
 }

 .retro-nav:active {
     background-color: #ffffff;
     color: #e63946;
 }


 /* Screen styling */
 .panel {
     background-color: #ffffff;
     border: 10px solid #1e2a44;
     border-radius: 5px 5px 30px 5px;
     padding: 20px;
     width: 320px;
     /* width: 320px; */
     box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
     display: flex;
     flex-direction: column;
     align-items: center;
     align-items: center;
 }


 /* Container for centering */
 .center-container {
     display: flex;
     justify-content: center;
     align-items: center;
 }

 /* Image styling */
 /* #randomImage {
     width: 100%;
     height: auto;
     margin-bottom: 15px;
     image-rendering: pixelated;
     border: 2px solid #1e2a44;
 } */

 /* constrain the image */

 #image-box {
     display: flex;
     align-items: center;
     justify-content: center;
     height: 18rem;
     width: 100%;
     overflow: hidden;
     border: 2px solid #1e2a44;
     padding: 10px;
     margin-block-end: 10px;
 }





 #image-box .image {
     height: 100%;
     width: auto;
 }






 /* Text area */
 .text-box {
     background-color: #d32f2f;
     color: #ffffff;
     font-family: "Press Start 2P", cursive;
     font-size: 14px;
     padding: 20px;
     width: 100%;
     text-align: center;
     border: 2px solid #1e2a44;
     margin-top: 10px;
 }

 /* Counter */
 #counter {
     font-weight: bold;
     color: #ffffff;
     padding: 10px;
 }


 /* Grid for social links */
 .link-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 12px;
     /* width: 100%;
     padding: 25px;
     background-color: #ffffff;
     border: 12px solid #2b3a5a;
     border-radius: 8px 8px 35px 8px;
     box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4); */
 }

 /* Text box container */
 .row-container {
     display: flex;
     justify-content: center;
     align-items: baseline;
     width: 100%;

 }


 /* Text box styling */
 #contractAddress {
     background-color: #d32f2f;
     color: #ffffff;
     font-family: "Press Start 2P", cursive;
     font-size: 12px;
     padding: 10px;
     border: 2px solid #1e2a44;
     width: 70%;
     margin-right: 10px;
     overflow-x: auto;
     white-space: nowrap;
     cursor: default;
 }

 /* Canvas styling */
 #memeCanvas {
     border: 2px solid #1e2a44;
     cursor: move;
 }

 /* Controls container */
 .controls {
     display: flex;
     justify-content: space-around;
     width: 100%;
     max-width: 280px;
     margin-top: 15px;
     flex-wrap: wrap;
     gap: 5px;
 }



 /* Main content container */
 /* .page-container {
     display: flex;
     justify-content: center;
     align-items: center;
     min-height: 100vh;
     background-color: #f0f0f0;
     transition: filter 0.3s ease;
 } */

 /* Sample content */
 /* .main-content {
     padding: 20px;
     text-align: center;
     font-family: Arial, sans-serif;
     color: #333;
 } */

 /* Blur effect when popup is active */
 .blurred {
     filter: blur(5px);
 }

 /* Popup styles */
 .welcome-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.7);
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 1000;
 }

 .welcome-box {
     background-color: #ffffff;
     border: 12px solid #2b3a5a;
     border-radius: 8px 8px 35px 8px;
     box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
     padding: 20px;
     text-align: center;
     max-width: 300px;
     /* width: 95%; */
 }

 .welcome-message {
     font-family: "Press Start 2P", cursive;
     font-size: 12px;
     color: #2b3a5a;
     margin-bottom: 20px;
 }

 .welcome-image {
     max-width: 100%;
     height: auto;
     margin-bottom: 20px;
 }

 /* .thanks-btn {
     background-color: #2b3a5a;
     color: #ffffff;
     font-family: "Press Start 2P", cursive;
     font-size: 10px;
     padding: 10px 20px;
     border: 4px solid #e63946;
     border-radius: 6px;
     cursor: pointer;
     transition: background-color 0.2s ease;
 }

 .thanks-btn:hover {
     background-color: #3c5488;
 }

 .thanks-btn:active {
     background-color: #ffffff;
     color: #e63946;
 } */

 /* Hidden class for popup */
 .hidden {
     display: none;
 }



 /* widget: Clouds */

 /* #uc_clouds_bg_addon18355 {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     overflow: hidden;
 }

 #uc_clouds_bg_addon18355 #cloud-introuc_clouds_bg_addon18355 {
     position: relative;
     height: 100%;
     background: url();
     background: url(meme-background.png) 0 200px,
         url(meme-background.png) 0 300px,
         url() 100px 250px;
     animation: wind 20s linear infinite;
 }

 @keyframes wind {
     0% {
         background-position: 0 200px, 0 300px, 100px 250px;
     }

     100% {
         background-position: 1000px 200px, 1200px 300px, 1100px 250px;
     }
 }
 */


 /********************* Scroll Backgroud ******************/

 /* #scroll-container {
     position: fixed;
     z-index: -3;
     box-sizing: border-box;
     background-color: #d3302f;
     overflow: hidden;
     width: 100%;
     height: 100%;

     top: 0;
     right: 0;
 } */


 body {
     position: relative;
 }

 #scroll-container {
     /* position: fixed; */
     position: absolute;
     z-index: -3;
     box-sizing: border-box;
     background-color: #d3302f;
     overflow: hidden;
     width: 100%;
     height: 100%;

     top: 0;
     right: 0;
 }

 #scroll-container.white-background {
     background-color: white;
 }


 .background-layers {
     background: url(../asset/meme-background.png) 0 200px,
         url(../asset/meme-background.png) 0 300px;
     animation: wind 20s linear infinite;
     background-size: 1600px auto;
     pointer-events: none;
     height: 1000%;
 }

 @keyframes wind {
     0% {
         background-position: 0 200px, 0 300px, 100px 250px;
     }

     100% {
         background-position: 1000px 200px, 1200px 300px, 1100px 250px;
     }
 }


 .container-1 {
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
     width: 100%;
     padding: 20px;
     max-width: 1140px;
     margin-inline: auto;

     /* height: max-content; */
 }


 .container-2 {
     display: flex;
     flex-direction: column;
     /* gap: 0.5rem; */
     width: 100%;
     /* padding: 30px; */
     max-width: 1140px;
     margin-inline: auto;
     align-items: center;
 }





 /* Container for centering */
 .social-wrapper {
     display: flex;
     justify-content: center;
     align-items: center;
     justify-items: center;
     flex-wrap: wrap;
     gap: 15px;
 }




 /* Button styling */
 .retro-link {
     background-color: #2b3a5a;
     color: #ffffff;
     font-family: "Press Start 2P", cursive;
     font-size: 10px;
     padding: 10px;
     border: 4px solid #e63946;
     border-radius: 6px;
     cursor: pointer;
     transition: background-color 0.2s ease;
     text-align: center;
     text-decoration: none;
     display: flex;
     justify-content: center;
     align-items: center;
     height: 45px;
     /* Fixed height for consistency */
 }

 .retro-link:hover {
     background-color: #3c5488;
 }

 .retro-link:active {
     background-color: #ffffff;
     color: #e63946;
 }

 @keyframes flash {
     0% {
         background-color: yellow;
         color: black;
     }

     100% {
         background-color: transparent;
         color: #e63946;
     }
 }

 .flash {
     animation: flash 0.9s ease;
 }

 .lower-case {
     text-transform: lowercase;
 }

 .full-screen {
     height: 100vh;
 }

 .video-wrapper {
     display: flex;
     flex-direction: column;
     align-items: center;
     padding: 25px;
     background-color: #ffffff;
     border: 12px solid #2b3a5a;
     border-radius: 8px 8px 35px 8px;
     box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
     width: 90%;
     margin: 20px auto;
     gap: 15px;
 }

 /* Video styling */
 .retro-video {
     background-color: #2b3a5a;
     /* border: 4px solid #e63946; */
     border-radius: 4px;
     /* margin-bottom: 15px; */
     width: 100%;
 }

 /* Controls grid */
 .control-grid {
     padding: 20px;
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 8px;
     width: 100%;
 }

 .container-3 {
     display: flex;
     flex-direction: column;
     flex-grow: 1;
 }

 .center-vertical {
     margin-block: auto;
 }

 .control-btn {
     width: fit-content;
     font-size: 11px;
     padding: 11px;
 }


 /* for the about page */


 .text-box-2 {
     background-color: #e9ded2c3;
     /* color: #ffffff; */
     font-family: "Press Start 2P", cursive;
     font-size: 13px;
     padding: 20px;
     /* width: 100%; */
     text-align: center;
     /* border: 1px solid #1e2a44; */
     margin-top: 10px;
     border-radius: 10px;
     line-height: 2;
 }

 #image-box-2 {
     display: flex;
     align-items: center;
     justify-content: center;
     /* height: 18rem; */
     width: 100%;
     overflow: hidden;
     /* border: 2px solid #1e2a44; */
     /* padding: 10px; */
     margin-block-end: 10px;
     box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
     border-radius: 19px 19px 19px 19px;
     transition: transform 0.3s ease;

     flex-basis: 1;
     width: 100%;
     max-width: 320px;
 }

 #image-box-2:hover {
     transform: scale(1.05);

 }

 .panel-2 {
     background-color: #ffffff;
     border: 10px solid #1e2a44;
     border-radius: 5px 5px 30px 5px;
     padding: 20px;

     max-width: 90%;
     width: fit-content;


     /* width: 320px; */
     box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
     display: flex;
     flex-direction: column;
     align-items: center;
     align-items: center;
 }

 #gary-image {
     width: 320px;
     height: auto;
 }


 /* Styling for the grid container */

 .tweet-panel {
     display: inline-flex;
     flex-wrap: wrap;
     gap: 10px;
     justify-content: center;
 }

 .tweet {
     flex-basis: 1;
     width: 100%;
     max-width: 320px;
 }



 /* .tweet-panel {
     display: inline-block;

     max-width: fit-content;
     width: fit-content;

     text-align: center;

     background-color: orange;

 }

 .tweet {
     width: 100%;
     max-width: 320px;
     display: inline-block;

     vertical-align:top;

     background-color: #d3302f;
 }
 */





 /* Ensure tweets fit within their containers */
 .tweet blockquote {
     width: 100%;
     max-width: 100%;
     margin: 0;
     padding: 0;
     overflow-wrap: break-word;
 }




 /* Responsive design: Stack tweets on smaller screens */
 @media (min-width: 600px) {
     .tweet {
         max-width: 380px;

     }
 }



 @media (max-width: 580px) {
     .text-box-2 {
         font-size: 11px;
     }
 }