/* General styles */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0; /* Removes default margin around the body */
  font-family: Arial, sans-serif; /* Sets the font for the entire page */
  background-color: #fff2f2; /* Sets the main background color */
  
}

/* Header styles */
.header {
  background-color: #2b2f66; /* Sets the background color of the header */
  display: flex; /* Enables flexbox for layout */
  justify-content: center; /* Centers content horizontally */
  align-items: center; /* Centers content vertically */
  padding: 10px 0; /* Adds padding to the top and bottom */
}

.logo {
  
  display: flex; /* Enables flexbox for the logo container */
  flex-direction: column; /* Stacks logo elements vertically */
  align-items: center; /* Centers logo elements horizontally */
  color: white; /* Sets the text color to white */
}

.logo img {
  width: 80px; /* Sets the width of the logo image */
  height: auto; /* Maintains the aspect ratio of the image */
  align-items: center;
}

.logo-text {
  text-align: center; /* Centers the text inside the logo container */
}

.logo-text .school {
  font-size: 14px; /* Sets the font size for the school name */
  margin: 0; /* Removes default margin */
}

.logo-text .name {
  font-size: 20px; /* Sets the font size for the main name */
  font-weight: bold; /* Makes the text bold */
  margin: 0; /* Removes default margin */
}

/* Navbar styles */
.navbar {
  background-color: #3c3f7f; /* Sets the background color of the navbar */
  display: flex; /* Enables flexbox for layout */
  justify-content: center; /* Centers the navbar links horizontally */
  align-items: center; /* Centers the navbar links vertically */
  padding: 10px 0; /* Adds padding to the top and bottom */
}

.navbar a {
  margin: 0 25px; /* Adds horizontal spacing between links */
  text-decoration: none; /* Removes underline from links */
  color: #cbd9ff; /* Sets the text color of the links */
  font-size: 18px; /* Sets the font size of the links */
}

.navbar a:hover {
  text-decoration: underline; /* Adds underline when hovering over links */
}

/* Navigation list styles */
.nav {
  background-color: #3c3f7f; /* Sets the background color of the navigation list */
}

.nav ul {
  display: flex; /* Enables flexbox for the list */
  justify-content: center; /* Centers the list items horizontally */
  margin: 0; /* Removes default margin */
  padding: 10px 0; /* Adds padding to the top and bottom */
  list-style: none; /* Removes bullets from the list */
}

.nav li {
  margin: 0 25px; /* Adds horizontal spacing between list items */
}

.nav a {
  color: #cbd9ff; /* Sets the text color of the links */
  text-decoration: none; /* Removes underline from links */
  font-size: 18px; /* Sets the font size of the links */
}

.nav a:hover {
  text-decoration: underline; /* Adds underline when hovering over links */
}

/* Sidenav styles */
.sidenav {
  background-color: #f1f1f1; /* Sets the background color of the sidenav */
  padding: 20px; /* Adds padding inside the sidenav */
  height: 100%; /* Makes the sidenav take up the full height */
  
}
#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color:#2d336b; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}
/* Footer styles */
footer {
  
min-height: 50px;
  background-color: #2d336b; /* Sets the background color of the footer */
  color: white; /* Sets the text color of the footer */
  text-align: center; /* Centers the text inside the footer */
  padding: 15px; /* Adds padding inside the footer */
   
}

 
/* Layout adjustments */
.container-fluid {
  display: flex; /* Enables flexbox for the container */
  flex-direction: column; /* Stacks child elements vertically */
}

.row {
  display: flex; /* Enables flexbox for the row */
  flex: 1; /* Makes the row take up equal space */
}

.col-sm-2 {
  flex: 1; /* Makes the column take up 1 part of the row */
}

.col-sm-8 {
  flex: 4; /* Makes the column take up 4 parts of the row */
  padding: 20px; /* Adds padding inside the column */
}

/* Layout styles */
.container {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.sidebar {
  flex: 1; /* Takes up 1 part of the available space */
  background-color: #f1f1f1;
  padding: 20px;
  min-width: 200px; /* Ensures a minimum width */
  color: #2b2f66; /* Sets the text color of the main content */
}

.fb-page-container {
  text-align: right; /* Right-side alignment for the Facebook block */
}


.main-content {
  flex: 4; /* Takes up 4 parts of the available space */
  padding: 20px;
  text-align: center; /* Centers the title horizontally */
  color: #2b2f66; /* Sets the text color of the main content */
}
.main-content-tunnit {
    flex: 4; /* Takes up 4 parts of the available space */
  padding: 20px;
  text-align: center; /* Centers the title horizontally */
  color: #2b2f66; /* Sets the text color of the main content */
}

/* Styling for the info box */
.info-box {
  display: flex; /* Use flexbox for layout */
  align-items: center; /* Vertically align items */
  justify-content: space-between; /* Add space between text and image */
  background-color: #2d336b; /* Dark background for the info box */
  border: 1px solid black; /* Border around the box */
  border-radius: 8px; /* Rounded corners */
  padding: 30px; /* Increase padding for more inner spacing */
  margin-top: 20px; /* Space above the box */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  text-align: left; /* Align text to the left */
  color: white; /* Text color inside the box */
  width: 100%; /* Make the box take up the full width of its container */
  max-width: 1200px; /* Set a maximum width for the box */
  height: auto; /* Allow the height to adjust based on content */
  min-height: 200px; /* Set a minimum height for the box */
}

/* Info box text styling */
.info-box-text {
  flex: 2; /* Allow the text to take up more space */
  margin-right: 20px; /* Add spacing between text and image */
  font-size: 16px; /* Increase font size for better readability */
  line-height: 1.6; /* Add spacing between lines of text */
}

/* Info box image styling */
.info-box-image {
  max-width: 320px; /* Increase the maximum width of the image */
  height: auto; /* Maintain aspect ratio */
  border-radius: 8px; /* Match the box's rounded corners */
}

/* Responsive design */
@media screen and (max-width: 767px) {
  .row {
    flex-direction: column; /* Stacks columns vertically on small screens */
  }
  .sidenav {
    height: auto; /* Adjusts the height of the sidenav on small screens */
  }
  .container {
    flex-direction: column; /* Stacks elements vertically on small screens */
  }
}

/* === Henkilökunta kortit  === */
.card-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 40px 20px;
  background-color: #fff2f2; /* Matches page background */
}

/* Individual card */
.card-profile {
  width: 180px;
  background-color: #7685ca;
  border-radius: 8px;
  padding: 20px 10px;
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-profile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Color variants */
.card-light-blue {
  background-color: #7685ca;
}

.card-dark-blue {
  background-color: #2a2f63;
}

/* Profile image placeholder */
.card-profile .profile-image {
  width: 100px;
  height: 100px;
  background-color: #edf0eb;
  border-radius: 20px;
  margin: 0 auto 16px;
}

/* Text content */
.card-profile .name,
.card-profile .role {
  font-size: 14px;
  font-weight: 600;
}

.card-profile .role {
  margin-bottom: 12px;
}

.card-profile .desc {
  font-size: 13px;
  color: #e0e0e0;
}


/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button styling */
.dropbtn {
  color: #cbd9ff;
  font-size: 18px;
  text-decoration: none;
  padding: 0 25px;
}

/* Dropdown content */
.dropdown-content {
  display: none; /* Hidden by default */
  position: absolute;
  background-color: #3c3f7f;
  padding: 15px;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Show dropdown on click */
.dropdown-content.show {
  display: block;
}

/* Login form styling */
.login-form form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  font-size: 14px;
  color: #fff;
  margin-top: 5px;
}

.login-form input {
  padding: 6px;
  margin-top: 3px;
  margin-bottom: 8px;
  border: none;
  border-radius: 4px;
}

.login-form button {
  background-color: #6b7fff;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #4d5fd1;
}

.register-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #cbd9ff;
  text-decoration: underline;
}

/* Shared button style */
.login-form button,
.register-link-button {
  background-color: #6b7fff;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  width: 100%;
  margin-top: 10px;
  font-size: 14px;
}

.login-form button:hover,
.register-link-button:hover {
  background-color: #4d5fd1;
}

/* Shared button style */
.form-button {
  display: inline-block; /* Inline-block to allow precise width control */
  padding: 6px 12px; /* Smaller padding for a smaller button */
  text-align: left; /* Align text to the left */
  text-decoration: none; /* Remove underline for links */
  color: white; /* White text */
  background-color: #007BFF; /* Blue background */
  border: none; /* Remove border */
  border-radius: 4px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor */
  box-sizing: border-box; /* Include padding and border in width/height */
  width: auto; /* Allow the button to size based on its content */
  margin-top: 10px; /* Add spacing above the button */
}

.form-button:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

/* Specific style for the Rekisteröidy button */
.register-link-button {
  background-color: #6b7fff; /* Blue background to match Kirjaudu button */
  color: white; /* White text */
  border: none; /* Remove border */
  padding: 8px; /* Add padding */
  border-radius: 4px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor */
  text-align: center; /* Center text */
  text-decoration: none; /* Remove underline */
  display: block; /* Full-width button */
  width: 100%; /* Full width */
  font-size: 14px; /* Match font size with Kirjaudu button */
  margin-top: 10px; /* Add spacing between buttons */
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

.register-link-button:hover {
  background-color: #4d5fd1; /* Darker blue on hover */
}

/* Ensure the form-button stays within the form boundaries */
.form-button {
  display: inline-block;
  padding: 10px 20px;
  text-align: left;
  text-decoration: none;
  color: white;
  background-color: #007BFF; /* Adjust color as needed */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
}

.form-button:hover {
  background-color: #0056b3; /* Adjust hover color as needed */
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0px; /* Add spacing between form elements */
  max-width: 200px; /* Constrain the form width */
  margin: 0; /* Center the form */
}

/* Style for the Rekisteröidy link */
.register-link {
  display: block; /* Ensure it appears on its own line */
  text-align: left; /* Align the text to the left */
  margin-top: 5px; /* Add spacing above the link */
  font-size: 12px; /* Smaller font size */
  color: #6b7fff; /* Blue text color */
  text-decoration: none; /* Remove underline */
}

.register-link:hover {
  text-decoration: underline; /* Add underline on hover */
  color: #4d5fd1; /* Darker blue on hover */
}
.table {
  border-collapse: collapse;
  width: 100%;
}

.table th, .table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #DDD;
}

.table tr:hover {background-color: #D6EEEE;}