*, *:before, *:after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  /* ... existing background styles ... */
    background-image: url('images/bg.jpg'); 
    background-size: cover; 
    background-attachment: fixed; 
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #ffffff; 
    
    margin: 0; 
    padding: 0;
    min-height: 100vh;
    font-size: 12px;
}

body, button, input {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 1.4px;
}

h1 {
  color: #ffb600;
}

h3 {
  color: #ffb600;
}

.app-logo {
  width: 200px; /* Sets a fixed width of 300 pixels */
  height: 60px; /* Sets a fixed height of 200 pixels */
}

.background {
  display: flex;
  min-height: 80vh; /* center page */
}

.container {
  flex: 0 1 700px;
  margin: auto;
  padding: 10px;
}

.screen {
  position: relative;
  background: #3e3e3e;
  border-radius: 15px;
}

.screen:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  bottom: 0;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
  z-index: -1;
}

.screen-header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: #4d4d4f;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.screen-header-left {
  margin-right: auto;
}

.screen-header-button {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 3px;
  border-radius: 16px;
  background: white;
}

.screen-header-button.close {
  background: #ed1c6f;
}

.screen-header-button.maximize {
  background: #e8e925;
}

.screen-header-button.minimize {
  background: #74c54f;
}

.screen-header-right {
  display: flex;
}

.screen-header-ellipsis {
  width: 3px;
  height: 3px;
  margin-left: 2px;
  border-radius: 8px;
  background: #999;
}

.screen-body {
  display: flex;
}

.screen-body-item {
  flex: 1;
  padding: 50px;
}

.screen-body-item.left {
  display: flex;
  flex-direction: column;
}

.app-title {
  display: flex;
  flex-direction: column;
  position: relative;
  color: #ffb600;
  font-size: 26px;
}

.app-title:after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 25px;
  height: 4px;
  background: ffb600;
}

.app-contact {
  margin-top: auto;
  font-size: 8px;
  color: #888;
}

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

.app-form-group.message {
  margin-top: 40px;
}

.app-form-group.buttons {
  margin-bottom: 0;
  text-align: right;
}

.app-form-control {
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  border-bottom: 1px solid #666;
  color: #ddd;
  font-size: 14px;
  text-transform: uppercase;
  outline: none;
  transition: border-color .2s;
}

.app-form-control::placeholder {
  color: #666;
}

.app-form-control:focus {
  border-bottom-color: #ddd;
}

.app-form-button {
  background: none;
  border: none;
  color: #ffb600;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.app-form-button:hover {
  color: #ffb600;
}

.credits {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  color: #ffb600;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: normal;
}

.credits-link {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.dribbble {
  width: 20px;
  height: 20px;
  margin: 0 5px;
}

@media screen and (max-width: 520px) {
  .screen-body {
    flex-direction: column;
  }

  .screen-body-item.left {
    margin-bottom: 30px;
  }

  .app-title {
    flex-direction: row;
  }

  .app-title span {
    margin-right: 12px;
  }

  .app-title:after {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .screen-body {
    padding: 40px;
  }

  .screen-body-item {
    padding: 0;
  }
}

.thumbnail-container {

  border-radius: 15px;
/* 1. Set a defined width */
  /* This width is crucial; it must be less than 100% so there is space to center it. */
  width: 60%; /* Example: The container will take up 80% of the page width */
  
  /* 2. Use auto margins for centering a block element */
  margin-left: auto;
  margin-right: auto;
  
  /* Retain the scrolling properties from before */
  overflow-x: auto; 
  padding: 10px 20px; 
  scroll-behavior: smooth;
  /* ... other properties ... */
  
  /* **Crucial for horizontal scrolling:** Hides content that overflows horizontally */
  overflow-x: auto; 
  
  /* Optional: Smoother scrolling on some browsers/devices */
  scroll-behavior: smooth;
  
  /* Optional: Hide the scrollbar but keep functionality (for a cleaner look) */
  /* For Webkit browsers (Chrome, Safari, etc.) */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Optional: Hiding the scrollbar for Webkit */
.thumbnail-container::-webkit-scrollbar {
    display: none; 
}

/* List that holds all the thumbnails */
.thumbnail-list {
  /* **Crucial for horizontal layout:** Ensures all list items stay on one line */
  white-space: nowrap; 
  
  /* Remove default list styles */
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual thumbnail item */
.thumbnail-list li {
  /* **Crucial for horizontal layout:** Makes items sit side-by-side */
  display: inline-block; 
  
  /* Spacing between thumbnails */
  margin-right: 10px; 
}

/* The hyperlink wrapping the image */
.thumbnail-link {
  /* Remove default text decoration from the link */
  text-decoration: none;
  display: block;
}

/* The image itself (the thumbnail) */
.thumbnail-list img {
  /* Define the size of your thumbnails */
  width: 100px; /* Example width */
  height: 100px; /* Example height */
  
  /* **Best Practice:** Ensures images fill the specified dimensions without distortion */
  object-fit: cover; 
  
  /* Optional: Add a subtle border or rounded corners */
  border: 2px solid #ccc;
  border-radius: 5px;
  
  /* Optional: Transition for hover effects */
  transition: transform 0.2s, border-color 0.2s;
}

/* Hover effect for a better user experience */
.thumbnail-list img:hover {
  border-color: #ffb600; /* Change border color on hover */
  transform: scale(1.05); /* Slightly enlarge the image */
  cursor: pointer;
}
