﻿/* Student name: Savet Morm
   File name: css */

/* Savet Morm */

body {
  color: white; /* Text color */
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-image: url('../image/E.jpg'); /* Adjust path if needed */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* Ensures full coverage */
  min-height: 100vh; /* More reliable than height alone */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
}

/* Navigation bar */
nav {
  position: sticky;   /* keeps nav visible when scrolling */
  top: 0;             /* sticks to the top of the viewport */
  z-index: 1000;      /* ensures it stays above other content */

  display: flex;
  justify-content: center;
  gap: 15px;
  background-color: rgba(0, 0, 0, 0.85); /* slightly darker for contrast */
  padding: 10px 20px;
  border-radius: 0;   /* full-width bar look */
  margin: 0;          /* remove margin so it spans across */
  width: 100%;        /* stretch across the page */
  box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* subtle shadow for depth */
}


/* Navigation links */
nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

nav a:hover {
  background-color: #4CAF50; /* Accessible green */
  border-radius: 5px;
}

/* Main body grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Content boxes */
.content-grid article {
  background-color: rgba(255, 255, 255, 0.9); /* readable over background image */
  color: #333;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.content-grid h2 {
  margin-top: 0;
  color: #222;
}

.content-grid p {
  line-height: 1.6;
}
/* Phones */
@media (max-width: 600px){
	nav {
	flex-direction: column;
	align-items: center;
}
nav a {
	display: block;
	margin: 8px 0;
}
.content-grid {
	grid-template-columns: 1fr;
	gap: 1rem;
}
.content-grid article {
	padding:1rem;
}
}

/* Tablets */
@media (min-width: 601px) and (max-width: 900px) {
	nav a {
	font-size: 1.1rem;
	padding: 8px 12px;
}
.content-grid {
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}
}

/* Desktop */
@media (min-width: 901px) {
	.content-grid {
	grid-template-columns: 1fr 1fr 1fr;
}
}
.menu {
	position:relative;
	display:inline-block;
}
.menu-btn {
	background-color: #3498db;
	color:white;
	padding:10px 20px;
	border: none;
	cursor: pointer;
}
.menu-content {
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	min-width: 160px;
	box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
	z-index: 1;
}
.menu-content a {
	color:black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
}
.menu-content a:hover {
	background-color: #ddd;
}
.menu:hover .menu-content {
	display:block;
}
img {
	transition: transform 0.5s ease;
}
img:hover {
	transform: scale(1.1);
}
img {
	transition: opacity 0.5s ease;
}
img:hover {
	opacity: 0.7;
}
img {
	transition: transform 0.5s ease, box-shadow 0.5s ease;
}
img:hover {
	transform: scale(1.1);
	box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
.gallery .images{
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 20;
	flex-wrap: wrap;
}
.gallery img {
	width: 300px;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease;
}
gallery img:hover {
	transform: scale(1.05);
}