@import url('https://fonts.googleapis.com/css2?family=Merriweather&family=Open+Sans&display=swap');

/* Global Styles */
body {
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f8f8;
    color: #333;
}

/*dark mode*/

#dark-mode-toggle {
    position: absolute;
    top: 20px;
    left: 95%;
    font-size: 1.2rem;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px; /* Make the button rounded */
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s; /* Add transitions */
}

#dark-mode-toggle:hover {
    background-color: #001f6b; /* Darken the background color on hover */
    transform: translateY(-2px); /* Add a slight lift effect */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Increase shadow on hover */
}

.dark-mode .card_home .column {
    background-color: #222;
    color: #fff;
}

.dark-mode .main-nav ul li a{
    background-color: #222;
    color: #fff;
}

.dark-mode .main-nav ul li a:hover{
    background-color: #222;
    color: #fff;
}
.dark-mode .card{
    background-color: #222;
    color: #fff;
}

.dark-mode section {
    background-color: #222;
    color: #fff;
}

.dark-mode label {
    background-color: #222;
    color: #fff;
}

.dark-mode .card_home .column:nth-child(1) {
    background-color: #222;
    color: #fff;
}

/* Header Styles */

.joao {
    font-size: 1.5em; /* Tamanho da fonte padrão */
    color: #001f6b;
    text-align: center; /* Centraliza o texto horizontalmente */
    padding-bottom: 8px;
    
}

.main-header {
    background-color: #80ED99;
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.logo img {
    height: 60px; /* Adjust as needed */
}

.main-nav {
    padding: 20px;
    flex: 1; /* Take up remaining space */
    text-align: center; 
    background-color: rgba(200, 200, 200, 0.5)
}

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

.main-nav ul li {
    display: inline-block;
    padding: 8px;
}

.main-nav ul li:first-child {
    margin-left: 0;
}

.main-nav ul li a {
    text-decoration: none;
    color: #0056b3; /* Default color */
    font-size: 1.5rem;
    transition: color 0.3s, background-color 0.3s
}

.main-nav ul li a:hover {
    color: #03045e; /* Color change on hover */
    background-color: rgba(3, 4, 94, 0.2); 
    padding: 20px;
}

.main-index{
    margin: 0 auto ;
}

/* Hero Section Styles */
#hero {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    position: relative; /* Added for proper positioning of h1 */
    width: 100%;
}

#hero img {
    display: block;
    width: 100%; /* Ajuste a largura da imagem para 100% do contêiner pai */
    height: auto; /* Mantém a proporção da imagem */
}

#hero h1 {
    position: absolute;
    top: 20%;
    left: 52%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3vw;
    text-align: center;
    z-index: 1;
    max-width: 90%;  
}

button{
    position: absolute;
    top: 30%;
    left: 50%;
    padding: 10px 20px; /* Adjust padding as needed */
    background-color: #80ED99; /* Green background color */
    color: white; /* Text color */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Cursor style */
    font-size: 16px;
}

button:hover {
    background-color: #45a049; /* Darker green background color */
}


/* Card Styles */


.main-index  {
    display: grid;
    grid-template-columns: 600px auto ;
    grid-gap: 20px;
    margin: 50px;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}   

.spotlight {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.spotlight section {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
    padding: 20px;
    text-align: center;
}

.spotlight img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Additional styles for spotlight heading */
.spotlight h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.spotlight p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.feature_members {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.spotlight_members {
    padding: 10px;
    text-align: center;
    margin: 20px;
}

.logoimg {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

h2,h3{
    text-align: center;
}


#location, #current-temp, #weather-icon, #weather-description, #feels-like, #wind-speed, #humidity {
    text-align: center;
    font-family: Merriweather;
}

img #weather-icon{
    margin: 0 auto;
}

/*banner*/
.banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    padding: 20px;
    text-align: center;
    z-index: 1000;
}

.closeBtn {
    position: absolute;
    top: 20px;
    left: 50px;
    cursor: pointer;
    float: right;
    font-size: 20px;
   

}

.banner.show {
    display: block;
}



/*discover*/

/* Ensure main is a flex container */

.lastvisit{
    display: flex;
    flex-direction: column;
    margin: 15% auto;
    text-align: center;
    padding: 30px;
    border: 1px solid #ccc;
    width: 500px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.main-discover {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.imagens{
    grid-column: 2;
}

.conteudo{
    grid-column: 1;
}
.card {
    flex: 1 1 45%;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 300px;
    width: 500px;
    margin: auto;
    margin-top: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}


picture {
    flex: 1 1 50%;
}

.discover-img {
    width: 400;
    height: 300px;
    display: block;
    border-radius: 5px;
    margin-top: 70px;
    margin-bottom: 50px;
}

/* footer*/

footer {
    grid-column: span 2;
    text-align: center;
    background-color: #80ED99;
    padding: 20px;
}


/* Join */

/* styles/form.css */

/* Define CSS variables */

#main-form{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

:root {
    --label-color: #333;
    --input-padding: 8px;
    --input-border: 1px solid #ccc;
  }
  
  /* Reset default margin and padding */
  body, h1, h2, h3, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
      margin: 0;
      padding: 0;
  }
  
  /* Ensure the form fills its container */
  form {
    grid-column: 1; /* Ensure the form is placed in the first column */
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
}
  
  /* Style fieldset */
  fieldset {
      border: none;
  }
  
  /* Style labels */
  label {
      display: block;
      margin-bottom: 10px;
      color: var(--label-color);
  }
  
  /* Style inputs */
  input[type="text"],
  input[type="tel"],
  input[type="email"] {
      width: 100%;
      padding: var(--input-padding);
      border: var(--input-border);
      border-radius: 5px;
      margin-bottom: 10px;
  }

  /* Style range */
#r {
	width: 180px;
	margin-bottom: 0;
}

#rangevalue {
	font-size: 2rem;
	color: navy;
}

#rangevalues {
	display: flex;
	margin: 0 0 0 25px;
	width: 200px;
    padding: 20px;
}

#rangevalues option {
	flex: 1 1 auto;
}
  
  /* Style submit button */
  input[type="submit"] {
      width: 100%;
      padding: 10px;
      border: none;
      border-radius: 5px;
      background-color: #007bff;
      color: #fff;
      cursor: pointer;
      transition: background-color 0.3s ease;
      margin: -1rem 2% 2rem 2%;
  }
  
  input[type="submit"]:hover {
      background-color: #0056b3;
  }
  
  /* Additional styling for range input */
  input[type="range"] {
      -webkit-appearance: none;
      width: 100%;
  }

  
  /* Accessibility enhancements */
  input[type="text"]:focus,
  input[type="password"]:focus,
  input[type="email"]:focus,
  input[type="range"]:focus {
      outline: 2px solid #007bff;
  }
  
  /* Responsive adjustments */
  @media only screen and (max-width: 600px) {
      form {
          padding: 10px;
      }
      input[type="submit"] {
          font-size: 14px;
      }
  }
  

#thankyou{
margin-top: 50px;
text-align: center;
height: 800px;
}

.membership {
    display: grid;
    grid-gap: 20px;
    margin-top: 20px;
}

.plan {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.plan h2 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.plan p {
    color: #333;
    line-height: 1.6;
}

/* Responsive adjustments */
@media only screen and (max-width: 600px) {
    .membership {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .plan {
        padding: 15px;
    }

    .plan h2 {
        font-size: 1.2rem;
    }

    .plan p {
        font-size: 0.9rem;
    }
}
/*Directory*/

.menu button {
	padding: 1rem;
	font-weight: 700;
}

#grid{
    position: absolute;
    top:25%;
    left: 45%;
}

#list{
    position: absolute;
    top:25%;
    left: 52%;
}

section {
	border: 1px solid rgba(0, 0, 0, 0.1);
	padding: 0.5rem;
	background-color: #fff;
    border-radius: 8px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction:column;
    margin: auto;
    margin-top: 120px;
    margin-bottom: 50px;
	grid-gap: 5px;
	align-items: center;

}

.grid section {
	text-align: center;
}

.grid img {
	border: 1px solid #fff;
	box-shadow: 0 0 10px #fff;
}

.grid section > * {
	margin: 0.1rem;
}

.grid h3 {
	font-family: "Caveat", cursive;
}

.list {
	display: flex;
	flex-direction: column;
    margin: 0 auto;
    padding: 60px;
    margin-top: 50px;
}

.list section {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	margin: 0;
	padding: 0.25rem;
}

.list section > * {
	margin: 0 1rem;
    
}

.list section img {
	display: none; /* smaller viewports only */
}

.list section h3 {
	font-size: 1rem;
	font-family: Roboto, Helvetica, sans-serif;
}

.list section:nth-child(even) {
	background-color: #bed;
}

section h3 {
	font-size: 1.5rem;
}

section p {
	font-weight: 600;
	font-size: smaller;
}

section a {
	font-family: "Roboto", Arial, sans-serif;
	font-size: 0.85rem;
	color: navy;
	letter-spacing: 1.1pt;
}

.logoimg {
	height: 75px;
	max-width: 100%; /* Images are jerks - Seattle*/
}
/*weather*/
/* CSS for the Weather section */

/* Container for weather information */
.card_home .column:nth-child(1) {
    background-color: #f5f5f5; /* Background color */
    padding: 20px; /* Padding around the content */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow effect */
    width: 900px;
    height: 650px;
  }
  
  /* Location text */
  #location {
    font-size: 15px; /* Font size */
    font-weight: bold; /* Bold text */
    margin-bottom: 10px; /* Margin bottom */
    margin-top: 10px;
  }
  
  /* Current temperature */
  #current-temp {
    font-size: 30px; /* Font size */
    font-weight: bold; /* Bold text */
  }
 
  /* Weather description */
  #weather-description {
    margin-top: 10px; /* Margin top */
  }
  
  /* Feels like, wind speed, humidity */
  #feels-like,
  #wind-speed,
  #humidity {
    margin-top: 5px; /* Margin top */
  }
  
  
  /* Weather forecast */
  #forecast {
    display: flex; /* Use flexbox layout */
    flex-wrap: wrap; /* Wrap items */
    justify-content: space-between; /* Space between items */
    margin-top: 20px; /* Margin top */
    
  }
  
  /* Individual weather day */
  .weather-day {
    width: calc(20% - 20px); /* Set width of each day */
    color: #001f6b; /* Background color */
    background-color: #ccc;
    padding: 10px; /* Padding */
    margin-bottom: 20px; /* Margin bottom */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow effect */
  }
  
  /* Weather icon in forecast */
  .weather-day img {
    display: block; /* Make the image a block element */
    margin: 0 auto; /* Center the image horizontally */
  }
  
  /* Temperature div in forecast */
  .temp-div {
    display: flex; /* Use flexbox layout */
    justify-content: space-between; /* Space between items */
    margin-top: 10px; /* Margin top */
  }
  
  /* High and low temperature text */
  .temp-div p {
    font-size: 14px; /* Font size */
    font-weight: bold; /* Bold text */
  }
  