/* START OF NAVIGATIONAL MENUS ON TOP OF EACH PAGE */

* {
    box-sizing: border-box;
}

html, body {    
place-items: center;
margin: 0;
padding: 0;
margin: 0;
overflow-x: hidden;
width: 100%;
font-family:  "Times New Roman", Times, serif;
text-align:center;
background-color: white;
color:black;
}

.logo {
grid-area: logo;
}
.logo:hover img{
animation: rotation 0.5s 2 linear;
}
.logo:active img{
 content:url(images/PCDlogo2.png)
}

@keyframes rotation {
  from {
    transform: rotate(0deg)
  }
  to {
    transform: rotate(360deg);
  }
}


.header {
grid-area: header;
}



/* MENUE only */
.navbar {
grid-area: navbar;
align-self: end;
position: relative;
display:inline-block;
}

.navbar a {
  float: left;
  font-size: 18px;
  color: black;
  text-align: left;
  padding: 8px 8px;
  text-decoration: none;
  z-index: 2;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 18px;  
  border: none;
  outline: none;
  color: black;
  padding: 8px 8px;
  background-color: inherit;
  font-family: inherit;
}




/* MENUE only */
.navbar a:hover, .dropdown:hover:not(.active), .dropbtn:hover {
  color:rgb(206, 120, 1);
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  padding: 8px 10px;
  z-index: 1;
}
/* Links inside the dropdown */
.dropdown-content a {
  color:black;
  float:left;
  border-radius: 5px;
  width:120px;
  background-color: rgb(246, 241, 234);
  padding: 8px 10px;
  text-decoration: none;
}

/* Change the background color of the dropdown content */
.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}

a.active {
color:rgb(230, 135, 2);
}
/* END OF TOP MENUE BAR */




/* MENUE-container ONLY */
.container-menue {
    display: grid;
    width: 99%;
    place-items: center;
    justify-content: center;
    background-color: rgb(245, 245, 246);
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: 'logo header navbar';
    padding: 25px;
    margin: 5px auto 0 auto; /* Add this to center it like container-main */
}

/* FOOTER */
.footer {
position: relative;
height:60px;
width: calc(100% + 40px);
background-color: rgb(241, 242, 243);
margin-top: 40px;
color: rgb(125, 125, 125);
font-size:14px;
text-align: center;
line-height: 450%;
margin-left: -20px;
margin-right: -20px;
margin-bottom: -40px;
}


.container-BG {
    width: 99%;
    margin: 0 auto;
    background-color: rgb(245, 245, 246);
    padding: 40px 20px 0 20px;
    margin-bottom: 40px;
    /* Remove the positioning that's causing the offset */
    /* position: relative;
    left: 50%;
    transform: translateX(-50%); */
}



/* INDEX PAGE */
.container-main {
    display: grid;
    place-items: center;
    justify-content: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.main-item {
    place-items: center;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    width: 100%;
    max-width: 280px;
    min-height: 350px;
    background-color: rgb(218, 218, 218);
    padding: 20px;
    box-sizing: border-box;
}

.main-item img {
  width: 90%;
  max-width: 260px;
  flex-shrink: 0;
  object-fit: cover;
  height: auto;
  transition: all 0.3s ease;
  margin-top: 10px;
  margin-bottom: 15px;
}

.main-item img:hover {
 transform: translateY(-10px) scale(1.02);
}

#caption {
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;   
}

#caption a {
text-decoration: none;
font-size: 18px;
color: rgb(99, 98, 98);
}

.button {
  background-color: rgb(234, 233, 233);
  border-radius: 8px;
  border:1px solid rgb(177, 177, 177);
  width:80%;
  max-width: 200px;
  min-width: 120px;
  padding: 5px 10px;
  margin-bottom: 15px;
  text-align: center;
  text-decoration:none;
  color: #8b5c19;
  font-size: 18px;  
  cursor: pointer;
  transition: all 0.3s ease;
  animation-name: butchange; 
  animation-duration: 4s;
  animation-iteration-count: 5;
  animation-delay: 3s;
  animation-timing-function: ease-in-out;
  flex-shrink: 0;
}
.button:hover {
  border: 1px solid #8b5c19;
  transform: translateY(-2px);
  background-image: linear-gradient(to right, rgb(234, 233, 233), rgb(252, 230, 178),rgb(234, 233, 233));
}
.button:active {
    border: 1px solid #8b5c19;
    background-color: rgb(241, 175, 22);
    transform: translateY(0);
}

@keyframes butchange {
  0% {background-color:  rgb(234, 233, 233);}
  20% {background-color:  rgb(231, 226, 213);}
  50% {background-color:  rgb(225, 217, 206);}
  75% {background-color:  rgb(231, 226, 213);}
  100% {background-color:  rgb(234, 233, 233);}
}


/* LOGO PAGE */
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  min-height: 250px;
  padding: 20px;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid gray;
  cursor: pointer; 
  transition: all 0.3s ease;
  box-sizing: border-box;
} 

.logo-item img {
  width:76%;
  height: auto;
  transition: all 0.5s ease;
  object-fit: contain;
  max-width: 100%;
}

.logo-item:hover img{
 width: 80%;
 transform: scale(1.05);
}




/* MULTIMEDIA PAGE */

/* containers for main screenshots */
.multimedia-item {
  place-items: center;
  justify-content: center;
  border-radius: 10px;
  border:4px solid rgb(253, 253, 253);
  position: relative;
  width:100%;
}

.multimedia-item:hover .overlay{
  bottom: 0;
  height: 100%;
  cursor: pointer;
  padding: 20px;
}

.multimedia-item img {
  display: block;
  width: 100%;
  border-radius: 10px;
  height:auto;
}

.overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: #008CBA;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  height:0;
  transition: .5s ease;
}

.text {
  /* color: rgb(252, 171, 58); */
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  
}

.multi-icon {
  max-width: 90px;
  width: 30%;
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}



/* DRAWING PAGE */
/* contaners for main drawings */
.drawing-item {
padding: 35px 15px 15px 15px;
position: relative;
place-items:center;
width:230px;
height: 230px;
}

.drawing-item img{
  width: 230px;
  height: 230px;
  object-fit: cover;
  position: absolute;
  border: 1px solid black;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition-duration: 0.8s;
  z-index: 0;
}

.drawing-item img:hover{
  width:300px;
  height: 300px;
  z-index: 1;
}


p {
color:black;
align-items: center;
text-align: justify;
text-justify: inter-word;
}


/* CONTACT PAGE */
.picture1 {
  grid-template-columns: 1/2;
  display: block;
  margin-top: 10%;
  font-size: 20px;
  color: rgb(193, 101, 2);

}

.form {
grid-template-columns: 2/4;
place-self:left;
width:80vw;
max-width: 500px;
min-width:300px;
border-radius:3%;
text-align: left;
border: 1px solid rgb(12, 12, 12);
background-color: rgb(245, 236, 224);
padding: 20px;
}

.form-content {
  padding: 0 20px;
}

.form-title {
  text-align: center;
  margin-bottom: 20px;
}

.form label {
  display: block;
  margin-left: 10px;
  margin-bottom: 15px;
  font-weight: bold;
}

.form label[for="message"] {
  margin-top: 25px; /* Extra spacing above "Your Message" */
}

input[type=text], input[type=email], select, textarea {
  width: 68vw;
  max-width: 365px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type=text], input[type=email] {
  height: 35px;
}

input[type=submit] {
  background-color: rgb(184, 109, 2);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  margin: 15px auto;
}

input[type=submit]:hover {
  background-color: #8b5c19; 
}

input[type=submit]:active {
  border:1px solid #8b5c19;  
  background-color: rgb(241, 186, 22);
}


/* ABOUT */
.bio {
width:100%;
padding: 25px;
font-size: 18px;
color: rgb(99, 98, 98);
margin-bottom: 40px;
display: flex;
align-items: flex-start;
gap: 35px;
}

.bio img {
  flex-shrink: 0;
  margin-top: 20px;
  margin-left: 20px;
  max-width: 300px;
  height: auto;
}

.bio-text {
  flex: 1;
  text-align: left;
  margin-top: 25px;
  padding: 20px;
}

.bigLetters {
  color:rgb(170, 95, 4); 
  font-size: 34px; 
  font-weight: bold;
}


.specialT2{
  font-size: 25px;
  color:rgb(170, 95, 4);
  font-weight: bold;
  text-decoration: wavy;
  
}



/* GALLERY */

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  border: 1px solid #777;
  transform: translateY(-10px) scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color:rgb(255, 255, 255);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}


/* MODAL */
.gallery-modal {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
display: flex;
align-items: center;
justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  margin: 0 80px; /* Space for navigation buttons */
  align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}


.close-btn {
    position: fixed;
    top: 20px;
    right:20px;
    color: black;
    font-size: 3.5em;
    font-weight: 900;
    padding: 8px 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    font-family: Arial, Helvetica, sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1010;
}

.close-btn:hover {
    color: red;
    transform: scale(1.1);
    background: rgba(232, 231, 231, 0.3);
}



.nav-btn {
  position: fixed;
  border: none;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 4em;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  z-index: 1005;
   
}

.nav-btn:hover {
 background: rgba(232, 231, 231, 0.3);
 color:red;
 transform: scale(1.1);
}

.prev-btn {
    left: 30px;

}

.next-btn {
    right:30px;
  
}


.image-counter {
  color: black;
  padding: 10px 20px;
  font-size: 1.1em;
  backdrop-filter: blur(10px);
  margin: 15px 0 10px 0; 
  display: block;
}

.image-title {
  margin-top: 10px;
  color: black;
  font-size: 1.1em;
  text-align: center;
  padding: 8px 16px;
}

.image-description {
    margin-top: 15px;
    color: black;
    font-size: 1.1em;
    text-align: center;
    padding: 12px 20px;
    max-width: 1000px;
    line-height: 1.5;
    margin-bottom: 20px; /* Add bottom margin to ensure visibility */
    flex-shrink: 0; /* Prevent description from being cut off */
}

/* Tighter spacing for galleries with longer descriptions */
.gallery-modal.tight-spacing .image-title {
    margin-top: 5px;
    padding: 4px 16px;
}

.gallery-modal.tight-spacing .image-description {
    margin-top: 5px;
    padding: 8px 20px;
    line-height: 1.3;
}

.gallery-modal.tight-spacing .image-counter {
    margin: 5px 0 2px 0;
    padding: 8px 20px;
}


/* RESPONSIVE DESIGN */
@media only screen and (max-width: 768px) {
 
    
    html {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }


  /* MENUE */
.container-menue {
  grid-template-columns: 1fr; /* Single column layout */
        grid-template-areas: 
            'logo'
            'header'
            'navbar'; /* All elements stacked vertically */
        gap: 10px; /* Add some spacing between elements */
        padding: 0 15px; /* Reduce padding on mobile */
  
   }

   /* Make navbar items more compact on mobile */
    .navbar {
        display: flex;
        align-items: center;
        gap: 5px; /* Reduce spacing between nav items */
        flex-wrap: nowrap; /* Prevent wrapping */
    }
    
    /* Make nav links more compact */
    .navbar a {
        font-size: 14px; /* Smaller font size */
        padding: 5px 5px; /* Reduce padding */
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    .dropdown .dropbtn {
  font-size: 14px; 
    }


    /* Ensure home icon stays inline */
    .navbar .fa-home {
        font-size: 15px; /* Slightly smaller icon */
        margin-left: 5px;
    }





/* FOOTER */
 .footer {
        width: calc(100% + 30px) !important;  /* Account for mobile padding */
        margin-left: -15px !important;        /* Match mobile padding */
        margin-right: -15px !important;       /* Match mobile padding */
        margin-top: 40px !important;
        margin-bottom: -40px !important;
}




/*INDEX PAGE */
.container-bg {
        width: 98% !important;
        padding: 30px 15px 0 15px;
        margin: 0 !important;
        min-height: 100vh;
}

.container-main {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-bottom:25px;
}

#caption a {
    font-size: 16px;
}

.button {
    font-size: 15px;
    border:1px solid rgb(159, 159, 159);
    padding: 8px 12px;
    margin-bottom: 5px;
}

/* CONTACT PAGE */
.picture1 {
  margin-top: 0px;
}
 .picture1 img {
  width: 70px;
  height: auto;
  font-size: 16px;
 }

 .form {
place-self: center;
width: 100%;
max-width: 80vw;
padding:15px;
}

input[type=text], select, textarea {
  width: 58vw;
  max-width: 260px;
  padding: 10px;
}

/*ABOUT PAGE */
.bio {
 flex-direction: column;
 align-items: center;
 text-align: left;
 font-size: 15px;
 padding: 15px;
}

.bio img {
 margin: 0 auto;
 display: block;
 margin: 0 auto 10px auto;
 display: block;
 width: 80%;
 max-width: 300px;
 min-width: 200px;
}


 .bio-text {
 width: 100%;
 text-align: left;
 margin-top: 0;
 
}

.bio-text p {
        text-align: left;
    }

.bigLetters {
  font-size: 18px;
}

.specialT2{
  font-size: 18px;
}

/* GALLERY RESPONSIVE DESING */
 .modal-content {
    margin: 70px 10px 20px 10px; /* Reduced side margins for more space */
    max-width: calc(100% - 20px);
    padding-bottom: 20px; /* Removed extra padding */
  }
            
            .modal-image {
                max-height: 50vh;
            }
            
            .close-btn {
                top: 15px;
                right: 15px;
                font-size: 2em;
                padding: 8px;
                z-index: 9999; /* Ensure highest priority */
            }
            
/* Position nav buttons below the modal content */
.nav-btn {
    font-size: 2em;
    padding: 8px 12px; /* Smaller padding for mobile */
    background: rgba(255, 255, 255, 0.9);
}
            
.prev-btn {
    left: 2px;

}

.next-btn {
    right:2px;
  
}
            
.image-counter {
    font-size: 1em;
    padding: 8px 16px;
    margin: 10px 0 8px 0;
}
            
.image-title {
    font-size: 1em;
    padding: 10px 12px;
}
            
.image-description {
    font-size: 1em;
    padding: 8px 16px;
    max-width: 96%;
}

}



       