body {
    background-image: url("imgbg.PNG");
    background-repeat: no-repeat;
    background-attachment: fixed; 
    background-size: cover;
    background-position: relative; 
    margin: 0; 
    font-family: 'Times New Roman', Times, serif; 
}

.header {
    background-color: black;
    color: white;
    text-align: center;
    padding: 50px;
}

.popup1, .popup2 {
    max-width: 100%;  
    height: auto;      
}

.links {
    position:absolute;
    display: flex;
  flex-wrap: wrap;
  height: 600px;
  width: 230px;
  right: 30px;
  top:180px;
}
.links2 {
    position: absolute; 
    left: 600px;
    top: 300px;     
    z-index: 10;       
    width: 20%;         
    height: 38%;
    display: flex;
    gap: 5px;  
}

.popup1 {

        width: 40%;         
        position: relative; 
        z-index: 5;         
        margin: 0 auto;     
        height: auto;           
        overflow: hidden;   
        right: 170px;
    }


.popup1-gifs {
        position: absolute; 
        left: 540px;
        bottom: 70px;     
        z-index: 10;       
        width: 30%;         
        height: auto;
        display: flex;
        gap: 5px;          
    }
      
.gif {
    max-width: 25%;         
    max-height: auto; 
    object-fit: cover; 
    padding: 2px;
}

.popup2 {
    width: 30%;        
    position: relative;
    z-index: 10;
    height: auto;      
}


.column {
    position: relative;
    display: flex;
    flex-wrap: wrap;    
    justify-content: flex-start;
    gap: 10px;
    margin-left: 20px;
    width: auto;        
    height: auto;
}


.container {
    position: relative; 
    display: flex;
    justify-content: center; 
    align-items: center;    
    width: 100%;
    height: auto;
}

.webname {
    position: fixed;  
    top: 0;           
    right: 0;  
    padding: 10px;       
    width: 500px;    
    height: auto;     
    z-index: 9999;    
}

.diary {
    position: absolute; 
    left: 100px;
    top: 70px;     
    z-index: 10;       
    width: 17%;         
    height: 38%;
    display: flex;
    overflow-x: hidden;
    overflow-y: auto;
    gap: 5px;    
}
.h3 { font-size: 2 em;}

.p { font-size: 1 em;
    }
@media (max-width: 768px)  {
    .column {
        flex-direction: row; /* Stack the images vertically on small screens */
        align-items: center; /* Center images horizontally */
    }

    .popup1 {
        left: 10%;
        bottom: 5%;     /* Adjust placement for smaller screens */
        width: 50%;    /* Allow full width for GIFs container */
    }

    .popup1-gifs {
        display: none;
        }

    .popup2 {
        width: 70%; /* Make popup2 smaller (50% of the container's width) */
    }

    .webname {
        width: 350px;  /* Adjust the width of the webname image on smaller screens */
        top: 10px;      /* Move it down a little from the top */
    }
.diary { left: 15%;
    height: 22%;
    width:40%;
}
}
  