/*
Theme Name: Watsons Custom Theme
Author: Gemini
Description: A custom mobile-friendly theme for Watsons Brohub.
Version: 1.9
*/
@import url('https://fonts.googleapis.com/css2?family=Syncopate&display=swap');
body {
    font-family: 'Syncopate', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-image: url('/wp-content/uploads/2025/08/watsons-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background: transparent;
    text-align: center;
    color: #fff;
    width: 100%;
}

.site-header {
    margin-bottom: 2rem;
}

.site-branding {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-header-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.custom-header-media {
    display: block;
    width: 100%;
}

.custom-header-media img, .header-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

.page-grid {
    display: grid;
    gap: 1rem;
    place-items: center;
}

.page-link {
    display: block;
    width: 100%;
}

.page-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

#sub-view {
    background: linear-gradient(to right, #004d40, #00838f);
    padding: 2rem;
    margin-top: 2rem;
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}



@media (max-width: 600px) {
    .container {
        margin: 0;
        padding: 0.5rem;
    }

    .page-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-grid a:last-child:nth-child(odd) {
        grid-column-start: 1;
        grid-column-end: 3;
        justify-self: center;
        width: 50%;
    }
}

@media (min-width: 601px) {
    .page-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
p {
}

/* General Button Styles */
button,
.button,
input[type="submit"] {
    background-color: #000000;
    color: #ffffff;
    width: 100%;
    padding: 15px 20px;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 0;
    font-size: 18px;
}

/* Specific Button Overrides */
.back-button {
    background-color: #000000;
    color: #ffffff;
    padding: 15px 20px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: none;
}

.back-button:hover {
    background-color: #333333;
}

.close-button {
    position: absolute;
    top: 15px;
    left: 15px;
    width: auto;
    height: auto;
    border-radius: 0;
    background-color: #000000;
    color: white;
    border: none;
    font-size: 16px;
    line-height: normal;
    text-align: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: none;
}

.close-button:hover {
    background-color: #333333;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

table th, table td {
  padding: 8px;
  text-align: left;
  border: 1px solid #ddd;
}

table th {
  background-color: #f2f2f2;
}

table img {
  width: 100%;
  max-width: 200px;
  min-width: 100px;
  height: auto;
}

/* Responsive Table for Mobile */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    border: 1px solid #ccc;
  }

  td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
  }

  td:before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    content: "";
  }

  table img {
    width: 100%;
    max-width: 150px; /* Smaller max-width for mobile */
    min-width: 0; /* remove min-width for mobile */
    height: auto;
    margin: 0 auto; /* Center the image */
  }
}
