/* Fonts */
@font-face {
  font-family: "SF Pro Rounded";
  src: url("../../fonts/SF-Pro-Rounded-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Rounded";
  src: url("../../fonts/SF-Pro-Rounded-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

body {
  font-family: "SF Pro Rounded", "Segoe UI", Helvetica, Arial;
}

html, body {
  display: flex;
  flex-direction: column;
  margin: 0;
  height: 100%;
}

/* Preloader */
.preloader {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #ffffff;       
  z-index: 10001;             
}

.preloader .sk-chase {
  transform: scale(2);
  transform-origin: center center;
}

.preloader.hide {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  visibility: hidden;
}

/* Toast */
.geo-toast {
  display: flex;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10000;
  width: 300px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  line-height: 1.45;
  text-wrap: pretty;
  text-align: center;
  align-items: center;
  background-color: #ffffff;
  color: #000000;
  border-radius: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.geo-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
}

.current-date {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 400;
}

.header-middle {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
}

.current-location {
  margin: 0;
  max-width: 140px;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.5vw, 1.2rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.current-location:hover {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  box-shadow: 
    inset 0 0px 0 rgba(255, 255, 255, 0.6),
    0 0px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.08);
}

.current-location.hidden {
  opacity: 0;
}

.change-geo-access-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border: none;
  border-radius: 50%;
  background-color: rgb(226, 226, 226);
  transition: all 0.2s ease;
}

.change-geo-access-btn:hover {
  background-color: rgb(180, 180, 180);
  transform: scale(1.08);
}

.geo-icon {
  width: 25px;
  height: 25px;
}

/* Typewriter */
.typewriter {
  display: inline-block;
  position: relative;
}

.typewriter::after {
  content: '|';
  font-family: 'Courier New', monospace;
  font-weight: 300;
  font-size: 1.3em;
  line-height: 0.9;
  position: absolute;
  right: -1ch;
  opacity: 1;
}

.typewriter.blinking::after {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.1%, 100% { opacity: 0; }
}

.sk-flow {
  margin-top: 25px;
  transform: scale(0.7);
  transform-origin: center center;
}

/* Main */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 50px;
  padding-bottom: 100px;
}

.mood-title {
  padding: 1rem;
  font-weight: 500;
}

.mood {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Grid */
.mood-grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(6, 125px);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .mood-grid {
    grid-template-columns: repeat(3, 125px);
  }
}

@media (max-width: 600px) {
  .mood-grid {
    grid-template-columns: repeat(2, 125px);
  }
}

/* Cards */
.mood-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  height: 125px;
  background-color: rgb(226, 226, 226);
  border: none;
  border-radius: 23%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mood-card.active {
  box-shadow: 0 0 10px rgba(24, 23, 23, 0.35);
  transform: scale(1.030);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mood-card:hover {
  box-shadow: 0 0 10px rgba(24, 23, 23, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mood-icon {
  width: 53%;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.mood-card.active .mood-icon {
  transform: scale(1.115);
}

/* Start button */
.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mood-start {
  margin: 1.7rem;
  padding: 0.6rem 1.17rem;
  font-size: 1.1rem;
  background-color: rgb(180, 180, 180);
  color: rgb(25, 25, 25);
  border: none;
  border-radius: 18px;
  backdrop-filter: blur(2px);
  transition: all 0.2s ease;
}

.mood-start:hover {
  transform: scale(1.05);
  box-shadow: 
    inset 0 0px 0 rgba(255, 255, 255, 0.6),
    0 0px 8px rgba(0, 0, 0, 0.2);
  background-color: rgb(255, 255, 255);
}

/* Footer */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  padding: 0 1rem;    
  background: rgb(35, 35, 35);
  box-sizing: border-box;
  z-index: 10000;
  }

.version {
  margin: 0;
  margin-left: 5px;
  font-size: 1rem;
  color: white;
}

.bar-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  
  margin: 0 auto;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  color: white;
}

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

.bar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
}

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

.github-logo {
  width: 40px;
  height: 40px;
  transition: transform 0.1s ease;
}

.github-logo:hover {
  transform: scale(1.05);
  transition: transform 0.1s ease;
}