/* ============================================
   Global Page Styling
   ============================================ */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* stop page scroll */
}

body {
    /* Background image setup */
    background-image: url("../img/background.jpg");
    background-repeat: no-repeat;
    background-position: top;
    background-attachment: fixed;
    background-size: cover;

    /* Text styling */
    color: #FF00D2;
    font-family: sans-serif;

    /* Flex layout (stack header, main, footer) */
    display: flex;
    flex-direction: column;
}

/* Modal Lock: Prevents background scroll when age verification modal is active */
body.modal-active {
    overflow: hidden !important;
}

/* ============================================
   Header (Fixed at Top)
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img#lips {
    width: clamp(150px, 35%, 350px);
    height: auto;
}

/* Note: float is ignored here because header is a flex container */
header img#ad {
    width: 30%;
    height: auto;
    float: right;
    padding-right: 50px;
}

/* ============================================
   Main Area (2 rows: Header Image & 4 Columns)
   ============================================ */
main {
    flex: 1; /* Allows main to take up all remaining vertical space */
    margin-top: 120px;  /* space for fixed header */
    margin-bottom: 60px; /* space for fixed footer */
    overflow: hidden;   /* prevent main scroll itself */
    
    display: flex; 
    flex-direction: column; /* Stacks .row.first and .row.second vertically */
    width: 100%;
}

/* .container class from previous version is unused in index.html, removing for clarity. */


/* Row 1 (Header image: #emad) */
.row.first {
    /* Gives the row height based on its content (the image) */
    flex-grow: 0; 
    flex-shrink: 0;
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center;
    border-bottom: 2px solid #ccc;
    width: 100%;
    padding: 10px 0;
}

/* Styling for the header image within Row 1 */
main #emad {
    height: auto;
    max-height: 150px;
    width: auto;
    object-fit: contain;
	padding-top: 25px;
}

/* Row 2 (4 scrollable columns) */
.row.second {
    flex: 1; /* Allows the row to fill the rest of the vertical space */
    display: grid;
    /* FIX: Changed to 4 equal-width columns */
    grid-template-columns: repeat(4, 1fr); 
    width: 100%;
    height: 100%;
    min-height: 0; /* Important for grid inside flex */
    gap: 15px; /* Spacing between columns */
}

/* Each column cell scrolls independently */
.cell {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    box-sizing: border-box;
    /* Optional: Add a subtle background to columns for definition */
    background-color: rgba(0, 0, 0, 0.2); 
}


/* ============================================
   Footer (Fixed at Bottom)
   ============================================ */
#links_footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
}

#cp1{
	color: #FCC3DC;
    text-shadow: 0px 0px 20px #ED1C91;
    font-size: clamp(.8rem, 1.5vw, 1.25rem);
}

#cp2 {
    color: #FCC3DC;
    text-shadow: 0px 0px 10px #CB0A71;
	font-size: clamp(0.5rem, .75vw, 1rem);
	text-decoration: none;
}

/* ============================================
   Link Images & Lists
   ============================================ */
.links-list li img.link-img {
    max-width: 80%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    margin: 5px auto;
    display: block;
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.header-img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    min-height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    align-self: center;
}


/* ============================================
   AGE VERIFICATION MODAL STYLES (REQUIRED FOR OVERLAY)
   ============================================ */

/* The full-screen overlay backdrop */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark semi-transparent background */
    z-index: 9999; /* Ensure it is on top of everything */
    display: none; /* JS controls visibility: 'flex' when needed */
    justify-content: center;
    align-items: center;
}

/* The modal box itself */
#modal {
    background-color: #1a1a1a;
    color: #FCC3DC;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px 5px rgba(255, 0, 210, 0.5); /* Pink glow effect */
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* Styling for the date input field */
#dob {
    margin: 15px 0 20px 0;
    padding: 10px;
    font-size: 1.1em;
    border: 1px solid #FF00D2;
    border-radius: 5px;
    background-color: #000;
    color: #FCC3DC;
    width: 80%;
    text-align: center;
}

/* Styling for the submit button */
#submitBtn {
    background-color: #FF00D2;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 20px;
}