/* Style the body */
body {
 background-color: bisque;
  /* font-family: Arial, Helvetica, sans-serif;*/
  margin: 0;
 /* overflow-x: hidden;*/
 font-family: "Inter", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
 color: #1f2937;
   /*    background: #fff;*/
}

/* Header/logo Title */
header {
  padding: 80px;
  /*padding: clamp(2rem, 6vw, 6rem);*/
  text-align: center;
  background-color: rgb(80, 47, 4);
  color: white;
}

/* Increase the font size of the heading */
header h1 {
  font-size: 40px;
}

p{
  margin-bottom:1rem;
  max-width:110ch
}

p + p{
    margin-top:1rem;
}

.top-space1 {
margin-top:1rem;
}

.top-space2 {
margin-top:2rem;
}

.top-space3 {
margin-top:3rem;
}

.bottom-space1{
  margin-bottom:1rem;
}

.bottom-space2{
  margin-bottom:2rem;
}

.bottom-space3{
  margin-bottom:3rem;
}

section+section{
  margin-top:3rem;
}
/* Style the top navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap:wrap;
  background-color: goldenrod;
  position:sticky;
  top:0;
  z-index:1000; /*z-axis, to make sure the navigation always stays above the page content*/
}

/* Style the navigation bar links */
.navbar  a {    /* > added because of drop-down menu, meaning: applies only to direct children */
  color: white;
  /*text-align: center;*/
  padding: 14px 20px;
  text-decoration: none;
  display:block;
}

/* Change color on hover */
.navbar  a:hover {
  background-color:rgb(248, 238, 225)  ;/*rgb(214, 140, 88)*/
  color: black;
}

.navbar a:focus{
  outline:2px solid rgb(248, 238, 225) ;/*burlywood*/
}
/* this was supposed to replace inline css for the Home link, 
but it isn't the same
.home-link{
  margin-left: auto;
}
*/


/* Column container */
.container {
  display: flex;
  flex-wrap: wrap;
}

/* Create two unequal columns that sit next to each other */
/* Sidebar/left column */
aside {
  flex: 30%;
  background-color: bisque;
  padding: 20px;
}
  /* Main column */
  main {
    flex: 70%;
    background-color:rgb(248, 238, 225) ;/*rgb(214, 140, 88)*/
    padding: 20px;
  }

img{
  max-width: 100%;
  height:auto;
}
/*.slideshow-container and .mySlides descriptions are moved to a separate css file or are not needed at all*/
  
  .image-center {
    display:block; 
    margin:0 auto 10px auto;
    max-width: 100%;
    height: auto;
  }

  .contact-link {
    text-decoration: none;
    color: black;
    font-weight: bold;
    text-align:center;
  }
  
  .line-width1{
    max-width:180ch;
  }

  .line-width2 {
    max-width:70ch;
  }

  .display-none{
    display:none;
  }
/* Footer */
footer {
 display: flex; /**/
  justify-content: space-evenly;
  align-items: center;
  padding: 20px;
  /*text-align: center;*/
  background-color: rgb(80, 47, 4);
}

footer a{
    text-decoration: none;
  }

footer .b1{
  width: auto;
  padding: 10px 20px;
  background-color: rgb(80,47,4);
  color:white;
  border:none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition:background-color 0.3s ease;
}
footer .b1:hover {
  background-color: rgb(214, 140, 88);
}
footer .b1:focus{
  outline: 2px solid bisque;
}
footer .b1:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

footer .b1{
   cursor: pointer;
}

footer .b1{
  white-space: normal;
  word-break: break-word;
}

/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
  .container {
    flex-direction: column;
    
  }
/*
  aside,
  main{
    background-color: rgb(155, 8, 8);
  }
*/
  header {
    padding: 30px 15px;
  }

  header h1{
    font-size:28px;
  }
}

/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
@media screen and (max-width: 400px) { /* 500 instead of 349* in order to have 400px work*/

  .navbar{
 flex-direction: column;
 /* background-color: rgba(232, 200, 20, 0.732); */
  justify-content: flex-start;
  }
  .navbar a {
    display:block;
   text-align: left;
   /*align-self: stretch;*/
   /*align-items: stretch; only for flex containers*/
 }

  footer{
    display:flex;
    flex-direction: column;
    gap:10px;
    padding:40px;
     align-items: stretch;
  }

  footer a{
    text-decoration: none;
  }

  footer .b1{
    width:100%;
    /*width:auto;*/
  }
}

/*modal styling for login - .modal, .modal-content, .close*/
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.5); 
  border:green;
  color:green;
}

.modal-content {
  /*background-color: #fefefe;*/
  background-color: blanchedalmond;
  margin: 10% auto; 
  padding: 20px;
  border: 1px solid #888;
  width: 300px; 
  border-radius: 8px;
  position: relative;
}


.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

#authMsg {
  position: fixed;
  top: 20px;
  right: 20px;

  background-color: rgb(80, 47, 4);
  color: bisque;
  border: 2px solid goldenrod;

  padding: 12px 18px;
  border-radius: 8px;

  font-weight: bold;

  box-shadow: 0 4px 10px rgba(0,0,0,0.25);

  opacity: 0;
  transform: translateY(-10px);

  transition: 0.3s ease;

  z-index: 2000;
}

#authMsg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
   Mobile idiom accordion
========================== */

.mobile-idiom-list {
    display: none;
    margin-top: 20px;
}


.mobile-idiom-list h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}


.idiom-question {
    width: 100%;
    text-align: left;
    padding: 12px 15px;

    /*background: #3b6ea8;*/
    background:burlywood ;
    color: white;

    border: none;
    border-radius: 8px;

    font-size: 1rem;
    cursor: pointer;

    margin-bottom: 3px;
}


.idiom-question::before {
    content: "▶ ";
}


.idiom-question.active::before {
    content: "▼ ";
}


.idiom-answer {

    max-height: 0;
    overflow: hidden;

    /*background: #f5f5f5;*/
    background-color: rgb(248, 238, 225);

    padding: 0 15px;

    border-radius: 0 0 8px 8px;

    transition: max-height 0.3s ease,
                padding 0.3s ease;
}


.idiom-answer p {
    margin: 10px 0;
}


/* Mobile only */

/*show translations on the mobile*/

@media (max-width: 768px) {

    .mobile-idiom-list {
        display: block;
    }

}
/*Display a message how to see translation on the image on desktop
only*/
.desktopImage-only {
  display: block;
  text-align:center;
}

@media (max-width: 768px) {
  .desktopImage-only {
    display: none;
  }
}
.font-italic{
  font-style:italic;
}
/*Arrange elements in navbar in two rows on the mobile
these 3 lines added to .navbar near the top:
.navbar{
  display: flex;
  flex-wrap: wrap;
  align-items:center;
}
*/

/* ===== Navbar ===== */

.home-link{
    margin-left:0;
}

.navbar-tools{
    display:flex;
    align-items:center;
    width:100%;
}

.dropbtn{
  background-color: goldenrod;
}
.dropbtn:hover{
  background-color:rgb(248, 238, 225);
  color:black;
}

.dropdown-content{
  background-color: rgb(214, 140, 88);/* */
}

#authButtons{
    display:flex;
    align-items:center;
    margin-left:auto;
}

.lang-buttons{
    display:flex;
    gap:6px;
    margin-left:12px;
    background-color: goldenrod;
}

@media (max-width:768px){

    .navbar-tools{
        flex-wrap:wrap;
    }

    #authButtons{
        order:1;
        width:100%;
        justify-content:flex-end;
        margin-left:0;
        margin-bottom:8px;
    }

    .go-bottom{
        order:2;
    }

    .home-link{
        order:3;
    }

    .dropdown{
        order:4;
    }

    .lang-buttons{
        order:5;
        margin-left:auto;
    }

}
