/*--------------------------------------Header-------------------------------------------------*/
.luxurious-roman-regular {
  font-family: "Luxurious Roman", serif;
  font-weight: 400;
  font-style: normal;
}

.xcenteritem {
  margin-top: 40px;
}
.space {
  margin-bottom: 40px;
}
body {
  background: #dca948;
}
h1 {
  color: #ffffff;
  margin-top: 40px;
}
.line {
  text-align: center;
  color: #ffffff;
  margin-top: -8px;
  background: black;
  padding-top: 4px;
  padding-bottom: 4px;
  margin-left: 42%;
  margin-right: 42%;
}
.linemarg {
  text-align: center;
  /*margin-top: -5px;*/
  color: #ffffff;
  background: black;
  padding-top: 4px;
  padding-bottom: 4px;
  margin-left: 42%;
  margin-right: 42%;
}
.pageHeader {
  text-align: center;
  margin-top: 5px;
  margin-left: 3%;
}
header {
  background-image: url(../Images/backgroundC.jpg);
  line-height: 8px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-weight: 900;
  margin-left: 0;
  margin-right: 0;
  margin-top: -5px;
  margin-bottom: -16px;
  background-image: (image);
  background-repeat: no-repeat;
  background-size: cover;
}
.logo {
  width: 275px;
  height: 220px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}
.moveA {
  text-align: center;
  background-color: #000000;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 4px;
  margin-top: -4px;
  padding-left: -8px;
}
.moveAA {
  text-align: center;
  background-color: #dca948;
  /*margin-left: 4px;*/
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 4px;
  margin-top: -4px;
  margin-left: 20%;
  margin-right: 20%;
}

/*----------------------Flex area Header---------------------------*/
.flex-containerB {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  color: black;
}
/*.flex-itemB {
  padding: 10px 0.05em;
  margin-left: 20px;
  justify-content: center;
  margin-top: 7%;
  margin-left: 85px;
}*/
/*.flex-itemD {
  justify-content: center;
  margin-top: 7%;
  margin-right: 60px;
}*/
.flex-itemC {
  justify-content: center;
  align-items: center;
}

/*---------------------------------------Nav Bar-----------------------------------------------------*/
.newcolor {
  color: black;
}
nav {
  background: black;
  padding-top: 0%;
}
nav a:link {
  color: black;
  background-color: #ffffff;
  border-radius: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 4px;
  padding-right: 4px;
  margin-left: 30px;
  margin-right: 30px;
  text-decoration: none;
  font-weight: 800;
}
/*-----------------------------------------Flex container for nav bar and footer-----------------------*/
.flex-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  align-items: center;
}
.flex-item {
  padding: 10px;
}
/*------------------------------------------------------main------------------------------------------*/
.back1 {
  /*background: #d2a244;*/
  background: #dca948;
}
.birth {
  text-align: center;
}
.birthch {
  text-align: center;
  margin-left: 42%;
  margin-right: 42%;
  color: #383737;
}
.chall {
  text-align: center;
  color: #383737;
  /*color: #4e4d4d;*/
  margin-top: -8px;
  /*margin-bottom: 8px;*/
  padding-top: 4px;
  padding-bottom: 4px;
  margin-left: 42%;
  margin-right: 42%;
}

.htwo {
  margin-top: 20px;
  background: #ffffff;
  border: solid black;
  color: #000000;
  border-radius: 8px;
  margin-left: 38%;
  margin-right: 35%;
  background-repeat: no-repeat;
}
h2 {
  text-align: center;
}
h3 {
  text-align: center;
}
main {
  background: #ffffff;
}
.border5 {
  background: #ffffff;
  border: 4px solid black;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  margin-top: 10px;
}
.border {
  background: black;
  margin-left: 10%;
  margin-right: 10%;
  margin-bottom: 50px;
}
.border4 {
  display: flex;
  justify-content: center;
}

.border3 {
  width: 50%; /* Must define a width or max-width */
  margin: 0 auto; /* Centers horizontally */
  background: black;
  margin-left: 10%;
  margin-right: 10%;
  margin-bottom: 50px;
  padding-left: 1px;
  padding-right: 1px;
  align-items: center;
  text-align: center;
}

.border2 {
  background: #ffffff;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 10px;
  padding-top: 55px;
  padding-bottom: 55px;
}
legend {
  border: solid black;
  background: white;
}
.button {
  list-style-type: none;
  text-align: center;
}

table {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 50%; /* Optional: defines how much space the table takes */
}
/*-------------------------Cars for sale-----------------------------*/
.sizeC {
  width: 600px;
  height: 325px;
  margin-left: 27%;
}
.flex-sale {
  display: flex;
  flex-direction: column;
  list-style: none;
  justify-content: center;
  align-items: center;
  height: 60vh;
}
.sizeCC {
  justify-content: center;
  align-items: center;
  margin-left: 27%;
  width: 600px;
  height: 325px;
}
/*-------------------------form spacing-----------------------------*/
.spc1 {
  margin-top: 10px;
  margin-right: 15px;
}
.flex-inven {
  display: flex;
  flex-direction: row;
  list-style: none;
  justify-content: center;
  align-items: center;
  /*height: 60vh;*/
}
.dis {
  margin-left: 7px;
  margin-right: 7px;
}

/*----------------------------------------------------Footer-------------------------------------------*/
footer {
  background: black;
  padding-top: 8px;
  padding-bottom: 3px;
}

footer a:link {
  color: white;
  text-decoration: underline;
  border-radius: 3px;
  padding-top: 8px;
  padding-bottom: 5px;
  padding-left: 4px;
  padding-right: 4px;
  margin-left: auto;
  margin-right: auto;

  font-weight: 800;
}
.cope {
  text-decoration: underline;
  color: white;
  font-weight: 400;
  font-style: italic;
  font-family: "Cardo";
}
/*----------------------------------------------------@Media for responsiveness-------------------------------------------*/
@media (max-width: 1111px) {
  .line {
    margin-left: 35%;
    margin-right: 35%;
  }
  .sizeCC {
    margin-left: 20%;
  }
}
@media (max-width: 1000px) {
  .sizeC {
    width: 500px;
    height: 225px;
  }
  .sizeCC {
    width: 500px;
    height: 225px;
  }
  .topZ {
    margin-top: -20px;
  }
  .margA {
    margin-top: -15%;
  }
  .flex-sale {
    margin-bottom: -15%;
  }
}
@media (max-width: 899px) {
  .sizeC {
    margin-left: 22%;
  }
}
@media (max-width: 830px) {
  .sizeC {
    width: 400px;
    height: 175px;
    margin-top: -50px;
  }
  .sizeCC {
    width: 400px;
    height: 175px;
  }
  .flex-sale {
    margin-bottom: -30%;
  }
}
@media (max-width: 756px) {
  .linemarg {
    margin-left: 35%;
    margin-right: 35%;
  }
  .line {
    margin-left: 31%;
    margin-right: 31%;
  }
}
@media (max-width: 675px) {
  .sizeC {
    width: 320px;
    height: 175px;
  }
  .sizeCC {
    width: 320px;
    height: 175px;
  }
}
@media (max-width: 615px) {
  .htwo {
    font-size: 20px;
  }
  /*.sizeC {
    width: 255px;
    height: 120px;
  }*/
  .sizeC {
    width: 320px;
    height: 175px;
    margin-top: 15px;
  }
  .margB {
    margin-top: -3px;
  }
  .sizeCC {
    width: 320px;
    height: 175px;
  }
  .margA {
    margin-top: -50%;
  }
  .flex-sale {
    margin-bottom: -50%;
    margin-left: -28px;
  }
  .flex-inven {
    flex-direction: column;
  }
  .spc1 {
    margin-left: -25px;
  }
  .margB {
    font-size: small;
  }
}
@media (max-width: 560px) {
  .sizeC {
    margin-left: 20%;
  }
  .border3 {
    margin-left: -3%;
    margin-right: 12%;
  }
}
@media (max-width: 505px) {
  .line {
    margin-left: 30%;
    margin-right: 30%;
  }
  .linemarg {
    margin-left: 30%;
    margin-right: 30%;
  }
  .sizeC {
    width: 200px;
    height: 100px;
  }
  /*.sizeCC {
    width: 200px;
    height: 85px;
  }*/
  .margA {
    margin-top: -90%;
  }
  .flex-sale {
    margin-bottom: -80%;
  }
}
@media (max-width: 452px) {
  .line {
    margin-left: 25%;
    margin-right: 25%;
  }
  .htwo {
    font-size: 15px;
    margin-left: 25%;
    margin-right: 25%;
  }
  .border2 {
    padding-left: -20%;
    margin-left: 4px;
  }
  .sizeC {
    width: 214px;
    height: 111px;
  }
  .sizeCC {
    margin-left: 10%;
  }
}
@media (max-width: 416px) {
  .sizeC {
    margin-left: 22%;
  }
}
@media (max-width: 406px) {
  .margA {
    margin-left: -10px;
  }
  .flex-sail {
    margin-left: -10px;
  }
  .border {
    margin-left: 2%;
  }
  .sizeCC {
    margin-left: 5%;
  }
  .margB {
    margin-bottom: -20px;
  }
  .sizeC {
    width: 214px;
    height: 145px;
    margin-top: -5px;
    margin-left: 24%;
  }
}

@media (max-width: 365px) {
  .line {
    margin-left: 18%;
    margin-right: 18%;
  }
  .linemarg {
    margin-left: 25%;
    margin-right: 25%;
  }
  .flex-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
  }
  .pageHeader {
    font-size: 30px;
  }
  .sizeC {
    width: 220px;
    height: 175px;
    margin-top: -5px;
  }
}
