/* General Styles */
@import url('https://fonts.googleapis.com/css?family=Abel');

/* ============================== language toggle buttons ============================== */
:root {
    --border-size: 0.125rem;
    --duration: 250ms;
    --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
    --font-family: monospace;
    --color-primary: white;
    --color-secondary: #523f31;
    --color-tertiary: #796254;
    --shadow: rgba(0, 0, 0, 0.1);
    --space: 1rem;
}

* {
    box-sizing: border-box;
}

body {
    height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: calc(var(--space) * 2);
}

.multi-button {
    display: flex;
    width: 20%;
    box-shadow: var(--shadow) 2px 2px;
    place-items: center;
}

.multi-button button {
    flex-grow: 1;
    cursor: pointer;
    position: relative;
    padding:
    calc(var(--space) / 1.125)
    var(--space)
    var(--space);
    border: var(--border-size) solid #2d1e17;
    color: var(--color-secondary);
    background-color: var(--color-primary);
    font-size: 1.5rem;
    font-family: var(--font-family);
    text-transform: lowercase;
    text-shadow: var(--shadow) 2px 2px;
    transition: flex-grow var(--duration) var(--ease);
}

.multi-button button + button {
    border-left: var(--border-size) solid #2d1e17;
    margin-left: calc(var(--border-size) * -1);
}

.multi-button button:hover,
.multi-button button:focus {
    color: white;
    outline: none;
    text-shadow: none;
    background-color: var(--color-secondary);
}

.multi-button button:focus {
    outline: var(--border-size) dashed var(--color-primary);
    outline-offset: calc(var(--border-size) * -3);
}

.multi-button:hover button:focus:not(:hover) {
    flex-grow: 1;
    color: var(--color-secondary);
    background-color: var(--color-primary);
    outline-color: var(--color-tertiary);
}

.multi-button button:active {
    transform: translateY(var(--border-size));
}

/* ============================== main title 1 ============================== */
body {
    background: white;
    font-family: 'Abel';
    color: #2d1e17; 
}

.center {
    text-align: center;
}

.left {
    text-align: left;
}

.title {
    font-size: 30px;
    font-family: 'Overpass', cursive;
}

#lang-toggle {
    color: #7A8B99;
}

.lang {
    cursor: pointer;
}

#about-me {
    font-size: 25px;
    width: 50%;
    margin: 0 auto;
}

#pokeview {
    font-size: 25px;
    width: 50%;
    margin: 0 auto;
}

#emph {
    color: #e78b2d;
}

#emph2 {
    font-size: 50px;
}

#emph3 {
    color: #e78b2d;
    font-size: 30px;
}

#social {
    font-size: 20px;
}

/* Projects */
#projects-title {
    font-size: 30px;
    margin-top: 40px;
}

#pokeview-title {
    font-size: 50px;
    margin-top: 0px;
    font-weight: 600;
    text-align: left;
}

#projects-list {
    display: flex;
    width: 60%;
    margin: 0 auto;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* More Projects */
.project {
    background: black;
    color: white;
    padding: 8px;
    margin: 10px;
    border-radius: 3px;
    cursor: pointer;
    max-width: 215px;
}

.project:hover {
    transform: scale(1.05, 1.05);
}

.projects-list:nth-child(1) {
    background: #D84796;
}

.project-description {
    width: 200px;
}

/* icon colour */
i {
    color:#523f31;
}

/* Mobile */
@media screen and (max-device-width: 500px) {
    body {
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    #projects-list {
        width: 100%;
        margin: 0 auto auto 50px;
    }
    .project {
        background: black;
        color: white;
        padding: 8px;
        margin: 10px;
        border-radius: 3px;
        cursor: pointer;
        max-width: 30%;
    }
    .center-title {
        width: 100%;
        margin-top: 40px; /* Increase top margin for better spacing */
    }
    .img {
        src: "img/banner-12.png";
    }
    #about-me,
    #pokeview {
        width: 80%; /* Adjust width for better readability */
        font-size: 20px; /* Decrease font size for better readability */
    }
    .project-description {
        font-size: 30px;
        width: 100%; /* Adjust project description width */
    }
    #projects-title {
        font-size: 50px;
        margin-top: 40px;
        font-size: 40px; /* Increase font size for better readability */
    }
}

/* ============================== banner ============================== */
.banner-crop {
    width: 1384px; /* Desired width */
    height: 300px; /* Desired height */
    overflow: hidden; /* Hide overflow */
}

.banner-crop img {
    width: 100%; /* Make sure the image covers the container */
    height: 90%; /* Make sure the image covers the container */
    object-fit: cover; /* Crop the image to cover the container */
}

/* ============================== iPads (landscape and portrait) ============================== */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) {
    .center-title {
        margin-top: 40px; /* Increase top margin for better spacing */
    }

    #about-me,
    #pokeview {
        width: 80%; /* Adjust width for better readability */
        font-size: 20px; /* Decrease font size for better readability */
    }

    .project {
        max-width: 30%; /* Adjust project width for better spacing */
    }

    #projects-title {
        font-size: 40px; /* Increase font size for better readability */
    }

    .project-description {
        width: 100%; /* Adjust project description width */
    }
}

/* Hyperlinks */
a {
    color: #e78b2d; /* Default color for hyperlinks */
    transition: color 0.3s ease; /* Smooth transition for color change */
}

/* Visited hyperlinks */
a:visited {
    color: #e78b2d; /* Color for visited hyperlinks */
}

/* Hover state for hyperlinks */
a:hover {
    color: #ffac5c; /* Lighter color when hovered */
}

/* Active state for hyperlinks */
a:active {
    color: #ffac5c; /* Lighter color when clicked */
}

/* ============================== menu ============================== */

.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #523f31; /* Brown background */
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure menu is above other content */
}

.menu a {
    margin-right: 20px;
    color: white; /* White text */
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    color: #ffac5c; /* Lighter color when hovered */
}

.menu a.active {
    color: #ffac5c; /* Active link color */
}

/* Mobile menu */
.mobile-menu-icon {
  display: none; /* Hide by default */
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #523f31; /* Brown background */
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Ensure menu is above other content */
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  display: inline-block;
  margin-right: 20px;
}

.menu a {
  color: white; /* White text */
  text-decoration: none;
  font-weight: bold;
}

.menu a:hover {
  color: #ffac5c; /* Lighter color when hovered */
}

.menu a.active {
  color: #ffac5c; /* Active link color */
}

/* Mobile menu styles */
@media only screen and (max-width: 768px) {
  .menu ul {
      display: none; /* Hide the menu list */
  }

  .mobile-menu-icon {
      display: block; /* Show the hamburger icon */
      cursor: pointer;
  }

  .mobile-menu-icon span {
      display: block;
      width: 25px;
      height: 3px;
      background-color: white;
      margin-bottom: 5px;
  }
}

#experience {
  padding: 40px;
  background-color: #c4b6ab; /* Light brown background */
}

.experience-item {
  margin-bottom: 40px;
  background-color: #9d8a7c; /* Brownish background */
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.experience-item h3 {
  font-size: 24px;
  margin-bottom: 5px;
  color: #2d1e17; /* Dark brown text color */
}

.company {
  color: #523f31; /* Brown text color */
}

.date {
  color: #523f31; /* Brown text color */
  margin-bottom: 20px;
}

.responsibilities {
  list-style-type: none;
  padding: 0;
}

.responsibilities li {
  margin-bottom: 10px;
  color: #523f31; /* Brown text color */
}

.responsibilities li:before {
  content: '\2022'; /* Bullet character */
  color: #523f31; /* Brown text color */
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Section update */
.section {
  display: none;
  position: fixed;
  top: 50%; /* Center the overlay vertically */
  left: 50%; /* Center the overlay horizontally */
  transform: translate(-50%, -50%); /* Center the overlay */
  width: 80%; /* Adjust width as needed */
  max-width: 600px; /* Limit maximum width */
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
  overflow-y: auto;
  z-index: 1000; /* Ensure the section is on top of other content */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
}

.menu {
  background-color: #2d1e17; /* Dark brown background color for menu bar */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  z-index: 1001; /* Ensure the menu bar is above the overlay */
}
