/* Paddy Boylan, 2025 */

/*================= BODY =================*/

body {
  margin: 0px;
  background-color: #E94D40;
}
  /* See the TEXT section for the body's text rules.

/*================= HEADER & LINKS =================*/

header {
  width: 1200px;
  margin: 0 auto;
}

.sectionContainer.top {
  text-align: center;
  background-color: white;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  padding-left: 0px;
}

.aButton {
  flex: 1;
  border: 1px none;
  border-radius: 10px;
  background-color: #0C243C;
  list-style: none;
  text-align: center;
  margin: 10px;
  display: flex;
}

/* Text size for these is controlled in the TEXT section */

.aButton:hover {
  transition: transform 0.1s ease;
  transform: scale(1.05);
}

.aButton a:hover {
  border: 1px none;
  border-radius: 10px;
}

.aButton a {
  color: white;
  padding: 20px;
  width: 100%;
}

.activeLink {
  border: 2px dotted white;
}


/*================= MAIN =================*/

#wrapper {
  width: 1200px;
  margin: 0 auto;
}

.sectionContainer {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 15px;
  margin-top: 15px;
}

.centered {
  text-align: center;
}

.sectionContainer.pad1{
  padding-left: 120px;
  padding-right: 120px;
}

.columnsContainer {
  display: flex;
  margin-top: 20px;
  gap: 40px;
  justify-content: flex-end;
}

.columnsContainer.gap {
  gap: 150px;
}

.column {
  flex: 1;
}

.flexNone {
  flex: none;
}

.margBot {
  margin-bottom: 40px;
}

/*================= GALLERY =================*/

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  border-radius: 5px;
}

.cake-item {
  text-align: center;
  padding: 20px 10px 10px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  height: 400px; 
  transition: transform 0.1s ease;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cake-item:hover {
  transform: scale(1.05);
}

.thumbnail {
  width: 100%;
  max-width: 300px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.modal {
  display: none; /* Doenst display UNLESS triggered by links that bring up its element specifically (see "a href="http://localhost:52330/cakes-for-sale.html#modal1" in the html) */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* This makes sure each .modal's display is changed from "none" to "flex" whenever the user's targeted URL (ie. the link they're clicking on) matches an element with this class.  */
.modal:target {
  display: flex;
}

.modalBackground {
  display: flex; /* Centers the content */
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.modalImg {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/*================= TABLE =================*/

/* See TEXT section below for Table's font styling */

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #0C243C;
}

th {
  background-color: #0C243C;
  color: white;
  text-align: left;
  padding: 10px;
}

td {
  padding: 10px;
}

tr {
  background-color: white;
}

/*================= FOOTER =================*/

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

footer ul {
  list-style: none;
  display: flex;
  gap: 40px;
  padding-left: 0;
  padding-right: 15px;
}

/*================= FORM =================*/

/* Font and font size controlled in TEXT section */

input[type=text], textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

textarea {
  height: 200px;
}

button[type=submit] {
  background-color: #0C243C;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

button[type=submit]:hover {
  background-color: #0C243C;
  transition: transform 0.1s ease;
  transform: scale(1.05);
}

.dropdown {
  display: block;
  padding: 12px;
  margin: 6px 0px 16px;
  border: 1px solid #ccc;
}

.inputDate {
  display: block;
  padding: 12px;
  margin: 6px 0px 16px;
  border: 1px solid #ccc;
}

/*================= TEXT =================*/

body, textarea, .inputDate {
  font-family: Arial, Helvetica, 'Calibri', sans-serif;
}

a {
  text-decoration: none;
}

/* 'rem', rather than 'em', is more consistent across different elements */
p, table, .aButton a, form, input, select, textarea, button {
  font-size: 1.4rem;
}

p, table {
  line-height: 150%;
}

p.closeParaTop {
  margin-bottom: 5px;
}

p.closeParaMiddle {
  margin-top: 5px;
  margin-bottom: 5px;
}

p.closeParaBottom {
  margin-top: 0px;
}

h1 {
  color: #E94D40;
  font-size: 52px;
  margin-top: 0px;
  margin-bottom: 0px;
}

h2 {
  color: #E94D40;
  font-size: 36px;
  margin-bottom: 20px;  
  margin-top: 0px;
}

h3 {
  color: #E94D40;
  font-size: 30px;
  margin-bottom: 10px;  
  margin-top: 10px;
}

.bold {
  font-weight: bold;
}

.gallery a, .gallery a:visited {
  color: black;
}

/*================= IMAGES (non-gallery ones) =================*/

.wholeThing {
  background-image: url(../images/web_images/filigreeLeft1137.jpg), url(../images/web_images/filigreeRight1137.jpg);
  background-position: left top, right top;
  background-repeat: repeat-y;
  background-size: 28%;
}

.logo {
  width: 600px;
}

.banner {
  border-radius: 10px;
}

.homeAndAbout {
  width: 1200px;
  border-radius: 10px;
}