
:root {
    --main-warm1: #DCC9A9; /*more colorful: choose*/
    --main-warm2: #C1AB85; 
    --main-warm-dark: #C94E44;
    --main-cold1: #4E6851; /*more colorful: choose*/
    --main-cold2: #3E6868;
}

body, html {
  margin: 0; 
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background: #000 url('https://gallery.leeating.com/smallmainBG-2.jpg') no-repeat center center;
  background-size: cover;
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
    
  overflow: hidden;
}

.container {
  height: 100dvh;
  /* new Safari/Chrome：priority to use 100svh/100dvh，then back to 100vh */
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;

  /* for iphone settings*/
  padding: 34px;
  overflow: hidden;
    
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /*padding: 34px; /* 2rem = 32px */
  box-sizing: border-box;

  background: transparent;
}

/* forbidden iOS fixed background */
@supports (-webkit-touch-callout: none) {
  .container { background-attachment: scroll; }
}

/* move up some content, but keep updates and copyright, background at the same place */
.container-wrapper {
  transform: translateY(-10px); 
}
/* Yiting Li */
header h1 {
    font-family: 'Montserrat', sans-serif; /* Keep Montserrat */
    font-size: 68px; /* 3rem = 48px */
    font-weight: 750;
    margin: 15px 0 12px 0; /* 上 12px，下 20px，左右 0px */
    color: var(--main-warm1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); 
}
/* Atmopsheric scientist. modeler. photographer. cat lover */
header p {
    font-family: 'Montserrat', sans-serif; /* Keep Montserrat */
    color: var(--main-warm1);
    font-size: 28px; /* 1.2rem = 19.2px */
    font-weight: 320;
    margin: 6px auto 15px auto; /* 上 6px，下 10px，左右 0px */
}
/* hand writing introduction sentences */
.intro p {
  font-family: "Waiting for the Sunrise", cursive; 
  font-size: 20px; /* 1rem = 16px */
  font-weight: 250;
  /*max-width: 1500px;*/
  margin: 2px auto 0px auto; /* 上 10px，下 20px，左右 auto */
  
}

/* two button nagivate to modeler and photographer pages */
.buttons {
    padding: 2px;
    margin-top: 60px;
    margin-bottom: 85px;
    display: flex;
    justify-content: center;
    gap: 140px;
    flex-wrap: wrap; /* small screen, wrap */
}
.buttons a {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  /*font-family: "Bitcount Prop Single", system-ui;  */
  display: inline-block;
  /*margin: 50px 65px; /* 1rem = 16px  */
  padding: 2px 20px 4px 20px; /* up left bottom right */
  border-radius: 25px;
  text-decoration: none;
  font-size: 32px;
  font-weight: 600;
  background-color: var(--main-cold1); 
  color: var(--main-warm1);
  border: 1.5px solid var(--main-cold1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent; 
}

.buttons a:hover,
.buttons a:focus {
  background-color: var(--main-warm1);
  color: var(--main-cold1);
  border: 1.5px solid var(--main-warm1);
  transform: scale(1.05);
}

.buttons a:active {
  background-color: var(--main-warm1);
  color: var(--main-cold1);
  border: 1.5px solid var(--main-warm1);
  transform: scale(0.95); 
  -webkit-tap-highlight-color: transparent;
}
/* setup button lock */
button i {
    color: inherit; 
}

/* button lock style */
.main-button.locked {
    opacity: 0.6;        
    cursor: not-allowed; 
}

.main-button.locked i.fa-lock {
    margin-left: 5px;    
}

/* updates sections : related to updates.json */
.updates {
  font-family: 'Montserrat', sans-serif; /* Keep Montserrat */
  font-size: 14px; /* 1rem = 16px */
  line-height: 1.2;
  margin: 25px 0 5px 0; /* 上 40px，下 24px，左右 0 */
  background-color: rgba(0, 0, 0, 0.2);
  padding: 8px 25px; 
  padding: 16px; /* 1rem = 16px */
  border-radius: 12px;
  max-width: 100%;
  font-weight: 200; 
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}
.updates h2 {
  font-family: 'Montserrat', sans-serif; /* Keep Montserrat */
  font-size: 16px; /* 1.2rem = 19.2px */
  font-weight: 450;
  color: var(--main-warm1);
  margin-top: 0; 
  opacity: 0.7
}

#update-container {
  color: var(--main-warm1);
  opacity: 0.7
}

footer {
  width: 100%;
  padding: 8px 0;
  
  font-size: 12px; 
  /*color: #ddd;*/
  color: var(--main-warm1);
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  position: fixed;
  bottom: 0;
  left: 0;
  background: transparent;
  opacity: 0.4;
}

/* phone display */
@media (max-width: 768px) {
  html, body {
    height: 105dvh;
    overflow-x: hidden;
    overflow-y: auto;
    /*overscroll-behavior: none;*/
    overscroll-behavior-y: contain;
  }
  .container {
    height: 100dvh;
    position: relative;
    overflow: hidden;
  }
    
  .container-wrapper {
    position: fixed;
    left: 50%;
    top: calc(28svh + env(safe-area-inset-top));
    transform: translateX(-50%); 
    z-index: 1150;
    width: min(100%, 1000px);      /* 视口自适应 + 最大宽度限制（可改/可删） */
    box-sizing: border-box;
    pointer-events: auto;
  }
  header h1 {
    font-size: 44px;
    margin: 10px auto 15px auto;
    line-height: 1.2;
  }
  header p {
    font-size: 16px;
    margin: 5px auto 30px auto;
    line-height: 1.3;
  }
  .intro p {
    font-size: 14px;
    max-width: 90%;
    margin: 6px auto; 
    line-height: 1.1;
  }
  .buttons {
    gap: 50px; 
    margin-top: 30px;
    margin-bottom: 50px;
  }  
  /*.buttons {
    padding: 1px;
    border-radius: 22px;
    margin-top: 50px;
    margin-bottom: 20px;
  }*/
  .buttons a {
    padding: 5px 15px;
    font-size: 24px;
  }
  .updates {
    display: block;
    font-size: 12px;
      
    position: fixed;
    /* decide the width of updates container */
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
        
    bottom: calc(12svh + env(safe-area-inset-bottom));
      
    width: auto;
    max-width: none;
    box-sizing: border-box;
    /*margin-top: 40px;
    margin-bottom: 10px;*/
    transform: none;
      z-index: 1200;
  }
  .updates h2 {
    opacity: 0.6; 
  }     
  #update-container {
    opacity: 0.6; 
  }
  footer {
    font-size: 10px;
    padding: 6px 0;
    opacity: 0.3;
    pointer-events: none;
      z-index: 1100;
  }
}

@media (max-height: 700px) {
  footer {
    font-size: 10px;
  }
}

