@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');
:root {
   font-family: 'Montserrat', sans-serif;
   --primary-color: #584236;
}
body {
   width: 100%;
   height: 100%;
   margin: 0;
   padding: 0;

   background-color: var(--primary-color);
   color: white;
}

/* Test ----------------------------------------------------------------------------------- */
header {
   width: 100%;
   height: 190px;

   box-sizing: border-box;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;

   background-color: #423228;
   color: #d2c0b6;
}

h1 {
   text-align: center;
   text-transform: uppercase;
   font-size: 65px;
}
h2 {
   text-transform: uppercase;
   text-align: center;
   font-size: 14px;
}

.test {
   max-width: 1300px;
   margin: 0 auto;
   padding: 40px 20px 20px 20px;
   position: relative;
}

/* .input-data,
.second-display {
   padding: 10px;
} */

#showButton {
   display: block;
   margin: 0 auto;
}

.empty-result {
   color: #a98773;
   font-size: 18px;
   display: inline-block;
   margin: 0px 0px 0px 14px;
}

.display-result {
   display: none;
}

.display-result.export {
   background-color: #423228;
   display: flex;
   justify-content: space-evenly;
   flex-wrap: wrap;
}

.up-btn-body {
   position: fixed;

   right: 24px;
   bottom: 12px;
   background-color: #4f0335;
   width: 57px;
   height: 57px;
   border-radius: 8px;
   display: none;
   justify-content: center;
   align-items: center;
}
.up-btn-body.show {
   display: flex;
}
.up-btn-body:hover,
.up-btn-body:active {
   background-color: #6a2447;
}

.up-btn-body a {
   display: inline-block;
   text-decoration: none;
   font-size: 50px;

   padding: 10px 10px 15px 10px;
   color: #d2c0b6;
}

.form-first-row {
   display: flex;
   justify-content: space-around;
   align-items: center;
   margin: 0px 0px 40px 0px;
}

.decorated {
   -webkit-box-shadow: 2px 2px 6px 1px rgba(71, 20, 100, 0.7);
   box-shadow: 2px 2px 6px 1px rgba(71, 20, 100, 0.7);
   width: 20%;
   margin: 0px 2% 0px 0px;
}

.decorated:focus,
.decorated:active {
   -webkit-box-shadow: 2px 2px 6px 1px rgba(192, 82, 255, 0.7);
   box-shadow: 2px 2px 6px 1px rgba(192, 82, 255, 0.7);
   width: 20%;
   margin: 0px 2% 0px 0px;
}

.decorated:last-child {
   margin: 0px;
}

.input-data {
   text-align: center;
}

.form-label {
   margin: 0px 0px 0px 0px;
}

.display-result__item {
   width: 25%;
   min-width: 200px;
   min-height: 200px;
   padding: 10px;
   box-sizing: border-box;
   position: relative;
}

.display-result__item > img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}
.item-logo {
   width: 140px;
   height: 50px;
   outline: 2px solid #d2c0b6;
   color: #d2c0b6;
   background-color: rgb(20, 19, 19, 0.8);
   position: absolute;
   left: 50%;
   top: 50%;
   transform: translate(-50%, -50%);
   display: none;
   justify-content: center;
   align-items: center;
   cursor: pointer;
   z-index: 1;
}

.display-result__item:hover .item-logo {
   display: flex;
}
.item-logo p {
   padding: 0;
   margin: 0;
   font-size: 18px;
   font-weight: 700;
   text-transform: uppercase;
}
.item-popup {
   visibility: hidden;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   background-color: rgb(19, 18, 18, 0.9);
   z-index: 2;
   display: flex;
   flex-direction: column;
   justify-content: space-evenly;
   align-items: center;
}
.close-pop {
   position: fixed;
   width: 50px;
   height: 50px;
   top: 14px;
   right: 14px;
   z-index: 3;
   margin: 0;
   padding: 0;
}
.close-pop div {
   display: block;
   background-color: #fff;
   width: 40px;
   height: 4px;
   margin: 0 !important;
   padding: 0 !important;
   position: absolute;
   top: 50%;
   left: 50%;
}
.close-pop:hover div {
   background-color: #d2c0b6;
}
.close-pop div:first-child {
   transform: translate(-50%, -50%) rotate(45deg);
}
.close-pop div:last-child {
   transform: translate(-50%, -50%) rotate(-45deg);
}

.item-popup.showpop {
   visibility: visible;
}
.item-popup-image {
   padding: 20px 0px 0px 0px;
   height: 80%;

   /* margin: 0 auto; */
}
.item-popup-image img {
   height: 100%;
   /* width: 100%; */
   object-fit: scale-down;
}
.scroll-lock {
   overflow: hidden;
}

.load-more {
   display: none;
}

.load-more.show {
   display: inline-block;
}

select option {
   background: rgb(216, 201, 201);
   color: rgb(66, 50, 50);
   box-shadow: inset 20px 20px rgb(31, 28, 28);
}

.btn2,
.load-more.show {
   background-color: #4f0335;
   color: #d2c0b6;
   padding: 15px 30px;
   font-size: 18px;
   border: none;
   border-radius: 10px;
}

.btn2:active,
.btn2:hover,
.load-more.show:active,
.load-more.show:hover {
   background-color: #6a2447;
   border: none;
   outline: none;
}

@media (max-width: 770px) {
   header {
      padding: 0px 20px;
   }

   .display-result__item {
      width: 50%;
      min-width: 250px;
      min-height: 250px;
      padding: 10px;
      box-sizing: border-box;
   }

   #rovers {
      width: 20%;
   }

   #cameras {
      width: 16%;
   }

   #sol {
      width: 10%;
   }
}

@media (max-width: 760px) {
   header {
      height: 150px;
      padding: 20px 20px 10px 20px;
   }

   h1 {
      font-size: 35px;
   }
   h2 {
      font-size: 12px;
   }

   label,
   option {
      font-size: 14px;
   }
   .sol-discription {
      font-size: 14px;
      margin-bottom: 30px;
   }
}

@media (max-width: 545px) {
   .test {
      padding: 0px;
   }

   .input-data {
      padding: 12px;
   }

   .form-first-row {
      display: block;
      margin: 0;
   }

   .display-result__item {
      width: 100%;
      padding: 12px;
      box-sizing: border-box;
   }

   .decorated,
   #rovers,
   #cameras,
   #sol {
      width: 100%;
      margin-bottom: 14px;
   }

   .sol-discription {
      font-size: 13px;
      margin-bottom: 25px;
   }

   .display-result,
   .load-more {
      margin-bottom: 0px !important;
   }

   .btn2 {
      margin-bottom: 12px !important;
   }

   .second-display {
      padding: 12px;
   }

   .empty-result {
      display: block;
   }

   .item-logo {
      display: flex;
   }

   .item-popup-image {
      padding: 20px 0px 0px 0px;
      width: 98%;
   }
   .item-popup-image img {
      width: 100%;
      max-width: 100%;
      object-fit: contain;
   }
} ;
