body {
    background-color: rgb(28, 28, 28);
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    color: rgb(238, 238, 238);
    margin: 0;
    padding: 0;
}


main {
    margin-top: 0;
}

header {
    background-color: rgb(22, 22, 22);
    padding: 20px;
    text-align: center;
    color: rgb(238, 238, 238);
}

header h1 {
    display: inline;
}

nav {
    display: inline;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap; /* allow the buttons to wrap to multiple lines */
}
nav ul li {
    padding: 5px 10px; /* Add some padding */
    text-align: center; /* Center the text */
    text-decoration: none; /* Remove underline */
    cursor: pointer; /* Change cursor to pointer on hover */
}
nav ul li:hover {
    background-color: #8d8b8b; /* Change background color on hover */
}
nav a {
    color: rgb(238, 238, 238);
    text-decoration: none;
}

section {
    margin-bottom: 20px;
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 50px;
}

#blogpost {
    margin-bottom: 20px;
    margin-left: 30%;
    margin-right: 30%;
    margin-top: 50px;
}

footer {
    background-color: rgb(22, 22, 22);
    padding: 10px;
    text-align: center;
    color: rgb(238, 238, 238);
}

form {
    width: 50vw;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
}

.form-row {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
    align-self: center;
    justify-content: space-between;
    display: flex;
}

.form-row .form-group{
    flex-basis: 45%;
}

input {
    width: 100%;
    border: none;
    color: rgb(238, 238, 238);;
    border-bottom: 1px solid rgb(238, 238, 238);
    outline: none;
    padding-bottom: 5px;
    background-color: rgb(28, 28, 28);
}

textarea {
    width: 100%;
    border: none;
    color: rgb(238, 238, 238);;
    border-bottom: 1px solid rgb(238, 238, 238);
    outline: none;
    box-sizing: content-box;
    background-color: rgb(28, 28, 28);
    margin-bottom: 10px;
    resize: vertical;
}

button {
    background: #5c5c5c;
    width: 100px;
    border: none;
    outline: none;
    color: rgb(238, 238, 238);
    height: 35px;
    border-radius: 30px ;
    margin-top: 20px;
    box-shadow: 0px 5px 15px 0px rgba(47, 47, 47, 0.3);
}

button:hover {
    background: #727272;
    cursor: pointer;
}

label {
    margin-bottom: 5px;
    display: block;
}

#services {
    margin: auto;
    align-self: center;
    text-align: center;
    line-height: 110%;
    width: 80vw;
    font-family: 'Oswald', sans-serif;
    font-size: 6.9vh;
    font-weight: 500;
}

#container {
    height: 23vw; 
    position:relative; 
    overflow:hidden;
  }


 /* #container:hover {
    overflow: auto;
 } */
 
 #container:hover .photobanner {
    animation-play-state:paused;
 }
  
  .photobanner {
    position:absolute; 
    top:0px; 
    left:0px; 
    overflow:hidden;
    white-space: nowrap;
    animation: bannermove 30s linear infinite;
  }
  
  .photobanner img {    
    margin: 0 0.5em; 
    height: 22.5vw;
    width: 15vw;
    object-fit: cover;
  }
  
  .photobanner a {    
    text-decoration: none;
  }
  
  @keyframes bannermove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-50%, 0);
    }
  }

  #previewimage img {
    max-width: 80%;
    align-items: center;
    margin: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

 #lightMode { /* Light Mode toggle Button */
    background: #5c5c5c;
    width: 30px;
    border: none;
    outline: none;
    color: rgb(238, 238, 238);
    height: 30px;
    border-radius: 30px ;
    margin-top: 20px;
    box-shadow: 0px 5px 15px 0px rgba(47, 47, 47, 0.3);

}


  /* =========== MOBILE =========== */

  @media only screen and (max-width: 769px) {
    /* For mobile phones: */
    [class*="form"] {
      width: 100%;
      display: block;
    }
    form {
        width: 100%;
    }

    section {
        margin-left: 4%;
        margin-right: 4%;
        width: 92%;
    }

    #blogpost {
        margin-left: 5%;
        margin-right: 5%;
        width: 90%;
    }

    .form-group {
        margin-bottom: 15px;
    }

    #services {
        font-size: 4vh;
    }

    #container {
        height: 40vw; 
        position:relative; 
        overflow:hidden;
    }

    .photobanner img {    
        margin: 0 0.1em; 
        height: 40vw;
        width: 26vw;
        object-fit: cover;
    }
  }

.light-mode {
    color: rgb(0, 0, 0);
    background: #ffffff;
}

.light-mode input {
    color: rgb(0, 0, 0);;
    border-bottom: 1px solid rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
}

.light-mode textarea {
    color: rgb(0, 0, 0);;
    border-bottom: 1px solid rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
}

.light-mode #previewimage img {
    box-shadow: 0px 5px 15px 0px rgba(47, 47, 47, 0.3);
  }

.light-mode .photobanner img {    
    margin: 0 0.5em; 
    height: 22.5vw;
    width: 15vw;
    object-fit: cover;
  }
