/* TESTING */

/*
OUTLINE
=== UNIVERSAL
=== GENERAL ELEMENTS (body, p, a, etc)
=== CLASSES
=== NAVIGATION
=== RESPONSIVE CARD GRID
=== PORTFOLIO CLICKABLE CARD GRID
*/

/* === UNIVERSAL
The following box-sizing puts padding on the inside of elements rather than the outside. This makes sizing less confusing because you don't have to subtract off you padding to get the width and height you want. See here for further explanation: https://www.w3schools.com/csS/css3_box-sizing.asp */
* {
  box-sizing: border-box;
}

/* === GENERAL ELEMENTS (body, p, a, etc)
This includes default settings for major, common elements. */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #344734;
}

p {
  color:white;
  font-size:32px;
  padding: 0 10%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

a {
  color: orange;
}

h1 {
  margin: 10px;
  font-size:30px;
  text-align: center;
  color:white;
}

h2 {
  color:white;
  text-decoration: underline;
}

li {
  color:white;
  font-size:26px;
  margin: 15px;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

img {
  width:100%;
}


/* === CLASSES
Styles for lots of individual classes */

.black {
  color:black;
}

/* Darken image and make it bigger on hover. 
https://www.southcoastview.co.uk/news/darken-image-on-hover-css/ */
.darker-90:hover {
  filter: brightness(80%);
  transform: scale(1.04);
}

.darker-90 {
  transition-duration: 0.3s;
}

.center-text {
  color:white;
  padding: 0 10%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Paragraphs inside of a div like this
<div id="much-padding">
will use these settings. */
#much-padding p{
  padding: 0 20%;
  font-size:20px;
}

.small-font {
  font-size:20px;
}

.medium-font {
  font-size:30px;
}

.large-font {
  font-size:36px;
}

.yes_underline {
  text-decoration: underline;
}

.no_underline {
  text-decoration: none;
}

/* This seems stupid as shit, but I had to be redundant to prevent images insider of anchors from being underlined. */
.no_underline:hover {
  text-decoration: none;
}

.no_padding {
  padding: 0;
}

.simple_centered {
  padding: 0 20%;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  flex-wrap: wrap;
  padding: 4px 20px;
  justify-content: center;
  align-items: center;
}

.limited {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.sellsheet {
  width:70%;
  border-radius:18px; /* Border radius rounds off the edges of the image. */
}

.summary_text {
  max-width:75%;
  font-size:28px;
  text-align:center;
}

.fullwidth {
  flex: 100%;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.awards {
  flex: 30%;
  max-width: 30%;
  transition-duration: 0.3s;
}

.generic_award {
  width:90%;
}

.ipa_award {
  width:100%;
  border-radius:12px; /* Border radius rounds off the edges of the image. */
}

/* Size up awards on hover */
.awards:hover {
  transform: scale(1.04);
}
.button {
  background-color: black;
  border: none;
  color: white;
  padding: 4px 8px;
  margin: 2px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 28px;
  cursor: pointer;
  border-radius:18px;
  transition-duration: 0.3s;
}

/* Size up buttons on hover */
.button:hover {
  transform: scale(1.08);
}


/* === NAVIGATION
Style for the navigation bar */

nav {
  font-size:24px;
  flex: 100%;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 20px;
}

/* Hyperlinks within nav will use the following settings. */
nav a {
  color:orange;
  padding: 0 10px;
  text-decoration: none;
}

/* Change navigation hyperlinks on hover. */
nav a:hover {
  /*font-weight: bold;*/
  text-decoration: underline;
}

/* For social media icons */
.social {
  width:20px;
  height:20px;
  padding:2px 0 0 10px;
  text-decoration: none;
}

/* Size up social images on hover */
.social:hover {
  transform: scale(1.2);
  text-decoration: none;
}


/* === RESPONSIVE CARD GRID
Style for responsive card grid.
The important line is below:
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
This means:
 - Each card wants to be at least 350px wide.
 - The browser automatically determines how many columns fit.
 - Cards expand to fill any extra horizontal space.
 - On a phone, the layout naturally collapses to a single column.
 - On tablets it may become two or three columns.
 - On large monitors it can become four, five, or more columns depending on available width.
*/
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 10px;
  margin: 0 40px 0 40px; /* Order is: top, right, bottom, left */
}

/* All divs that are direct children of
grid-container will use this style. */
.grid-container > div {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  /*background-color: #E7D1B5;*/

  /* Center everything */
  text-align: center;

  /* Optional: make content align nicely */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-container img {
  max-width: 200px;
  width: 200px;
  height: auto;
  margin-bottom: 10px;
}

.grid-container h3 {
  margin: 0 0 10px 0; /* Order is: top, right, bottom, left */
  font-size:30px;
  color: white;
}

.grid-container p {
  margin: 0;
  font-size:20px;
}


/* Bigger version of responsive card grid follows. */
.grid-container-big {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  margin: 0 30px;
  gap: 20px;
}

/* All divs that are direct children of
grid-container-big will use this style. */
.grid-container-big > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* This makes <a> within grid-container-big get treated like a rectangular box (a block), not inline text. */
.grid-container-big a {
  display: block;
}

.grid-container-big img {
  max-width: 500px;
  max-height: 500px;
  object-fit: cover;
}



/* === PORTFOLIO CLICKABLE CARD GRID */
.grid-container-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 10px;
  margin: 0 30px; /* Vert then horiz margin */
}

/* The clickable card */
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: white;

  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;

  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Title */
.card h2 {
  margin: 10px;
  font-size:30px;
  text-align: center;
  text-decoration: underline;
}

.card p {
  font-size:22px;
}

/* Hover effect */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.card:hover h2,
.card:hover p {
  color: orange;
}


/* === PORTFOLIO CLICKABLE BULLETPROOF CARD GRID
Similar to the above, but this card grid doesn't rely on any inheritance at all. This avoids unexpected style surprises.
Currently this is used for the homepage.
*/
.grid_bulletproof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin: 0 30px;
}

.card_bulletproof {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-decoration: none;
  background: #324734;
  border-radius: 12px;
  overflow: hidden;

  border: 2px solid #333;

  transform: translateY(0);
  box-shadow: 0 0 0 rgba(0,0,0,0);

  transition:
  transform 0.25s ease,
  box-shadow 0.25s ease,
  border-color 0.25s ease;
}

.card_bulletproof img {
  display: block;

  width: 100%;
  max-width: 260px;
  height: auto;

  margin: 0 auto;
}

.card_bulletproof h2 {
  margin: 10px;
  font-size:24px;
  text-align: center;
  text-decoration: underline;
}

.card__content {
  padding: 12px;
}

.card__title {
  margin: 0;
  font-size: 24px;
  color: white;
  transition: color 0.25s ease;
}

.card__text {
  margin-top: 8px;
  font-size: 16px;
  color: #bbb;
  transition: color 0.25s ease;
}

.card_bulletproof:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border-color: orange;
}

.card_bulletproof:hover .card__title,
.card_bulletproof:hover .card__text {
  color: orange;
}

.card_bulletproof:hover img {
  transform: scale(1.03);
  transition: transform 0.25s ease;
}

/* === For Tall Boy Sun in particular. */
.book_tbs {
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    max-width: 1000px; /* Total width of image + text */
    margin: 1rem auto; /* Centers the whole block */

    padding: 0 1rem;   /* Small margin on phones */
}

.book_tbs img {
    width: 370px;
    height: auto;
    flex-shrink: 0;
}

.book-description_tbs {
    flex: 1;
}

@media (max-width: 830px) {
    .book_tbs {
        flex-direction: column;
        align-items: center;
    }

    .book-description_tbs {
        text-align: left;
    }
}
