/* 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;
    font-family: var(--ff-sans);
}

a:link {
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    line-height: 0.9rem;
    color: hsl(240, 2%, 10%);
    }
a:hover {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    line-height: 0.9rem;
    text-decoration: none;
    color: hsl(130, 61%, 8%);
}
a:visited {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    line-height: 0.9rem;
    text-decoration: none;
    color: hsl(0, 60%, 11%);
}

p {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    line-height: 0.9rem;
    color: hsl(0, 0%, 0%);
    text-align: center;
}

.minmax {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 0.5 rem;
    color: hsl(231, 42%, 15%);
    text-align: center;
    margin: 0px;
    padding: 0px;

}

#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;
}

h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.1rem;
    color: hsl(231, 42%, 15%);
    text-align: center;

}

#pic {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.0rem;
    color: hsl(231, 42%, 15%);
    text-decoration: none;
    text-align: center;
    a:link {
    text-decoration: none;
    color: hsl(240, 2%, 10%);
    }
    a:hover {
        text-decoration: none;
        color: hsl(130, 61%, 8%);
    }
    a:visited {
        text-decoration: none;
        color: hsl(0, 60%, 11%);
    }
}

.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.powerbox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.pwrcontainer {
    margin-left: auto;
    margin-right: auto;
    max-width: 90vw;

}


.wrapper {
    padding-inline: 1rem;
    max-width: 100%;
    margin-inline: auto;

}
.wrapper--narrow {
    display: flex;
    align-items: center;
    img {
        max-width: 300px;
       
    }
}

#energy {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    line-height: 0.9rem;
    color: hsl(231, 42%, 15%);
    text-align: center;
}

header {
    font-family: "Poppins", sans-serif;
    background: #cbcbcb;
}

header::after {
    content: '';
    display: table;
    clear: both;
}

.logo {
    float: left;
    padding: 10 0;
    width: 443px;
    height: 60px;
}

nav {
    float: right;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li {
    font-family: "Poppins", sans-serif;
    display: inline-block;
    margin: 0 35px;
    padding-top: 20px;
    position: relative;
}

nav a {
    font-family: "Poppins", sans-serif;
    color: #444;
    text-decoration: none;
    text-transform: uppercase;
}

nav a:hover {
    font-family: "Poppins", sans-serif;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
}

nav a::before {
    content: '';
    display: block;
    height: 0px;
    width: 100%;
    background-color: crimson;
    position: absolute;
    top: 0;
    transition: all ease-in-out 250ms;
}

nav a:hover::before{
    height: 6px;
}

footer {
    text-align: center;
}

.layout-grid {
    display: grid;
    gap: 1rem;
}

.layout-grid > * {
    flex: 1;
}

.col {
    /* border: 3px solid dodgerblue; */
    display: flex;
    gap: 1rem;
    flex-direction: row; 
}
canvas {
    margin-left: auto;
    margin-right: auto;
/* padding-left: 1rem; */
}

div #moon {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    max-height: 300px;
    min-width: 180px;
    min-height: 290px;
    padding: 1rem;
    overflow: hidden;
}

#almanak {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    max-height: 310px;
    min-width: 180px;
    min-height: 305px;
    padding: 1rem;
    overflow: hidden;
}

div #monne {
    display:flex;
    flex-direction: column;
}

#moon-phase {
    position: relative;
    display: block;
    padding-left: 30px;
    padding-top: -25px;
    margin-bottom: -50px;
    img {
        max-width: 92%;
        max-height: 85%;
    }
}


#solish {
    font-family:  "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    display: flex;
    align-items: center;
    align-content: center;
}

#moonecliptish {
    font-family:  "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    display: flex;
    align-items: center;
    align-content: center;
}

.sphere {
    border-radius: 100%;
    width: 100px;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
  }
  .hemisphere {
    width: 50%;
    height: 100%;
  }
  
  .light {
    background-color: #f9f1b5;
  }
  
  .dark {
    background-color: #575851;
  }
  .divider,
  .divider:after {
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    position: absolute;
    border-radius: 100%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
  }
  
  .divider {
    background-color: #575851; /* Dark */
  }
  
  .divider:after {
    content: "";
    background-color: #f9f1b5; /* Light */
    transform: rotateY(180deg);
  }

.card {
    /* max-width: 200px; */
    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;
    float:left;
}

.doublecard {
    margin-top: 1rem;
    margin-left: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.grejor {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.6rem;
    align-items: center;
    justify-content: center;
    width: 80vw;
    background-color: lightskyblue;
    border-radius: 7px;
}

.ljus {
    background-color: rgb(192, 230, 254);
}

.drk {
    background-color: rgb(243, 255, 182);
}

.grejor p {
    font-size: 14pt;
}


.maps {
    width: 23rem;

}

  @media (min-width: 1980px) {
    .gauge {
        width: 70%;
        max-width: 218px;
    }
}
  
  /*  mak the height half its width */
 
    
  
@media (max-width: 800px) {
    img {
        width: 15%;
        height: 15%;
    }
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .card {
        max-width: 500px;
    }
}


@media (max-width: 1000px) {
    img {
        width: 90%;
        height: 90%;
    }
    .layout-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
    .card {
        max-width: 580px;
    }
}


@media (max-width: 1500px) {
    img {
        width: 100%;
        height: 100%;
    }
    .layout-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }
    .card {
        max-width: 580px;
    }
}