/**
 * Base CSS styles for the Craftr project.
 *
 * This file includes:
 * - A CSS reset for consistent styling across browsers.
 * - General project styles for typography, layout, and colors.
 * - Utility classes for buttons, containers, and images.
 * - Specific styles for various sections of the project, such as the header,
 *   footer, home page, diary, classes, FAQ, contact, account, and error pages.
 */

/* C S S  R E S E T */

/* Taken from http://meyerweb.com/eric/tools/css/reset v2.0 | 20110126 License: none (public domain) */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: circle;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* P R O J E C T  S T Y L E S */

/* G E N E R A L */

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background-color: rgba(250, 250, 250, 0.9);
  ;
  color: #191945;
  font-family: "Hind Madurai", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
}

main {
  margin-top: 150px;
  flex: 1 0 auto;
  padding-bottom: 50px
    /* Sticky footer, see (see https://materializecss.com/footer.html) */
}

h1 {
  padding: 1rem 0;
  font-family: "Montserrat", sans-serif;
  font-size: xx-large;
  font-weight: 800;
  font-style: normal;
  color: #191945
}

h2 {
  padding: 1rem 0;
  font-family: "Lora", serif;
  font-size: x-large;
  font-weight: bolder;
  font-style: normal;
  color: #191945
}

h3 {
  padding: 1rem 0;
  font-family: "Lora", serif;
  font-size: large;
  font-weight: bold;
  font-style: normal;
  color: #191945
}

p {
  padding: 0.5rem 0;
  font-family: "Hind Madurai", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  color: #191945;
}

a {
  text-decoration: none;
}

ul li {
  list-style-position: inside;
  text-align: center;
}

/* Align form placeholder text */

::placeholder {
  text-align: center;
}

/* Bootstrap toasts */

.toast {
  background-color: #fafafa !important;
  color: #191945 !important;
  border: 2px solid #ffc500 !important;
}

.toast-header {
  background-color: #ffc500 !important;
  color: #191945 !important;
  font-weight: bold;
}

/* U T I L I T Y */

/* Colours */

.apple-green {
  background-color: #2e6b05;
  color: #fafafa;
}

.mint {
  background-color: #006274;
  color: #fafafa;
}

.royal-purple {
  background-color: rgb(117, 61, 162);
  color: #fafafa;
}

.crimson {
  background-color: #b40001;
  color: #fafafa;
}

.orange {
  background-color: #a55500;
  color: #fafafa;
}

.gold {
  background-color: #ffc500;
  color: #fafafa;
}

/* Buttons */

button>a {
  color: #fafafa;
  text-decoration: none;
}

.base-button {
  color: white;
  text-decoration: none;
  display: inline-block;
  width: 100px;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
}

.green-btn {
  background: #2e6b05;
}

.mint-btn {
  background: #006274;
}

.purple-btn {
  background: #753da2;
}

.red-btn {
  background: #b40001;
}

.orange-btn {
  background: #a55500;
}

.gold-btn {
  background: #ffc500;
}

input[type="reset"] {
  color: white;
  text-decoration: none;
  display: inline-block;
  width: 100px !important;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
}

/* Containers and groups */

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 85%;
  margin: 100px auto;
  padding: 2rem;
  background-color: rgba(250, 250, 250, 0.9);
  border-radius: 15px;
  text-align: center;
}

.form-group {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  gap: 10px;
  text-align: center;
}

.button-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

/* User, class, and instructor images*/

.photo-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

/* H E A D E R */

.header-logo {
  margin: 5px 0;
  height: 65px;
  border-radius: 100%;
  border: 5px solid #191945;
}

.bg-body-tertiary {
  height: 75px;
  background-color: #b40001 !important;
}

a.nav-details {
  margin-left: 3rem;
  margin-right: 3rem;
  padding: 0.5rem;
  color: #fafafa;
}

a.nav-details:hover {
  background-color: rgba(255, 197, 0, 0.9);
  color: #b40001 !important;
  border-radius: 150px;
  box-shadow: 0px 0px 10px rgba(255, 197, 0, 0.9);
  transition: all 0.5s ease-in-out;
}

.nav-entry.active a {
  color: #ffc500 !important;
  font-weight: bold;
}

/* Hamburger menu */
/* Info from https://www.youtube.com/watch?v=45QSuJaHEss */

.navbar-toggler {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  --bs-navbar-toggler-border-color: #fafafa;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  color: #fafafa;
}

.navbar-collapse {
  width: 100% !important;
  background-color: #b40001;
  text-align: center;
  padding: 10px 0;
}

.navbar-nav .nav-entry a {
  display: block !important;
  padding: 10px 20px !important;
  color: #fafafa;
}

/* F O O T E R */

.footer {
  display: flex;
  height: 100px;
  align-items: center;
  justify-content: space-between;
}

.social-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.smallprint {
  font-size: 1rem;
  color: #fafafa;
  text-decoration: none;
}

.smallprint:hover {
  text-decoration: none;
  color: #753da2;

}

/* Social media icons */

.fa-brands {
  font-size: 40px;
  width: 3rem;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #fafafa;
}

.fa-square-facebook:hover {
  color: #0165e1;
  border: none;
}

.fa-square-instagram:hover {
  color: #ff1493;
  border: none;
}

.fa-bluesky:hover {
  color: #0084ff;
  border: none;
}

.fa-github:hover {
  color: #191945;
  border: none;
}

/* Hide social media icon text */
.social-media {
  display: none;
}

/* H O M E */

/* Hero section */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgba(250, 250, 250, 0.9);
  color: #191945;
  padding: 30px;
  width: 85%;
  border-radius: 15px;
}

section+div.hero {
  width: 50%;
}

.hero h1 {
  font-size: 3rem;
}

.hero p {
  font-size: 1.5rem;
}

.hero-img {
  width: 10em;
  border-radius: 100%;
  border: 8px solid #191945;
}

.hero-background {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
}

.hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://res.cloudinary.com/dvzs9gve0/image/upload/v1745062395/home-background_q4qea8.webp") no-repeat fixed center;
  background-size: cover;
  transform: scaleY(-1);
  z-index: -1;
}

.event-emphasis {
  font-weight: bold;
}

/* Workshop section */

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-template-rows: auto;
  justify-content: center;
  gap: 25px;
  margin: 0 auto;
  width: 100%;
}

.workshop-card {
  background: white;
  padding: 15px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.workshop-img {
  width: 85%;
  object-fit: cover;
  border-radius: 8px;
}

/* D I A R Y */

.diary-container {
  max-width: 85%;
  margin: 0 auto;
  padding: 20px;
}

.diary-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: rgba(250, 250, 250, 0.9);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

.diary-class {
  align-items: center;
  background: rgba(255, 197, 0, 0.9);
  ;
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.class-details {
  text-align: center;
}

.diary-background {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("https://res.cloudinary.com/dvzs9gve0/image/upload/v1745062392/classes-background_bvoekn.webp") no-repeat fixed center;
  background-size: cover;
}

/* C L A S S E S */

.class-details-container {
  display: flex;
  gap: 30px;
  width: 85%;
  margin: auto;
  padding: 20px;
  background-color: rgba(250, 250, 250, 0.9);
  border-radius: 15px;
  justify-content: space-between;
}

.class-info {
  flex: 1;
  text-align: center;
}

.instructor-info {
  flex: 1;
  text-align: center;
}

.image-group img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.site-heading {
  font-weight: bold;
  font-size: 1.2rem;
}

/* F A Q */

.accordion {
  font-size: 1.25em;
  --bs-accordion-border-color: rgba(117, 61, 162, 0.9) !important;
}

.accordion-body {
  padding: 15px;
  font-size: 1rem;
  line-height: 1.5;
}

.accordion-item {
  margin-bottom: 7.5px;
}

.accordion-header {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.accordion-button {
  outline: none;
  font-family: 'Hind Madurai', serif;
  font-size: 0.75em !important;
  background-color: rgba(117, 61, 162, 0.9) !important;
  color: #fafafa !important;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.45rem rgba(117, 61, 162, 0.45);
}

.accordion-button::after {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.accordion-collapse {
  transition: height 0.3s ease-in-out;
}

.faq-background {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("https://res.cloudinary.com/dvzs9gve0/image/upload/v1745062394/faq-background_uxozvd.webp") no-repeat fixed center;
  background-size: cover;
  background-attachment: fixed;
}


/* C O N T A C T */

.contact-form {
  width: 85%;
  padding: 20px;
  background: rgba(250, 250, 250, 0.9);
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.contact-textarea {
  height: 100px;
}

.contact-background {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("https://res.cloudinary.com/dvzs9gve0/image/upload/v1745062393/contact-background_ij9kn3.webp") no-repeat fixed center;
  background-size: cover;
}

/* R E G I S T E R */

.pass-text {
  font-size: small;
}

/* A C C O U N T */

/* Enrolment item grid */

.enrolments {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 10px;
  padding: 20px;
  margin: 0 auto;
  max-width: 900px;
  grid-auto-flow: dense;
}

.enrolments>* {
  margin: auto;
}

.enrolment-item {
  background-color: rgba(255, 197, 0, 0.8);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 250px;
  width: 100%;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-self: center;
  place-self: center;
}

.enrolment-item:nth-child(3n+1):last-of-type {
  grid-column: 2 / span 1;
}

.site-heading {
  font-weight: bold;
  font-size: 1.2rem;
}

.account-background {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("https://res.cloudinary.com/dvzs9gve0/image/upload/v1745062391/account-background_ejihpe.webp") no-repeat fixed center;
  background-size: cover;
}

/* 4 0 4  A N D  5 0 0  E R R O R */

.error-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("https://res.cloudinary.com/dvzs9gve0/image/upload/v1745062389/404-background_ssii2q.webp") no-repeat fixed center;
  background-size: cover;
}

.server-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("https://res.cloudinary.com/dvzs9gve0/image/upload/v1745062390/500-background_agemgi.webp") no-repeat fixed center;
  background-size: cover;
}

.error-title {
  font-size: 2rem;
  font-weight: bold;
}

.error-message {
  font-size: 1.2rem;
  margin-bottom: 15px;
}