/*For Body*/ 
/* Set full-page background color to ice */
/* set the modbile phone rendering */

body {
  background-color: #e0f7fa; /* Ice blue */
  height: 100vh;
  width: 100%;
}

/*For Main*/
/* Main section with background image */
/*
#main {
  background-image: url('images/background_ice.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 30px;
  overflow: hidden;
} */
#main {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;

  background: linear-gradient(-45deg,
    #e0f7fa,  /* ice blue */
    #b2ebf2,  /* glacier cyan */
    #90caf9,  /* sky frost */
    #1e3a5f   /* arctic deep blue */
  );
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  color: #fff;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* Style for the square image */
.square-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  background-color: white;
  border: 2px solid black;
  border-radius: 12px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
}

.text-block {
  flex: 1;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center; /* This centers h2, p, and span */
}

.text-block h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #020202;
  font-weight: 700;
}

.text-block p {
  font-size: 1.3rem;
  color: #020202;
  line-height: 1.6;
}

.author {
  display: block;
  margin-top: 10px;
  font-style: italic;
  color: #020202;
  font-size: 1.1rem;
}


/*For Core*/
/* General section styling */
section {
  display: flex;
  align-items: flex-start;
  padding: 20px;
}

/* Container for sidebar and content */
.container {
  display: flex;
  height: 600px;
  width: 100%;
  border: 3px solid black;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Sidebar styles */
.sidebar {
  width: 250px;
  background-color: #222;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  border-right: 2px solid #444;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  overflow-y: auto;
}

/* Menu items */
.menu-item {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 5px;
  margin: 4px 0;
  user-select: none;
}

.menu-item:hover {
  background-color: #444;
}

/* Subfolders are hidden by default */
.subfolder {
  display: none;
  margin-left: 20px;
}

.return-button {
  margin-top: 20px;
  background-color: #444;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
}

.return-button:hover {
  background-color: #666;
}

/* Content area */
.content {
  flex: 1;
  padding: 30px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow-y: auto;
  box-sizing: border-box;
  background-color: #e0f7fa;
}

.content p {
  margin-bottom: 1em;  /* Or more if needed */
  line-height: 1.6;    /* Improves readability */
}

/*For Footer*/
/* footer settings   */
.footer {
  text-align: center;
  padding: 10px;
  background-color: #e0f7fa; /* Optional: same as body or a contrasting color */
}

.footer p {
  margin: 5px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.6;
}

/* EXTERNAL CV - Content*/

.section {
  margin-bottom: 30px;
}

.job-title {
  font-weight: bold;
}

.company {
  font-style: italic;
  font-weight: bold;
  color: #003366;
}

.date {
  float: right;
  font-weight: bold;
}

.entry {
  margin-bottom: 20px;
  clear: both;
}

.bullet {
  margin-left: 20px;
  list-style-type: disc;
}

.edu-thesis {
  font-size: 0.95em;
  color: #444;
  margin-top: 5px;
}



/*Project*/
#project-content {
  font-family: Arial, sans-serif;
  margin-top: 30px;
}

.project-entry {
  margin-bottom: 18px;
  line-height: 1.5;
}

.tag {
  color: #d00;
  font-weight: bold;
}

.project-link {
  color: red;
  text-decoration: none;
  margin-left: 5px;
}

.project-link:hover {
  text-decoration: underline;
}

.skills {
  color: #003366;
  font-weight: bold;
}


/* For Mobile Phone*/
@media (max-width: 768px) {

  body {
    height: auto;
    overflow-x: hidden;
  }

  #main {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .square-image {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }

  .text-block h2 {
    font-size: 1.5rem;
  }

  .text-block p {
    font-size: 1rem;
  }

  .container {
    flex-direction: column;
    height: auto;
    border-radius: 0;
    border: none;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-radius: 0;
    padding: 10px;
  }

  .menu-item {
    padding: 10px;
    font-size: 1rem;
  }

  .subfolder {
    margin-left: 10px;
  }

  .content {
    padding: 20px;
    border-radius: 0;
  }

  footer.footer {
    font-size: 12px;
    padding: 10px 5px;
  }

  .footer p {
    line-height: 1.4;
  }
}

