/* || general styles */

html {
    font-family: 'helvetica neue', helvetica, arial, sans-serif;
    color: white;

  }
  
  body {
    max-width: 792px;
    margin: 0 auto;
    margin-top: 1em;
    margin-bottom: 1em;

    border: 1px solid #ccc;
    background-color: black;
    padding-top:1em;
  }
 
  @media (width <= 800px) {
    body {
      border:0;
      margin-top: 0;
      
    }
  }


  /* header styles */
  
  h1 {
    font-size: 1.7rem;
    text-align: center;
  }
  
  h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    margin-top: 40px;
  }

  a {
    color: #18B6FC;
    text-decoration: none;
    font-weight: bold;
  }

  a:hover {
    text-decoration: underline;
  }

  /* Form styles from https://developer.mozilla.org/en-US/docs/Learn/Forms/Your_first_form   */
  
form {
  display: flex;
  justify-content: center;
  width: 100%;
  /* Form outline */
  padding-top: 1em;
  padding-bottom: 1em;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

form li + li {
  margin-top: 1em;
}

label {
  /* Uniform size & alignment */
  display: inline-block;
  min-width: 150px;
  text-align: right;
  padding-right: 0.5em;
}

input,
select,
textarea {
  /* To make sure that all text fields have the same font settings
     By default, textareas have a monospace font */
  font: 1em sans-serif;
  /* Uniform text field size */
  width: 170px;
  box-sizing: border-box;
  /* Match form field borders */
  border: 1px solid #999;
}

input:focus,
textarea:focus {
  /* Additional highlight for focused elements */
  border-color: #000;
}

textarea {
  /* Align multiline text fields with their labels */
  vertical-align: top;
  /* Provide space to type some text */
  height: 5em;
}

.button {
  /* Align buttons with the text fields */
  padding-left: 90px; /* same size as the label elements */
  
}

button {
  /* This extra margin represent roughly the same space as the space
     between the labels and their text fields */
  margin-left: 0.5em;
  margin-top:0.75em;
  padding: 0.35em;
  width: 150px;
}

/* Results table as div */

.search_results {
  padding-left:16px;
  padding-right:16px;

  margin-bottom:12px;
  margin: 0 auto;
  max-width: 720px;

}

.search_result {
  1border-top: 1px solid #cccccc;
  padding-top:16px;
  padding-bottom:32px;
}

.search_result_images_container {
  display: grid;
  grid-template-columns: repeat(auto-fill, 352px);
  grid-template-rows: repeat(auto-fill, 352px);
  grid-gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.search_result_big_image_grid_cell {
  min-height:352px;
  min-width:352px;
  place-items: center;

}

.search_result_big_image_container {
  display: grid;
  place-items: center;
  background: #ffffff;
}

.search_result_main_image {
  max-width:100%;
  max-height:352px;
}

.search_result_small_images_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 171px);
  grid-template-rows: repeat(auto-fill, 171px);
  grid-gap: 10px;  

}

.search_result_small_images_grid_cell {
  display: grid;
  place-items: center;
  min-width:171px;
  min-height:171px;

  background: #ffffff;
}

.search_result_small_image {
  max-width: 100%;
  max-height:120px;
}

.search_result_title
  {
    font-size:22px;
  }

  .search_result_explicit_link {
    text-decoration: underline;
    font-size: 16px;
  }

.search_result_table {
  display: table;
  margin-top:0.5em;
}

.search_result_table_row {
  display: table-row;
}

.search_result_table_label {
  display: table-cell;
  color: #cccccc;
  padding-right: 0.5em;
  padding-top:0.3em;
  padding-bottom:0.3em;
}

.search_result_table_data {
  display: table-cell;
}




