@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0 2vw 1rem 2vw;
  font-family: "Manrope";
  background-color: #f3f2b3;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas: "header" "main" "footer";
}

header {
  position: sticky;
  top: 0;
  grid-area: header;
}

main{
  grid-area: main;
}

footer{
  grid-area: footer;
}

footer {
  background-color: #6e5fa2;
  color: #fff;
  font-size: 1.5rem;
  font-family: "Lexend";
  border-radius: 50px;
  text-align: center;
}
footer p{
  margin: 0;
  padding: .8rem;
}

.header nav {
  width: 100%;
  background-color: #6e5fa2;
  border-radius: 30px;
  letter-spacing: 0.1rem;
  display: flex;
  align-items: center;
}
.header nav .header__logo {
  grid-area: logo;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: white;
}
.header nav .header__logo__img {
  width: 25%;
  margin-right: 1rem;
}
.header nav .header__logo__title {
  font-weight: bold;
}
.header nav .header__logo__title p {
  margin: 0;
  font-size: large;
}
.header nav .header__logo__title p:nth-of-type(2) {
  padding-top: 0.5rem;
  font-style: italic;
}
.header nav .header__nav__it {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.header nav .header__nav__it:hover, .header nav .header__nav__it.active {
  color: #f3f2b3;
}

.lastMessage {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "message""video";
  margin: 2rem 5vw;
  gap: 4rem;
}
.lastMessage__text {
  grid-area: message;
  display: flex;
  flex-direction: column;
}
.lastMessage__text__title {
  font-size: 2rem;
  font-weight: bold;
  font-family: "Lexend";
  margin: 0;
}
.lastMessage__text__p {
  font-size: 1.5rem;
  font-family: "Manrope";
  margin: 1rem;
  font-weight: bold;
  display: none;
}
.lastMessage__text ul li {
  font-size: 1.5rem;
  font-family: "Manrope";
  margin: 0.5rem 0;
  font-weight: bold;
}
.lastMessage__video {
  grid-area: video;
}
.lastMessage__video iframe {
  width: 100%;
  border-radius: 20px;
}

.upcoming {
  margin: 2rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.upcoming video {
  width: 85%;
  border-radius: 20px;
}
h2 {
  font-size: 2rem;
  font-weight: bold;
  font-family: "Lexend";
  text-align: center;
}

.upcoming ul{
  width: 100%;
  text-align: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.upcoming ul li{
  font-size: 1.7rem;
  font-weight: bold;
}
.upcoming p{
  font-size: 1.5rem;
}
.upcoming p a{
  text-decoration: none;
  font-weight: bolder;
  color: red;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.events {
  display: flex;
  justify-content: space-between;
  overflow: scroll;
  gap: 1rem;
}
.activities table {
  width: 90%;
  margin: 1rem 5vw;
  border-radius: 20px;
  border-collapse: collapse;
  overflow: scroll;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.activities table th:nth-of-type(1) {
  border-radius: 20px 0 0 0;
}
.activities table th:nth-last-of-type(1) {
  border-radius: 0 20px 0 0;
}

tr.address td:nth-of-type(1) {
  border-radius: 0 0 0 10px;
}

tr.address td:nth-last-of-type(1) {
  border-radius: 0 0 10px 0;
}
.activities table th {
  background-color: rgba(255, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-family: "Lexend";
  font-size: 1.2rem;
  padding: 1rem;
}
.activities table td {
  font-family: "Manrope";
  background-color: #6e5fa2;
  font-size: 1.5rem;
  font-weight: bolder;
  padding: 1rem;
  text-align: center;
  color: #fff;
}
.activities table td a {
  color: #fff;
  text-decoration: none;
}
.activities table tr:nth-of-type(1),
.activities table tr:nth-of-type(2),
.activities table tr:nth-of-type(3) {
  border-bottom: 1px solid #dddddd;
}
.activities table td:hover {
  background-color: rgba(255, 0, 0, 0.6);
}
.activities table tbody tr:nth-child(4) td:nth-child(1) {
  border-radius: 0 0 0 10px;
}
.activities table tbody tr:nth-child(4) td:nth-child(2) {
  border-radius: 0 0 10px 0;
}
.center-text{
  text-align: center;
}


#toTop {
  text-decoration: none;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  background-color: #6e5fa2;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  padding: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}
#toTop.show {
  opacity: 1;
  visibility: visible;
}

#toTop:hover {
  background-color: rgba(255, 0, 0, 0.6);
}
.navbar-collapse {
  flex-grow: 0; /* Prevents the collapse taking the full width */
  justify-content: flex-end; /* Aligns items to the right */
  text-align: right; /* Aligns text to the right */
}
.navbar-collapse ul{
  gap: 2rem;
}
.navbar-toggler{
  background-color: #f3f2b3;
}

@media (max-width: 420px) {
  .navbar-collapse ul{
    gap: .5rem;
  }
  .header nav .header__logo {
    max-height: -moz-max-content;
    max-height: max-content;
  }
  .header nav .header__logo__img {
    max-width: 25%;
    max-height: 50px;
    margin: 0;
  }
  .header nav .header__logo__title p {
    font-size: smaller;
  }
  .lastMessage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 5vw;
  }
  .lastMessage__text__title {
    text-align: center;
  }
  .lastMessage__text__p {
    text-align: center;
    font-size: 0.8rem;
    margin: 0.5rem 0;
  }
  .lastMessage__text ul {
    margin: 0;
  }
  .lastMessage__text ul li {
    font-size: 0.8rem;
  }
  .lastMessage__video iframe {
    width: 100%;
    height: 100%;
  }
  h2 {
    text-align: center;
    font-size: 2rem;
  }
  .upcoming .events {
    flex-direction: column;
  }
  .upcoming .events__img {
    border-radius: 10px 10px 0 0;
  }
  .upcoming ul li{
    font-size: 1.2rem;
  }
  .activities section {
    max-width: 100%;
    overflow: scroll;
  }
  .activities section table {
    margin: 0 auto 2rem auto;
  }
  .activities section table th {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  .activities section table td {
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  footer {
    font-size: 0.7rem;
  }
  #toTop {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
@media (min-width: 421px) and (max-width: 767px) {
  .header nav section {
    max-width: 85%;
  }
  .header nav section label {
    margin: 0;
    padding: 0 1rem;
  }
  .header nav .header__logo {
    max-height: -moz-max-content;
    max-height: max-content;
  }
  .header nav .header__logo__img {
    max-width: 25%;
    max-height: 50px;
  }
  .header nav .header__logo__title {
    font-size: 0.8rem;
  }
  .header nav .header__logo__title p:nth-of-type(2) {
    font-size: 0.7rem;
  }
  .lastMessage {
    display: flex;
    flex-direction: column;
    margin: 2rem 5vw;
  }
  .lastMessage__text__title {
    text-align: center;
    font-size: 1.5rem;
  }
  .lastMessage__text__p {
    text-align: center;
    font-size: 1rem;
    margin: 0.5rem 0;
  }
  .lastMessage__text ul {
    margin: 0;
  }
  .lastMessage__text ul li {
    font-size: 1rem;
  }
  .lastMessage__video iframe {
    width: 100%;
    min-height: 250px;
  }
  h2 {
    text-align: center;
    font-size: 1.5rem;
  }
  .upcoming .events__img {
    width: 70%;
    border-radius: 10px 10px 0 0;
  }
  .activities section {
    max-width: 100%;
    overflow: scroll;
  }
  .activities section table {
    margin: 0 auto 2rem auto;
  }
  .activities section table th {
    font-size: 1.3rem;
    padding: 0.5rem;
  }
  .activities section table td {
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  footer {
    font-size: 0.7rem;
  }
  #toTop {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
@media (min-width: 768px) and (max-width: 1200px) {
  .header nav label {
    display: none;
  }
  .header nav section {
    max-width: 85%;
  }
  .header nav section label {
    margin: 0;
    padding: 0 1rem;
  }
  .header nav .header__logo {
    max-height: -moz-max-content;
    max-height: max-content;
  }
  .header nav .header__logo__img {
    max-width: 25%;
    max-height: 50px;
  }
  .header nav .header__logo__title {
    font-size: 0.8rem;
  }
  .header nav .header__logo__title p:nth-of-type(2) {
    font-size: 0.7rem;
  }
  .lastMessage {
    display: flex;
    flex-direction: column;
    margin: 2rem 5vw;
  }
  .lastMessage__text__title {
    text-align: center;
    font-size: 1.5rem;
  }
  .lastMessage__text__p {
    text-align: center;
    font-size: 1rem;
    margin: 0.5rem 0;
  }
  .lastMessage__text ul {
    margin: 0;
  }
  .lastMessage__text ul li {
    font-size: 1rem;
  }
  .lastMessage__video iframe {
    width: 100%;
    min-height: 300px;
  }
  h2 {
    text-align: center;
    font-size: 1.5rem;
  }
  .upcoming .events__img {
    width: 50%;
    border-radius: 10px 10px 0 0;
  }
  .upcoming .activities section {
    max-width: 100%;
    overflow: scroll;
  }
  .upcoming .activities section table {
    margin: 0 auto;
  }
  .upcoming .activities section table th {
    font-size: 1.3rem;
    padding: 0.5rem;
  }
  .upcoming .activities section table td {
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  .upcoming footer {
    font-size: 0.7rem;
  }
  #toTop {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
@media screen and (min-width: 1201px) {
  iframe {
    width: 100%;
    height: 400px;
  }
  .upcoming .events {
    justify-content: space-evenly;
  }
  .upcoming .events__img {
    width: 30%;
    border-radius: 10px 10px 0 0;
  }
}
