/* font-family: "Poppins", sans-serif; */
/* - Very Dark Blue: hsl(234, 12%, 34%)
- Grayish Blue: hsl(229, 6%, 66%)
- Very Light Gray: hsl(0, 0%, 98%) */
:root{
    --ff-sans: font-family: "Poppins", sans-serif;

    --fs-400: 0.9275rem;
}

*,
*::before,
*::after{
    box-sizing: border-box;

}

html {
    font-family: var(--ff-sans);
    line-height: 1.7;
    color: hsl(234, 12%, 34%);
}
body {
    margin: 0;
    min-height: 100vh;
}

p {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: hsl(231, 42%, 15%);
    text-align: center;
}
#logo {
    width: 70%;
    height: 70%;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}    
.attribution {
    font-weight: 400;
    font-size: 1.4rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

h1, h2, h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    color: hsl(231, 42%, 15%);
    text-align: center;

}

.wrapper {
    padding-inline: 1rem;
    max-width: 1500px;
    margin-inline: auto;
}
.wrapper--narrow {
    max-width: 550px;
}

header {
    text-align: center;
}

footer {
    text-align: center;
}

.layout-grid {
    display: grid;
    gap: 1rem;
}

.layout-grid > * {
    flex: 1;
}

.col {
    /* border: 3px solid dodgerblue; */
    display: grid;
    gap: 1rem;
    /* flex-direction: column; */
}
canvas {
padding-left: 1rem;
}

#moon-phase {
    margin-left: auto;
    margin-right: auto;
}

#dirgauge {
    display: block;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

.card {
    max-width: 500px;
    padding-top: 0.2rem;
    padding-bottom: 0.5rem;
    /* padding-left: 2rem; */
    place-items: center;
    border-top: 7px solid dodgerblue;
    box-shadow: 0.5rem 0.5rem 0.5rem -0.2rem #a6a7a6;
    border-radius: 1rem;
    background-color: aliceblue;
}

.weder {
    text-align: left;
}


.gauge{
    width: 100%;
    max-width: 310px;  
  }

  @media (min-width: 1980px) {
    .gauge {
        width: 70%;
        max-width: 218px;
    }
}
  
  /*  mak the height half its width */
  .gauge__body{
    width: 100%;
    height: 0;
    padding-bottom: 50%; 
    background-color: #b4c0be;
    position: relative;
    border-top-left-radius: 100% 200%;
    border-top-right-radius: 100% 200%;
    overflow: hidden;
  }
  
  .gauge__fill{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #009578;
    transform-origin: 50% 0%;
    transform: rotate(0.1turn);
    transition: transform 200ms ease-out;
  }
  .gauge__body:hover .gauge__fill{
    transform: rotate(0.50turn);
  }
    
  .gauge__cover{
    width: 75%;
    height: 150%;
    background-color: rgb(255, 255, 255);
    position: absolute;
    border-radius: 50%;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
      /*  text*/
      display: flex;
      justify-content: center;
      align-items: center;
      padding-bottom: 25%;
      box-sizing: border-box;
      font-weight: bold;
      font-size: 32px;
  }


  
@media (min-width: 600px) {
    img {
        width: 30%;
        height: 30%;
    }
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .card {
        max-width: 500px;
    }
}


@media (min-width: 1000px) {
    img {
        width: 80%;
        height: 80%;
    }
    .layout-grid {
        grid-template-columns: 1fr 1fr;
    }
    .card {
        max-width: 580px;
    }
}


@media (min-width: 1500px) {
    img {
        width: 100%;
        height: 100%;
    }
    .layout-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .card {
        max-width: 580px;
    }
}