*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: rgb(64,40,32);
  --white: #ffffff;
  --bg: rgb(249,249,249);
}

html {
  scroll-behavior: smooth;
}

@media (min-width: 1440px) {
  html {
    zoom: 1.5;
  }
}

@media (min-width: 2560px) {
  html {
    zoom: 1.7;
  }
}

@media (min-width: 3860px) {
  html {
    zoom: 2.5;
  }
}

body {
  background: var(--bg);
  font-family: 'Cormorant Infant','Cactus Classical Serif';
}
.main {
  margin-right: auto; 
  font-size: 60px;
}
.table {
  position:fixed;
  top:0px;
  height:100px;
  width: 100%;
  background-color: rgb(249,249,249);
  display: flex;
  align-items:center;
  padding: 20px 50px;
  z-index: 2000;
  box-sizing: border-box;
  border-bottom: 2px solid #333348;
}
.table img{
  height: 130px;
  width: auto;
  margin-top: 30px;
  margin-bottom: 20px;
  object-fit: cover;
  z-index: 1000;
}

/* 右側群組 */
.nav-items {
    display: flex; 
}

.nav-items .intro,
.nav-items .activity,
.nav-items .member,
.nav-items .lesson {
    justify-content: flex-end;
    font-size:18px;
}
.table a{
    color: rgb(66, 45, 38);
    text-decoration:none;
    
    padding:10px 30px;
    transition: background-color 0.2s;
}

.table a:hover {
  transform: scale(1.3);
}
.courseofzsisc img{
  width: 100%;
  height: auto;
  object-fit: cover;
}
.courseofzsisc{
  margin-top: 100px;
  position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.courseofzsisc p{
  position: absolute;
  font-size: 70px;
  padding: 10px;
  align-items: center;
  justify-items: center;
  text-align: center;
  color: var(--primary);
}

.class img{
  width: 30%;
  height: auto;
  display: flex;
  margin:30px 30px 30px 30px;
  border-radius: 10%;
}
.title{
  display: flex;
  color: var(--primary);
  font-size: 40px;
  position: relative;
  left:50px;
  top:30px;
}
.club_class_content{
  color: var(--primary);
  font-size: 20px;
  position: relative;
  top:100px;
  left:-30px;
  font-family: Arial, Helvetica, sans-serif;
}
.class{
  display: flex;
}
.club_class{
  margin-top:130px;
  background-color: #fef5e9;
}
.club_sem{
  background-color: var(--bg);
}
.izcc_class{
  background-color: #fef5e9;
}
.sem{
  display: flex;
}
.izcc_after{
  display: flex;
}
.after_class{
  display: flex;
  background-color: #fef5e9;
}
.fssem{
  width: 15%;
  height: 250px;
  display: flex;
  position: relative;
  margin:10px 30px 30px 50px;
  flex-direction: column;
  text-align: center;
  align-content: center;
  justify-content: center;
  text-decoration: none;
  gap:20px;
  left:50px;
}
.fssem p{
  left:390px;
  top:0px;
}
.fssem button {
  background-color: #f8f9fa;
  border: 2px solid rgb(64, 40, 32);
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-size: 20px;
  color: rgb(64, 40, 32);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.fssem button:hover {
  background-color: #fef5e9;
  color: rgb(64, 40, 32);
  transform: scale(1.1);
}
.fssem button:active {
  transform: scale(0.95);
}

.after button {
  background-color: #f8f9fa;
  border: 2px solid rgb(64, 40, 32);
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-size: 20px;
  color: rgb(64, 40, 32);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.after button:hover {
  background-color: #fef5e9;
  color: rgb(64, 40, 32);
  transform: scale(1.1);
}
.after button:active {
  transform: scale(0.95);
}

.class_details p {
  color: rgb(64, 40, 32);
  margin: 10px 20px;
  padding: 0px 20px 10px 20px;
  text-align: left;
  border-bottom: 1px solid #d4d2d2;
  transition: transform 0.2s ease, color 0.2s ease; 
  font-family: Arial, Helvetica, sans-serif;
}

.animated-part {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  margin: 0 4px;
}

.animated-part:hover {
  transform: scale(1.2) translateY(-5px);
}
.animated-part:active {
  transform: scale(0.9) translateY(2px);
  transition: transform 0.5s ease;
}
.class_details {
  margin-top: 20px;
  margin-bottom: 100px;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  top: 80px;
  left: 300px;
  width: 40%;
  max-height: fit-content; 
  border-radius: 10px; 
  padding: 15px; 
}

.class_content{
  font-size: 20px;
  font-style: italic;
  color: #999;
  position: relative;
  top: 130px;
  left: 200px;
  margin: 0 20px; 
}

.guide {
  display: flex;
  align-items: center;
  justify-items: center;
  justify-self:center;
}

.guide a {
  position: relative;
  text-decoration: none;
  color: rgb(64,40,32);
  font-size: 20px;
  padding: 10px 15px;
  transition: all 0.3s;
}

.guide a:hover {
  background-color: #ddd;
  color: #000;
}

.guide a:not(:last-child)::after {
  content: "";
  position: absolute;
  top:50%;
  right: 0;
  transform: translateY(-50%); 
  height: 50%; 
  width: 1px;
  background-color: #333348;
}

.club_izcc{
  background-color: var(--bg);
}

.izcc_details{
  margin-top: 20px;
  margin-bottom: 100px;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  top: 80px;
  left: 300px;
  width: 40%;
  max-height: fit-content; 
  border-radius: 10px; 
  padding: 15px; 
}
.izcc_details p {
  color: rgb(64, 40, 32);
  margin: 10px;
  padding: 0px 20px 10px 20px;
  text-align: left;
  border-bottom: 1px solid #d4d2d2;
  transition: transform 0.2s ease, color 0.2s ease; 
  font-family: Arial, Helvetica, sans-serif;
}


.after{
  width: 15%;
  height: 250px;
  display: flex;
  position: relative;
  margin:50px 30px 30px 50px;
  flex-direction: column;
  text-align: center;
  align-content: center;
  justify-content: center;
  text-decoration: none;
  gap:20px;
  left:50px;
}
.after p{
  left:390px;
  top:-40px;
}
.izcc_content{
  font-size: 20px;
  font-style: italic;
  color: #999;
  position: relative;
  top: 130px;
  left: 200px;
  margin: 0 20px; 
}

.after_class .class .title{
  position: absolute;
  left:485px;
  top:30px;
}

.after_class .class{
  margin-bottom: 100px;
  display: flex;
  position: relative;
  max-height: fit-content;
}

.after_class .class i{
  display: flex;
  font-size: 100px;
  margin-left: 200px;
  margin-top: 150px;
  margin-bottom: 150px;
  align-items: center;
  justify-items: center;
}
.after_class .club_class_content{
  position: absolute;
  margin-left: 518px;
  margin-bottom: 100px;
  width: fit-content;
  align-items: center;
  justify-items: center;
  max-height: fit-content;
}

.contact {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: rgba(240, 240, 240, 0.9);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  z-index: 1000;
}

.contact a {
  color: rgb(66, 45, 38);
  text-decoration: none;
  font-size: 16px;
  padding: 5px 10px;
  transition: color 0.3s;
}

.contact a:hover {
  color: rgb(217, 175, 83);
}

.hidden {
  opacity: 0;
  transform: translateY(100px);
  will-change: transform, opacity;
}

.slide-in {
  animation: slideInUp 3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  80% {
    opacity: 1;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}