body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background: black;
    box-sizing: border-box;
}
.maincont {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0px;
    position: relative;
    z-index: 1;
}

.welcomeimage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.welcomeimage img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.site-name {
    font-size: 24px;
    color: white;
    
    text-align: center;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}
.container {
    display: flex;
    flex-direction: column;
    
   color: white;
}
ul li {
list-style: none;
}
      
 .mybtn {
   cursor: pointer;
   border-radius: 4px;
   margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.3s;
  width: 200px;
  background-color: grey;
  color: black;
 
}
 #moon_cont img {
   width: 200px;
   height: 260px;
   
}
 .disclaimer {color: white;}
        
       
        h1, h2, h3, h4, h5 {
            color: white;
            font-family: 'Open Sans', sans-serif;
            font-weight: 700;
        }
        h1 {
            font-size: 36px;
            color: white;
            margin: 10px;
        }
        h2 {
            font-size: 29px;
        }
        h3 {
            font-size: 24px;
        }

        a {
            color: white;
        }

        ul {
            padding-left: 2em;
        }

        img {
            max-width: 100%;
        }

        .cta-button {
            display: block;
            text-align: center;
            vertical-align: middle;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            box-shadow: 0 0 1px rgba(0, 0, 0, 0);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            -moz-osx-font-smoothing: grayscale;
            position: relative;
            overflow: hidden;
            margin: .2em 0;
            padding: 1em;
            cursor: pointer;
            background: #67a749;
            text-decoration: none;
            border-radius: 3px;
            color: #fff;
            -webkit-tap-highlight-color: rgba(0,0,0,0);
        }
        .cta-button:before {
            content: "";
            position: absolute;
            z-index: -1;
            left: 50%;
            right: 50%;
            bottom: 0;
            background: #137899;
            height: 5px;
            -webkit-transition-property: left, right;
            transition-property: left, right;
            -webkit-transition-duration: 0.3s;
            transition-duration: 0.3s;
            -webkit-transition-timing-function: ease-out;
            transition-timing-function: ease-out;
        }
        .cta-button:hover:before, .cta-button:focus:before, .cta-button:active:before {
            left: 0;
            right: 0;
        }

    
             .calendar-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }

        .day-card {
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 10px;
            text-align: center;
            width: calc(33.333% - 20px);
            box-sizing: border-box;
            transition: background-color 0.3s;
            position: relative;
            color: black;
        }

        .day-card.today {
            background-color: #ffcc00;
            border-color: #ffb300;
            font-weight: bold;
        }
        .day-card img {
            width: 245px;
            height: 170px;
         }

        .day-card.favorable {
            background-color: #d4edda;
        }

        .day-card.unfavorable {
            background-color: #f8d7da;
        }

        .day-card.past {
            display: none; /* Скрываем прошедшие дни */
        }

        .day-number {
            font-size: 1.2em;
            font-weight: bold;
        }

        .day-date {
            font-size: 0.9em;
            color: #555;
        }

        .moon-image {
            
            margin: 10px 0;
        }
        .date {
          font-weight: 900;
          font-size: larger;
         }
       #myCanvas {
         display: block;
         width: 100% !important;
         height: 78vh !important;
         position: absolute;
         top: -100px;
         left: 0;
        }

        .moon-phase {
            font-size: 1em;
            margin-bottom: 5px;
        }

        .plant-advice {
            font-size: 1em;
            cursor: help;
        }

        .plant-advice .favorable-text {
            color: #15782b;
            font-weight: bold;
        }

        .plant-advice .unfavorable-text {
            color: #dc3545;
            font-weight: bold;
        }

        .plant-advice:hover::after {
            content: attr(title);
            position: absolute;
            background-color: #fff;
            border: 1px solid #ddd;
            padding: 5px;
            border-radius: 4px;
            box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
            white-space: normal;
            width: 200px;
            z-index: 10;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
        }

        .today-label {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #ffcc00;
            color: black;
            border-radius: 4px;
            padding: 2px 5px;
            font-size: 0.8em;
            font-weight: bold;
        }

        .action-icons {
            margin-top: 10px;
        }

        .action-icons i {
            margin: 0 5px;
            color: #007bff;
        }
        #location-data {
          color: white;
        }

        .action-icons i.unfavorable {
            text-decoration: line-through;
            color: #dc3545;
        }

        #calculation-method {
            margin-top: 20px;
            text-align: center;
        }
        .day-card.today {
        display: block !important;
        }

        @media (max-width: 768px) {
            .container {
              margin-top: 0;
                       }
            .day-card {
                width: calc(50% - 20px);
            }
        }

        @media (max-width: 480px) {
            .container {
              margin-top: 0;
                       }
            .day-card {
                width: 100%;
            }
        }
    