/* styles.css — Shared stylesheet for all Shakespeare site pages */

/* Box model reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Assistant', sans-serif;
  direction: rtl;
  background-color: #f8f8f8;
  color: #222;
  font-size: 1.1em;
}


.playpen-sans-hebrew-semibold {
  font-family: "Playpen Sans Hebrew", cursive;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.playpen-sans-hebrew-regular {
  font-family: "Playpen Sans Hebrew", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

header {
  background-color: #325c37;
  color: white;
  padding: 1rem 2rem;
  background-image: url(https://shakespeare.co.il/images/diagonal-greens.jpg);
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 1.7rem;
}

header p {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  color: #d4eed5;
}

.header-text a {
  text-decoration: none;
  color: #fff;
}

.container .header-wrapper {
	padding-right: 120px;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-right: 120px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}



.header-text {
	text-shadow: 2px 2px 5px darkslategray;
  flex: 1;
}

nav {
  background-color: #758c78;
  padding: 0.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

	  nav div {
		  display:flex;
		  gap: 1.5rem;
		  flex-wrap: wrap;
	  }
nav a {
  color: #f8f8f8;
  text-decoration: none;
  font-weight: bold;
	padding: 5px;
	text-shadow: 2px 2px 5px #4e7353;
}

.search-bar {
  background-color: #f0f0f0;
  padding: 1rem 0;
}

.search-bar input[type="text"] {
  width: 250px;
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

main {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  font-size: var(--font-size, 1.1em) !important;
}

footer {
  background-color: #eee;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  margin-top: 2rem;
}

hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid #ccc;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
	width: 100%;
}

.floating-head {
  position: absolute;
  top: 0;
  bottom: -48px;
  right: 0;
  width: auto;
  height: calc(100% + 48px);
  z-index: 10;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.40));
}

@media (max-width: 768px) {
  nav {
    justify-content: center !important;
  }

nav a {
    flex: 1;
    font-size: 0.90rem; /* Slightly smaller */
    padding: 0.3rem 0.2rem; /* Less vertical and horizontal padding */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }	
nav .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.5rem 1rem !important;
  }	
  .floating-head {
    width: 60px;
    top: 5px;
    right: 10px;
  }

  header .container,
  nav .container,
  .search-bar .container {
    padding-right: 70px;
  }

  .header-wrapper {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
header div.header-wrapper {
	padding-right:0px !important;
	}
	
  .header-text {
    flex: 1 1 auto;
  }

  .header-image {
    margin: 0 0 1rem;
  }
}

@media (max-width: 480px) {
  .floating-head {
    display: none;
  }

  header .container,
  nav .container,
  .search-bar .container {
    padding-right: 20px;
  }
}

header div.header-wrapper {
  padding-right: 120px;
}
 @media (min-width: 769px) {
  nav .container {
    padding-right: 120px;
  }
}	