/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css?family=Montserrat&display=swap");

.container {
            display: flex;
            flex-wrap: nowrap;
            
        }


/*=============== COLUMN 1 ===============*/
.column-1 {
  justify-self: flex-start;
  align-self: flex-start;
}
/*=============== COLUMN 2 ===============*/
.column-2 {
            /* Adjust the value to widen the column */
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
	
        }

/*=============== COLUMN 3 ===============*/
.column-3 {
  justify-self: flex-end;
  align-self: flex-end;
}

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  --hue-color: 240;

  --first-color: hsl(var(--hue-color), 53%, 49%);
  --title-color: hsl(var(--hue-color), 53%, 15%);
  --text-color: hsl(var(--hue-color), 12%, 35%);
  --text-color-light: hsl(var(--hue-color), 12%, 65%);
  --white-color: #FFF;
  --body-color: hsl(var(--hue-color), 24%, 94%);

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 3rem;
  --big-font-size: 2rem;
  --med-font-size: 1rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .625rem;

  /*========== Font weight ==========*/
  --font-medium: 500;

  /*========== Margenes Bottom ==========*/
  --mb-0-25: .25rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2-5: 2.5rem;

  /*========== z index ==========*/
  --z-normal: 1;
  --z-tooltip: 10;
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 3.5rem;
	--medium-font-size: 2rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
    --tiny-font-size: .75rem;
  }
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: hsl(var(--hue-color), 12%, 95%);
  --text-color: hsl(var(--hue-color), 12%, 75%);
  --body-color: hsl(var(--hue-color), 10%, 16%);
}

/*========== Button Dark/Light ==========*/
.clock__theme {
  position: absolute;
  top: -1rem;
  right: -1rem;
  display: flex;
  padding: .25rem;
  border-radius: 50%;
  box-shadow: inset -1px -1px 1px hsla(var(--hue-color), 0%, 100%, 1), 
              inset 1px 1px 1px hsla(var(--hue-color), 30%, 86%, 1);
  color: var(--first-color);
  cursor: pointer;
  transition: .4s; // For dark mode animation
}

/*========== Box shadow Dark theme ==========*/
.dark-theme .clock__circle {
  box-shadow: 6px 6px 16px hsla(var(--hue-color), 8%, 12%, 1), 
              -6px -6px 16px hsla(var(--hue-color), 8%, 20%, 1), 
              inset -6px -6px 16px hsla(var(--hue-color), 8%, 20%, 1), 
              inset 6px 6px 12px hsla(var(--hue-color), 8%, 12%, 1);
}

.dark-theme .clock__theme {
  box-shadow: inset -1px -1px 1px hsla(var(--hue-color), 8%, 20%, 1), 
              inset 1px 1px 1px hsla(var(--hue-color), 8%, 12%, 1);
}

/*=============== BASE ===============*/

body {
  margin: 0;
  font-family: var(--body-font);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s; /* For dark mode animation */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

a {
  text-decoration: none;
}

/*=============== CLOCK ===============*/
.clock__container {
  justify-self: center;
  flex-direction: column;
  align-items: center;
  padding-top: 4.5rem; /* Add vertical padding */
}

.clock__circle {
  position: relative;
  width: 260px; /* Increased by 30% */
  height: 260px; /* Increased by 30% */
  box-shadow: -6px -6px 16px var(--white-color), 
              6px 6px 16px hsla(var(--hue-color), 30%, 86%, 1), 
              inset 6px 6px 16px hsla(var(--hue-color), 30%, 86%, 1), 
              inset -6px -6px 16px var(--white-color);
  border-radius: 50%;
  margin: 0 auto;
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .4s; /* For dark mode animation */
}

.clock__content {
  align-self: center;
  row-gap: 3.5rem;
}

.clock__twelve, 
.clock__three, 
.clock__six, 
.clock__nine {
  position: absolute;
  width: 1.2rem; /* Increased by 30% */
  height: 1px;
  background-color: var(--text-color-light);
}

.clock__twelve, 
.clock__six {
  transform: translateX(-50%) rotate(90deg);
}

.clock__twelve {
  top: 1.25rem;
  left: 50%;
}

.clock__three {
  top: 50%;
  right: .9rem; /* Increased by 30% */
}

.clock__six {
  bottom: 1.25rem;
  left: 50%;
}

.clock__nine {
  left: .9rem; /* Increased by 30% */
  top: 50%;
}

.clock__rounder {
  width: .9rem; /* Increased by 30% */
  height: .9rem; /* Increased by 30% */
  background-color: var(--first-color);
  border-radius: 50%;
  border: 2px solid var(--body-color);
  z-index: var(--z-tooltip);
}

.clock__hour, 
.clock__minutes, 
.clock__seconds {
  position: absolute;
  display: flex;
  justify-content: center;
}

.clock__hour {
  width: 136.5px; /* Increased by 30% */
  height: 136.5px; /* Increased by 30% */
}

.clock__hour::before {
  content: '';
  position: absolute;
  background-color: var(--text-color);
  width: .3rem; /* Increased by 30% */
  height: 3.9rem; /* Increased by 30% */
  border-radius: .75rem;
  z-index: var(--z-normal);
}

.clock__minutes {
  width: 176.8px; /* Increased by 30% */
  height: 176.8px; /* Increased by 30% */
}

.clock__minutes::before {
  content: '';
  position: absolute;
  background-color: var(--text-color);
  width: .3rem; /* Increased by 30% */
  height: 5.2rem; /* Increased by 30% */
  border-radius: .75rem;
  z-index: var(--z-normal);
}

.clock__seconds {
  width: 169.0px; /* Increased by 30% */
  height: 169.0px; /* Increased by 30% */
}

.clock__seconds::before {
  content: '';
  position: absolute;
  background-color: var(--first-color);
  width: .1575rem; /* Increased by 30% */
  height: 6.5rem; /* Increased by 30% */
  border-radius: .75rem;
  z-index: var(--z-normal);
}

.clock__logo {
  width: max-content;
  justify-self: center;
  margin-bottom: var(--mb-2-5);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color-light);
  transition: .3s;
}

.clock__logo:hover {
  color: var(--first-color);
}

.clock__text {
  display: flex;
  justify-content: center;
  padding-top: 4rem; /* Add vertical padding */
}

.clock__text-hour, 
.clock__text-minutes {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.clock__text-ampm {
  font-size: var(--tiny-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-left: var(--mb-0-25);
}

.clock__date {
  text-align: center;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

/*=============== BUTTONS ===============*/
.button {
  width: 400px;
  height: 100px;
  background: #f3f0f1;
  margin-bottom: 25px;
  margin-left: 12rem;
  margin-right: 12rem;
  border-radius: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  box-shadow: -6px -6px 10px rgba(255, 255, 255, 0.8), 6px 6px 10px rgba(0, 0, 0, 0.2);
  color: #6f6cde;
  
}

.button:hover {
  opacity: 0.3;
  box-shadow: -6px -6px 10px rgba(255, 255, 255, 0.8), 6px 6px 10px rgba(0, 0, 0, 0.2);
}

.button:active {
  opacity: 1;
  box-shadow: inset -4px -4px 8px rgba(255, 255, 255, 0.5), inset 8px 8px 16px rgba(0, 0, 0, 0.1);
  color: #79e3b6;
}

.button span {
  line-height: 100px;
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: semibold;
}

/*=============== MEDIA QUERIES ===============*/
/* For large devices */
@media screen and (min-width: 968px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr; /* Removed the row for the weather widget */
    grid-gap: var(--mb-1);
  }
  .weather-widget {
    grid-row: 1/2;
    justify-self: center; /* Center the weather widget horizontally */
  }
  .clock__container {
    grid-row: 2/3;
  }
}

@media screen and (max-width: 480px) {
  /* Styles for screens with a maximum width of 480px (iPhone portrait mode) */

  /* Example: Shifting up the container */
  .container {
    margin-top: -80px;
  }
  .weather-info {
    white-space: nowrap;
  }

}
