@charset "UTF-8";
/* CSS Document */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
header {
  background-color: #333;
  color: white;
  padding: 10px;
}
nav ul {
  list-style-type: none;
  padding: 0;
}
nav ul li {
  display: inline;
  margin-right: 10px;
}
nav ul li a {
  color: white;
  text-decoration: none;
}
/*=============================page 1 starts here*/
.flex-container {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  margin: 20px;
}
/* Image containers */
.image-container {
  height: 400px;
  padding: 15px;
  box-sizing: border-box;
}
.width100-cont {
  width: 100%;
}
.width50-cont {
  width: 50%
}
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/*=============================page 3 starts here*/
.square {
  background-color: #ccc;
}


/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .flex-container {
    flex-direction: column;
  }
    
  .image-container {
    width: 100%;
    margin-bottom: 20px;
  }
    
  .flex-container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
  }
    
  .grid {
    display: grid;
    grid-template-columns: auto;
    grid-auto-rows: 200px;
    gap: 10px;
  }
  
}


/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    
    .grid {
    display: grid;
    grid-template-columns: auto;
    grid-auto-rows: 200px;
    gap: 10px;
  }
    
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .flex-container {
    display: flex;
    justify-content: center;
  }
    
  /* Grid layout */
  .grid {
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-auto-rows: 200px;
    gap: 10px;
  }
  .width25 {
    width: calc(50% - 10px);
  }
    
    /* Big rectangle */
  .bigrect {
    display: flex;
    flex-direction: column;
    width: 50%;
  }
    
  /* Medium rectangle */
  .medium {
    display: flex;
    flex-direction: column;
    height: 200px;
  }
    
  /* Small rectangle */
  .small {
    width: 50%;
    height: 100px;
  }
    
  /* Images inside rectangles */
  .bigrct img {
    max-width: 50%;
    max-height: 640px;
  }
    
}