/* All Styles for My Portfolio */

/* Container containg all websites */
.portfolioContainer { 
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%; 
    margin: 0 auto;
    background-color: #ffffff;
    justify-content: center;
    padding: 20px;
    border-radius: 8px;
    margin: 10px;
}

/* Each website title */
.portfolioTile {
    background-color: #000000;
    border-radius: 8px;
    padding: 5px;
    height: 340px;
    border: 2px solid #000; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Styling the links inside the Contact Options Container */
.portfolioContainer a {
    color: #add8e6; 
    text-decoration: underline;
    font-style: italic;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.portfolioContainer .mainLogo {
    margin-top: 5px;
    margin-bottom: 0px;
}

/* The Button that opens the modal popup */
.viewMoreBtn {
  display: inline-block;
  margin: 10px 0 0 0;
  padding: 8px 16px;
  background-color: #444;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* The Hover style for the modal button */
.viewMoreBtn:hover {
  background-color: #666;
  transform: scale(1.05);
}

/* The Dark overlay behind the modal */
.modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* The Active state of the modal overlay */
.modalOverlay.active {
    display: flex;
}

/* The Modal popup container */
.modal {
    border: 5px solid #ffffff;
    background-color: #000000;
    text-align: center;
    margin: 10px;
    padding: 25px 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 85%;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    font-family: sans-serif;
}

/* The Close button in the modal */
.closeModal {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
}

/* The Title text inside the modal */
#modalTitle {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    text-align: center;
}

/* The Paragraph items inside the modal content */
#modalContent p {
    position: relative;
    padding-left: 20px;
    text-align: left;
    padding: 5px;
}
