/* Project variables */
:root {
  /* Add color pallet here */

  --ff-primary: 'Roboto', sans-serif;
  --ff-body: var(--ff-primary);
  --ff-heading: var(--ff-primary);

  --fw-regular: 400;
  --fw-semi-bold: 500;
  --fw-bold: 700;

  --fs-400: 1rem;
  --fs-500: 1.5rem;
  --fs-600: 1.75rem;
  --fs-700: 2rem;
  --fs-800: 2.5rem;

  --fs-body: var(--fs-400);

  --heading-color: #9DD;
  --accent-color: #A44;
  --accent-2-color: #5E5E5E;
  --background-color: #F0EEEE;
  --alert-success: #8ABF63;
}







/* Utility classes */
.center {
  text-align: center;
}





/* CSS Reset: https://piccalil.li/blog/a-modern-css-reset/ */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}



/* Navigation styling */

.mobile-nav-toggle:hover {
  cursor: pointer;
  background-color: transparent;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2rem;
}

.primary-navigation {
  display: flex;
  gap: 2rem;
  list-style: none;
  --gap: 2rem;
  position: fixed;
  z-index: 1000;
  inset: 0 0 0 30%;

  flex-direction: column;
  padding: min(20vh, 5rem) 2rem;
  background: hsl(0 0% 0% / .4);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);

  transform: translateX(100%);
  transition: transform 350ms ease-out;
}

.primary-navigation a {
  font-family: 'Josifin Sans', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  color: #FFF;
}

.primary-navigation[data-visible="true"] {
  transform: translateX(0%);
}

.active {
  font-weight: bolder;
}





html {
  font-family: var(--ff-primary);
  background-color: var(--background-color);
}

header {
  background-color: var(--heading-color);
  padding: 1.5rem 2rem 1rem;
  border-bottom: 10px solid var(--accent-2-color);
}

h1 {
  font-family: 'Josefin Sans', sans-serif;
  text-align: center;
  font-size: var(--fs-600);
}

h2 {
  color: #A44;
  font-family: 'Josefin Sans', sans-serif;
  text-align: center;
  font-size: var(--fs-700);
  font-weight: var(--fw-bold);
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

h3 {
  font-size: var(--fs-500);
  text-transform: uppercase;
  margin: 2rem 0 1rem;
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}

.fa-button {
  color: #FFF;
  margin: 0;
  border: none;
}

.fa-button:hover {
  color: #CCC;
  background-color: transparent;
}

.black {
  color: #000;
}

.email-link {
  color: var(--accent-color);
  text-decoration: underline;
}

.float-right {
  float: right;
}

/* Modal styling */

.message {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 4rem;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s linear 1s, opacity 1s 0s, transform 1s;
}

.message-content {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FFF;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.show-message {
  opacity: 1;
  visibility: visible;
  transition: visibility 0s linear 0s, opacity 1s 0s, transform 1s;
}

.success {
  color: #2E4021;
  background-color: var(--alert-success);
  border: 1px solid #5C8042;
  border-radius: 0.5rem;
}

.error {
  color: #262310;
  background-color: #F2DB66;
  border: 1px solid #595125;
  border-radius: 0.5rem;
}

nav ul {
  display: flex;
}

li {
  list-style: none;
}

a {
  color: #333;
  text-decoration: none;
}

.bulleted {
  margin-left: 1rem;
}

.bulleted li {
  list-style-type: disc;
}

.content {
  margin: 1rem;
}

.site-heading-a,
.site-heading-b {
  color: #A44;
  text-align: left;
  text-shadow: 1px 1px 3px #888;
}

.site-heading-a {
  font-size: 3vw;
  font-weight: 400;
  letter-spacing: 1.25rem;
  margin: 0.5rem 0;
}

.site-heading-b {
  font-size: 6vw;
  font-weight: 700;
}

.ampersand {
  font-size: 4vw;
}

.container {
  display: grid;
  justify-content: center;
}



/* Homepage styling */
.index {
  color: #FFF;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-attachment: fixed;
  min-height: 100%;
}

.index h2 {
  color: #FFF;
}

.page-content {
  padding: 1rem 2rem;
}

.index .page-content h2 {
  text-shadow: 0px 0px 10px #333;
}

.index .page-content p {
  font-size: 1.2rem;
}

.buttons {
  display: flex;
  justify-content: space-around;
  text-shadow: 0px 0px 10px #333;
}

.buttons button:hover {
  background-color: transparent;
}

.btn {
  font-size: 1.125rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 2px solid #FFF;
  border-radius: 5px;
  color: #fff;
  padding: 5px;
  margin-top: 2rem;
}

.map-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.map-container iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 450px;
  border: 0;
}

.month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem;
}

.date {
  text-align: center;
}

.date h3 {
  margin: 0;
}

.prev,
.next {
  padding: 1rem;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.days > p {
  text-align: center;
}

.days > div,
.days > a {
  text-align: center;
  height: 3rem;
  box-shadow: 0 -1px 0 #CCC;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 0.5rem;
}

.events {
  color: #777;
}



.prev-date,
.next-date {
  color: rgba(0, 0, 0, 0.25);
}

.today {
  color: #FFF;
  background-color: var(--accent-color);
  border-radius: 50%;
  height: 1.5rem;
  width: 1.5rem;
  margin: 0 auto;
}


/* About page styling */
.page-highlight {
  text-align: center;
  background-color: var(--heading-color);
  margin: 2rem 0 1rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
}

.page-highlight a {
  color: var(--accent-color);
  font-weight: bolder;
}

.page-highlight a:hover {
  color: #000;
}

.board-member {
  background-color: #FFF;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.board-member h4 {
  font-size: 1.25rem;
}

/* Event styling */

.events-section {
  margin: 0 1rem;
}

.event {
  background-color: #FFF;
  border-radius: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem;
}

.event-title {
  font-weight: bolder;
  color: #444;
}

.featured-event-title {
  display: flex;
  align-items: baseline;
}

.featured-event-title h3 {
  margin-right: 2rem;
}

.application-link {
  color: var(--accent-color);
  font-weight: bolder;
}


/* Club styling */
.club {
  background-color: #FFF;
  margin: 2rem auto;
  padding: 1rem;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 0.5rem;
}

.club-header {
  color: #FFF;
  text-shadow: 0px 0px 5px #333;
  padding: 1rem;
  margin: -1rem -1rem 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem 0.5rem 0 0;
}

.club-header h2 {
  color: #FFF;
  text-shadow: 0px 0px 5px #333;
  margin-bottom: 0;
}

.club-info {
  text-overflow: clip;
}

.club-name {
  text-align: center;
  font-size: var(--fs-500);
}

.club-region {
  text-align: center;
}

.club-leader {
  margin-top: 1rem;
}

.leader-name {
  margin-top: 0.5rem;
}

.club-contact-info {
  margin: 1rem 0;
}

.club-description li {
  list-style: disc;
  margin-left: 1rem;
}

.club-description a {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.club-list a {
  display: inline-block;
}

.club-list a:not(:last-child):after {
  content: " | ";
}

/* Post styling */
.post-img {
  background-color: #FFF;
  margin: 0 auto;
}

.newsletter,
.minutes {
  display: flex;
  align-items: center;
}

.newsletter p,
.minutes p {
  margin-right: 1rem;
}

#view-more-newsletters,
#view-more-minutes {
  margin-top: 1rem;
}

#view-more-newsletters:hover,
#view-more-minutes:hover {
  cursor: pointer;
}

.cover-newsletter img {
  max-height: 50vh;
}

/* Form styling */

fieldset {
  border: none;
}

input[type="radio"] {
  display: inline;
  width: auto;
  margin-right: 0.5rem;
}

.myradio {
  margin: 1rem 0;
}

button {
  color: #333;
  background-color: transparent;
  margin: 1rem 0.125rem 0.125rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #333;
}

button:hover {
  background-color: #FFF;
  cursor: pointer;
}

#id_event_repeats,
#id_priority_event {
  display: inline;
  width: auto;
  margin-left: 1rem;
}

.event-repeats,
.priority-event {
  margin-top: 0.75rem;
}

.event-repeats p,
.priority-event p {
  display: inline;
}

input {
  width: 100%;
  margin-bottom: 1rem;
}

input[type="search"] {
  appearance: textfield;
  padding-left: 0.5rem;
}


/* Admin page styling */
.change-password {
  display: block;
  margin-top: 2rem;
}

/* Modal styling */

.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: visibility 0s linear 1s, opacity 1s 0s, transform 1s;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FFF;
  padding: 1rem 1.5rem;
  width: 32rem;
  max-width: 80%;
  border-radius: 0.5rem;
}

.close-button {
  color: #FFF;
  float: right;
  width: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 0.25rem;
  background-color: #777;
}

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

.show-modal {
  opacity: 1;
  visibility: visible;
  transform: scale(1.0);
  transition: visibility 0s linear 0s, opacity 1s 0s, transform 1s;
}

.application-info p {
  margin-bottom: 1rem;
}

.application-info p:last-child {
  margin-bottom: 2rem;
}

.payment-info {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.event-application-form textarea {
  height: 10rem;
  width: 100%;
}

.event-application-form button {
  display: block;
}

.event-application-form .form-field {
  margin-bottom: 1rem;
}

.terms-checkbox {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
}

.terms-checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 1rem; /* Optional: Add some spacing between the checkbox and label */
  margin-bottom: 0;
}

button#submit-button:disabled {
  color: #aaa;
  border-color: #aaa;
  background-color: #eee;
}

button#submit-button:disabled:hover {
  cursor: not-allowed;
}

.terms-conditions p {
  margin-bottom: 0.75rem;
}

.sgac-use {
  background-color: #E0DDDD;
  margin: 2rem 0;
  padding: 0.5rem 1rem;
}

.sgac-use h3 {
  margin-top: 1rem;
}

.event-application {
  display: flex;
  align-items: center;
}

.event-application h3 {
  margin: 1rem 2rem 0 0;
}

.event-application-form span {
  color: var(--accent-color);
}

.delete-application {
  margin-left: 2rem;
}

.blurb {
  background-color: rgba(255, 255, 255, 0.25);
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border: 2px solid #FFF;
  border-radius: 0.5rem;
}

.blurb a {
  color: #FFF;
}

/* Media query for larger screens */
@media only screen and (min-width: 768px) {
  .page-content {
    max-width: 800px;
    margin: 0 auto;
  }

/* Header */

  .heading {
    display: flex;
    justify-content: center;
  }

  .site-heading-a {
    font-size: 1.5rem;
    margin: inherit;
  }

  .site-heading-b {
    font-size: 3rem;
  }

  .ampersand {
    font-size: 2rem;
  }

/* Navbar */

  .mobile-nav-toggle {
    visibility: hidden;
  }

  .navigation {
    margin: 0 auto;
  }

  .primary-navigation {
    flex-direction: row;
    inset: 0 0 0 0;
    position: inherit;
    background-color: inherit;
    padding: inherit;
    transform: none;
    transition: none;
  }

  .primary-navigation a {
    color: var(--accent-color);
    letter-spacing: .4rem;
  }

  .active a {
    color: #FFF;
  }

  .primary-navigation a:hover {
    color: #FFF;
  }

/* Index page styling */
.btn {
  transition: transform 0.2s, background-color 0.2s;

}

.btn:hover {
  transform: scale(1.1);
  background-color: rgba(0, 100, 100, 0.5);
}

/* Desktop Calendar Styling */
  .month {
    width: 80%;
    margin: 1rem auto;
  }

  .days {
    font-size: 0.75rem;
    width: 100%;
    margin: 0 auto;
    outline: 1px solid #777;
  }

  .day-of-week { /* Styling for days of the week */
    color: var(--accent-2-color);
    font-size: 1rem;
    font-weight: bolder;
    margin: 0.5rem 0;
  }

  .days > div,
  .days > a {
    text-align: right;
    height: 6rem;
    box-shadow: none;
    outline: 1px solid #AAA;
    margin-top: 0;
    padding: 0 0.25rem;
  }

  .days > a {
    overflow-y: scroll;
  }

  .today {
    height: 1.125rem;
    width: 1.125rem;
    text-align: center;
    margin: 0 0 0 auto;
  }

  .events-page {
    width: 100%;
  }

  .events {
    color: #333;
    font-size: 0.75rem;
    text-align: left;
    margin-top: 0.25rem;
  }

  .events p {
    line-height: 1;
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
  }

  .events p span {
    color: #FFF;
  }

  .calendar-event {
    display: flex;
  }

  .event-start-time {
    font-size: 0.6rem;
    color: #FFF;
    min-width: max-content;
    padding: 0.125rem;
    padding-left: 0.25rem;
    border-radius: 1rem 0 0 1rem;
  }

  .event-summary {
    width: 100%;
    padding: 0.125rem;
    padding-right: 0.25rem;
    background-color: #DDD;
    border-radius: 0 1rem 1rem 0;
    text-overflow: ellipsis;
  }

  .priority {
    font-size: 1rem;
  }

  .featured-event-img {
    width: 400px;
    margin: 0 auto;
  }

  /* News Page Styling */

  .newsletters,
  .meeting-minutes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1rem;
  }

  .news-img {
    max-height: 300px;
  }

  .search input[type="search"] {
    width: 50%;
  }

  .club-content {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-column-gap: 1rem;
  }

  .club-description {
    margin: 1rem;
  }

  /* About page desktop styling */
  .board-members {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 2rem;
  }

  /* Form styling */
  .form-two-col {
    display: grid;
    grid-template-columns: minmax(100px, 400px) minmax(100px, 400px);
    grid-column-gap: 1rem;
  }

  .full-span {
    grid-column: 1/3;
  }

  .left-col {
    grid-column: 1/2;
  }

  .right-col {
    grid-column: 2/3;
  }

  .description {
    grid-column: 1/3;
    margin-top: 1rem;
  }

  .description textarea {
    resize: none;
    width: 100%;
  }
}
