@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;900&display=swap');
@import url('./chota.css');

:root {
  --bg-color: #efefef;
  --bg-secondary-color: #f3f3f6;
  --color-lightGrey: #d2d6dd;
  --color-grey: #747681;
  --color-darkGrey: #241F20;
  --color-error: #d43939;
  --color-success: #28bd14;
  --grid-maxWidth: 120rem;
  --grid-gutter: 2rem;
  --font-size: 1.6rem;
  --font-color: #241F20;
  --color-primary: #3556CD; /* brand color */
  --grid-maxWidth: 100vw; /* max container width 1080px */
  --font-family-sans: 'Montserrat';
  --font-family-mono: 'Montserrat';
}

.gridContainer {
  max-width: 1500px;
  margin-bottom: 3vh;
}

.row {
  border-bottom: 2px solid #241F20;
}

.row:last-of-type {
  border-bottom: none;
}
.gridContainer .row:first-child {
  margin-bottom: 0vh;
}

.gridContainer .row:nth-of-type(2) {
  margin-bottom: 4vh;
}

.row .shade {
  max-height: 70vh;
  float: right;
  filter: drop-shadow(-0.5rem 0.5rem 1rem darkgray);
}

.nav {
  margin: 2vh auto;
  min-height: 0;
  text-transform: uppercase;
}
.nav img, .nav svg {
  width: 32px;
  height: 32px;
}

.nav p {
  margin-bottom: 0;
}

.nav a {
  padding: 0;
}

#navigation {
  border-bottom: 2px solid #241F20;
}
.gridContainer {
  margin-bottom: 0;
}

#navigation .row {
  border-bottom: 0;
}

footer .borders{
  border-left: 2px solid #241F20;
  border-right: 2px solid #241F20;
}

footer {
  border-top: 2px solid #241F20;
}

h1 {
  font-size: 5vw;
  margin: 20vh 0;
}

h2 {
  font-weight: bold;
  margin-bottom: 0.35em;
}

h4 {
  margin-bottom: 1em;
}
.preAyil {
  position: relative;
  height: 70vh;
}
#ayil {
  position: absolute;
  width: 100%;
  max-width: 70vh;
  right: 0;
}
@media screen and (aspect-ratio < 1) {
  #ayil {
    max-width: 60vw;
  }
}
@media screen and (max-width: 900px) {
  .row .shade {
    float: left;
  }
  #ayil {
    left: 0;
  }
  #ayil canvas {
    width: 100%;
  }
  .preAyil {
    height: 95vw;
  }
}

@media screen and (max-width: 480px) {
  .nav {
    flex-direction: row;
  }
  .nav-left {
    -webkit-box-pack: start;
    justify-content: flex-start;
  }
  .nav-right {
    -webkit-box-pack: end;
    justify-content: flex-end;
  }
  .maxText {
    padding: 0 10px;
  }
}

#preDisplay {
  margin-top: 10vh;
}
#preDisplay .row {
  margin-bottom: 3vh;
}

/* 1. Container: Must be positioned relatively for the absolute tooltips */
.email-container {
  position: relative; 
  display: inline-block;
}

/* 2. Link Style (Minimal) */
.copy-link {
  cursor: pointer;
}

/* 3. Base Tooltips: Absolute positioning, hidden by default */
.tooltip-hover, .tooltip-click {
  /* Positioning and Centering */
  position: absolute;
  z-index: 10;
  top: 125%; /* Position BELOW the link */
  left: 50%;
  transform: translateX(-50%); 
  white-space: nowrap;
  padding: 5px 10px; /* Minimal padding for shape */
  border-radius: 6px; /* Minimal border-radius for shape */
  
  /* Hiding mechanism */
  opacity: 0;
  visibility: hidden; 
  transition: opacity 0.3s, visibility 0.3s;
}

/* === HOVER TOOLTIP STYLES ("Contact Me") === */
.tooltip-hover {
    background-color: #333; /* Just to make it visible */
    color: #fff;
}

/* Rule to show the HOVER tooltip when the link is hovered */
.copy-link:hover .tooltip-hover {
  visibility: visible;
  opacity: 1;
}

/* === CLICK TOOLTIP STYLES ("Email copied!") === */
.tooltip-click {
    background-color: #28a745; /* Just to make it visible */
    color: #fff;
}

/* Rule to show the CLICK tooltip ONLY when JavaScript adds the 'visible' class */
.tooltip-click.visible {
  visibility: visible;
  opacity: 1;
}