/**
  *   Title: Lab 4 - CIS 195 - Fall 2025
  *  Author: Bobby Harper
  *
  *    File: css/iframes.css
  * Version: 1.0
  *    Date: 10/24/2025
  *
  * This CSS file styles the iframes used in the project, focusing on a grid layout
  * to display reviews with sections for images, ratings, pros, cons, and overviews
  * in a visually appealing manner.
*/


/* The review container to make everything come together*/
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  padding: 1rem;
  background-color: #60636b;
  border-radius: 15px;
  backdrop-filter: blur(6px);
}

/* Column 1: Image + Rating */
.review-image-rating {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.review-image-rating img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.review-rating {
  font-size: 24px;
  color: gold;
}

/* Column 2: Pros + Overview */
.review-pros {
  grid-column: 2;
  grid-row: 1;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 10px;
}

.review-overview {
  grid-column: 2 / span 2;
  grid-row: 2;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 10px;
}

/* Column 3: Cons */
.review-cons {
  grid-column: 3;
  grid-row: 1;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 10px;
}

/* Typography formating. */
.review-pros ol,
.review-cons ol {
  padding-left: 1.2rem;
}

.review-pros strong,
.review-cons strong {
  display: block;
  margin-bottom: 0.5rem;
}

.review-overview h2 {
  margin-bottom: 0.5rem;
}

/* Scrollbar Styling for the iframes only */
body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
  background-color: #a9dbd3;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #88c9be;
}