:root {
    --MAINCOLOR: #2f2f2f;
    --LIGHTCOLOR: #fff;
    --ALTCOLOR: #53627c;
    --DARKCOLOR: #1e2432;
    --COLOR-BLUE: #1e4bff;
    --COLOR-DBLUE: #0032fb;
    --COLOR-RED:rgb(255, 41, 66);
    --COLOR-ORANGE: #ff8c00;
  }
   
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
  }
   
  button {
    cursor: pointer;
  }
    
  input {
    -webkit-appearance: none;
  }
    
  button,
  input {
    border: none;
    background: none;
    outline: none;
    color: inherit;
  }
   
  img {
    display: block;
    max-width: 100%;
    height: auto;
  }
   
  ul {
    list-style: none;
  }
   
  body {
    font: 1rem/1.3 "Monserrat", sans-serif;
    background: var(--MAINCOLOR);
    color: var(--DARKCOLOR);
    padding: 50px;
  }

  /*CUSTOM VARIABLES HERE*/
 
.top-banner {
    color: var(--LIGHTCOLOR);
    display: flex;
    justify-content: center;
    align-items: center;
  }
   
  .heading {
    font-weight: bold;
    font-size: 3rem;
    letter-spacing: 0.02em;
    padding: 0 0 30px 0;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
  }
   
  .top-banner form {
    position: relative;
    display: flex;
    align-items: center;
  }
   
  .top-banner form input {
    font-size: 2rem;
    height: 40px;
    padding: 5px 5px 10px;
    border-bottom: 2px solid;
    font-family: "Poppins", sans-serif;
  }

  .top-banner form input:focus {
    border-bottom: 2px solid var(--LIGHTCOLOR);
  }
   
  .top-banner form input::placeholder {
    color: rgba(255, 255, 255, 0.504); 
    font-size: 1.3rem;
  }
   
  .top-banner form button {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    padding: 15px 25px;
    margin-left: 15px;
    border-radius: 5px;
    background: var(--COLOR-BLUE);
    transition: background 0.3s ease-in-out;
  }
   
  .top-banner form button:hover {
    background: var(--COLOR-DBLUE);
    transition: 0.5s;
  }
   
  .top-banner form .msg {
    position: absolute;
    bottom: -50px;
    left: 0;
    max-width: 450px;
    min-height: 40px;
    margin: auto;
    color: var(--COLOR-RED);
    font-size: 1.2rem;
  }

  .ajax-section {
    margin: 50px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
   
  .ajax-section .cities {
    display: grid;
    grid-gap: 32px 20px;
    grid-template-columns: repeat(4, 1fr);
  }

  /*CUSTOM VARIABLES HERE*/
 
.ajax-section .city {
    position: relative;
    padding: 40px 10%;
    border-radius: 20px;
    background: var(--LIGHTCOLOR);
    color: var(--ALTCOLOR);
  }
   
  .ajax-section .city::after {
    content: ’’;
    width: 90%;
    height: 50px;
    position: absolute;
    bottom: -12px;
    left: 5%;
    z-index: -1;
    opacity: 0.3;
    border-radius: 20px;
    background: var(--LIGHTCOLOR);
  }
   
  .ajax-section figcaption {
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
   
  .ajax-section .city-temp {
    font-size: 5rem;
    font-weight: bold;
    margin-top: 10px;
    color: var(--DARKCOLOR);
  }
   
  .ajax-section .city sup {
    font-size: 0.5em;
  }
   
  .ajax-section .city-name sup {
    padding: 0.2em 0.6em;
    border-radius: 30px;
    color: var(--LIGHTCOLOR);
    background: var(--COLOR-ORANGE);
  }
   
  .ajax-section .city-icon {
    margin-top: 10px;
    width: 100px;
    height: 100px;
  }
   
  @media screen and (max-width: 1000px) { 
    .ajax-section .cities {
      grid-template-columns: repeat(3, 1fr);
    }
  }
   
  @media screen and (max-width: 700px) {
    .ajax-section .cities {
      grid-template-columns: repeat(2, 1fr);
    }
  }
   
  @media screen and (max-width: 500px) {  
    .ajax-section .cities {
      grid-template-columns: repeat(1, 1fr);
    }
  }
   
  @media screen and (max-width: 700px) {
    .top-banner form {
      flex-direction: column;
    }
     
    .top-banner form input,
    .top-banner form button {
      width: 100%;
    }
   
    .top-banner form button {
      margin: 20px 0 0 0;
    }
     
    .top-banner form .msg {
      position: static;
      max-width: none;
      min-height: 0;
      margin-top: 10px;
    }
  }

  