/* Modern box model - taken from my last course on html, was told not to change it*/
html {
    box-sizing: border-box;
  }
  
  *,
  *:before,
  *:after {
    box-sizing: inherit;
  }

  /* basics for h1, h2, p texts */
  html {
    font-size: 62.5%; /* sets the base font size to 10px */
  }
  
  h1 {
    font-size: 8rem; 
    color: black;
    text-align: center;
  }
  
  h2 {
    font-size: 4.8rem;
    color: black;
    text-align: center;
  }
  
  h3 {
    font-size: 2.7rem;
  }

  h4 {
    font-size: 2rem;
  }
  
  p {
    font-size: 1.8rem; 
  }
  

  h1, h2, h3, h4, p {
    font-family: Arial, Helvetica, sans-serif;
  }

  /* clicked links */
  a:visited {
    color: #A80049; /* set the color of visited links to a darker gray */
  }

  a:link {
    color: black; /* set the color of non-visited links to black */
  }
  

  /* NAVIGATION BAR settings */
  /* source bootstrap: https://getbootstrap.com/docs/5.3/components/navbar/ */

  .navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none; /* removes default bullet-points on list */
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-item {
    margin-right: 30px !important; /* increase spacing between links */
  }

  .nav-link {
    color: #000 !important;
    text-decoration: none !important; /* remove underline */
    padding: 8px 16px;
    text-transform: uppercase;
    font-size: 2rem;
  }

  .nav-link.active {
    color: #fff !important; /* set active link text color to white */
    background-color: darkgrey;
    border-color: #333;
  }

  .nav-link:hover {
    color: #000 !important; /* set link color to black on hover */
  }

  /* FOOTER */
  footer {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
  }
  
  .copyright-year {
    font-weight: bold;
  }

  /* ABOUT page*/

  /* setting for the color block background */

  .color-about {
    background-color: #76c893;
    width: 100%; /* width 100% to fill the whole screen */
    height: 300px; 
    display: flex; 
    align-items: center; /* center the text vertically */
    justify-content: center; /* center the text horizontally */
    box-sizing: border-box; 
    padding-top: 30px; 
  }
  
  .color-about h2 {
    margin: 0; /* remove default margin */
  }
  
  /* text on About page */
  .container-about {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 50px;
    margin-bottom: 50px;
  }
  
  .text-about {
    text-align: center;
  }
  
  .text-about h3 {
    margin-bottom: 20px;
  }
  
  .text-about p {
    margin-bottom: 10px;
    text-align: justify;
  }
  
  .text-about strong {
    font-weight: bold;
  }
  
  .container-about-me {
    max-width: 1000px; /* making container bigger then the other ones so the picture fits better */
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
  }
  
  .text-about-me {
    text-align: left;
    margin-left: 20px; /* add spacing between the image and the text */
  }
  
  .text-about-me h3 {
    margin-bottom: 20px;
  }
  
  .text-about-me p {
    margin-bottom: 10px;
    text-align: justify;
  }
  
  .text-about-me strong {
    font-weight: bold;
  }
  
  .photo-about-me img {
    width: 350px;
    height: auto;
    border-radius: 50% / 30%; /* making it oval */
  }  

  /* TRAVEL page */
  .color-travel {
    background-color: #52b69a; 
    width: 100%; 
    height: 300px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-sizing: border-box; 
    padding-top: 30px; 
  }
  
  .color-travel h2 {
    margin: 0;
  }
  
  .travel h3 {
    margin-top: 50px; 
    text-align: center;
  }

  /* photos on travel page*/
  .photo-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .photo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 40px;
  }
  
  .photo-container {
    position: relative;
    width: calc(50% - 10px);
    margin: 10px;
    box-sizing: border-box;
  }
  
  .photo-title-container {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: center;
    width: 100%;
  }
  
  .photo-title {
    margin: 0;
  }
  
  .photo-container img {
    width: 100%;
    height: auto;
    display: block;
  }
  

  /* BUDAPEST PAGE*/
  .color-budapest h2 {
    background-image: url('photos/budapest_cover.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    width: 100%;
    padding-top: 30px; 
    box-sizing: border-box;
    text-align: center; 
    color: white; 
  }

  .budapest-gallery h3,
  .budapest-gallery p {
    text-align: justify;
    margin-left: 280px;
  }

  /* photo gallery */
  .photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
  }

  .photo-container img {
    width: auto;
    height: 300px; /* set a fixed height for the images */
    object-fit: cover; /* ensure the entire image is displayed and maintain its ratio */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    margin: 0 10px;
  }
  
  .photo-container img:hover {
    transform: scale(1.1);
    cursor: pointer;
  }
  
  .budapest-text1, .budapest-budget, .budapest-video {
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 5px; 
    text-align: justify; 
  }
  
  .budapest-text1 h3, .budapest-budget h3, .budapest-video h3 {
    text-align: justify; 
    margin-bottom: 20px;
  }

  /* table of budgetting */
  table {
    border-collapse: collapse; 
    width: 100%; 
  }
  
  th, td {
    border: 1px solid black; /* add a 1px solid black border to all cells */
    padding: 8px; 
    text-align: left;
    font-size: 1.8rem;
  }
  
  th {
    background-color: #f2f2f2; 
    font-weight: bold; 
  }
  
  tr:last-child {
    background-color: #f2f2f2; 
  }

  /* video */
  .video-container {
    position: relative;
    width: 100%;
    height: auto;
  }
  
  .video {
    width: 100%;
    height: auto;
  }
  
  /* CONTACT PAGE */
  .color-contact {
    background-color: #37AAAE; 
    width: 100%; 
    height: 300px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-sizing: border-box; 
    padding-top: 30px; 
    margin-bottom: 50px;
  }
  
  .color-contact h2 {
    margin: 0;
  }

  .container-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
  }
  
  .box-socials, .box-address {
    flex: 1;
    text-align: center;
    background-color: #f5f5f5;
    padding: 30px;
    margin: 0 auto;
    max-width: 550px;
    height: 450px;
  }
  
  .box-socials p {
    margin: 0;
    line-height: 1.5;
    text-align: justify;
  } 

  .box-socials p {
    margin: 0;
    line-height: 1.5;
    text-align: center;
  }

  .box-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .adress p {
    text-align: center;
  }

  .address-text p {
    text-align: justify;
  }
  
  .box-socials i, .box-address i {
    margin-right: 10px;
  }


  /* form */
  .form-contact {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  
  .form-contact h3 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .form-contact fieldset {
    text-align: left;
  }
  
  .form-contact label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.4rem;
  }
  
  .form-contact input[type="text"],
  .form-contact input[type="email"],
  .form-contact textarea {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
  }
  
  .form-contact .btn {
    margin-right: 10px;
  }

  .form-contact legend {
    font-size: 1.8rem;
  }
  