@import url('https://fonts.googleapis.com/css?family=Francois+One|Oswald|Alata|Muli|Roboto|Cairo&subset=latin,latin-ext&display=swap');

body {
       background: #fff;
       padding: 0px;
}

img {
       border: 0;
}

#main {
    width: 100%;
    margin: 0 auto;
    position: relative;
    text-align: center;
    border-left: 0;
    border-right: 0;
}

/* LOGO */
#mainlogo {
    max-width: 999px;
    width: 100%;
    text-align: center;
    margin: 0 auto; /* space above and below logo */
    position: relative;
}

.topimg {
    max-width: 100%;
    height: auto;
    border: 0;
}

/* === TOP NAVIGATION === */
#topnav {
    background: #050547;
    border-bottom: 4px solid #7b0f1a;
    font-family: Oswald, "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    position: relative; /* now flows under logo */
    width: 100%;
    z-index: 1000;
}

/* Nav inner container */
.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Menu items */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    margin-left: 10%;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 15px;
    font-size: 15px;
}

.nav-menu > li > a:hover {
    background: #191970;
    border-radius: 3px;
}

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #050547 url('bglinks.jpg') no-repeat;  /* background image */
    background-size: cover;
    min-width: 220px;
    list-style: none;
    padding: 5px 0;
}

.submenu a {
    padding: 10px 15px;
}

.submenu a:hover {
    background: #191970;
}

.divider {
    height: 1px;
    margin: 5px 10px;
    background: rgba(255,255,255,0.3);
}

/* SHOW SUBMENU ON HOVER */
@media (min-width: 769px) {
    .has-sub:hover .submenu {
        display: block;
    }
}

/* MOBILE MENU BUTTON */
#nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    #nav-toggle { display: block; }
    .nav-menu { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        border-top: 2px solid #050547;
    }
    .nav-menu.open { display: flex; }
    .submenu { position: static; }
    .has-sub.open .submenu { display: block; }
}

/* =========================
   SEARCH FIELD IN NAV
========================= */

/* Search list item */
.nav-menu li.nav-search {
    display: flex;
    align-items: center;
}

/* Search form */
.nav-menu li.nav-search form {
    display: flex;
    align-items: center;
}

/* Input field */
.nav-menu li.nav-search input[type="text"] {
    padding: 6px 10px;
    border-radius: 4px 0 0 4px;
    border: none;
    font-size: 14px;
    width: 120px;            /* desktop width */
    transition: width 0.3s ease;
}

/* Expand on focus */
.nav-menu li.nav-search input[type="text"]:focus {
    width: 180px;
    outline: none;
}

/* Submit button */
.nav-menu li.nav-search button {
    padding: 6px 10px;
    border: none;
    border-radius: 0 4px 4px 0;
    background: #191970;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.nav-menu li.nav-search button:hover {
    background: #264653;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .nav-menu li.nav-search form {
        width: 100%;
        padding: 10px 15px;
    }
    .nav-menu li.nav-search input[type="text"] {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 8px;
    }
    .nav-menu li.nav-search button {
        width: 100%;
        border-radius: 4px;
    }
}

#maincontent {
    position: relative;
    width: 100%;
    background-color: #ffffff;
	 text-align: left;
	 vertical-align: top;
}

#wrapindex {
	max-width: 800px;
	margin: 20px auto 20px auto;
}

@media (max-width: 768px) {
#wrapindex {
    width: 98%;
}
}

.section-divider {
    position: relative;
    height: 1px;
    margin: 45px 0;
    background-color: #0a1f44;
}

.section-divider::after {
    content: "";
    position: absolute;
    left: 40%;
    top: -1px;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background-color: #b11226;
    box-shadow: 0 0 8px rgba(177, 18, 38, 0.5);
}



/* Shortcuts container with frame, rounded corners, shadow */
#shortcuts {
    display: flex;
    flex-direction: column;
    gap: 12px;                       /* space between links */
    border: 3px solid #FF8C00;       /* dark orange frame */
    border-radius: 12px;              /* rounded corners */
    box-shadow: 0 5px 12px rgba(0,0,0,0.15); /* gentle shadow */
    padding: 15px 20px;               /* inner spacing */
    background-color: #ffffff;        /* white background inside frame */
    max-width: 400px;                 /* same as textlist2 width */
    margin: 30px auto 50px auto;         /* center horizontally and add bottom spacing */
    font-family: 'Oswald', "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    text-align: center;               /* center the links */
}

#shortcuts a {
    position: relative;      /* needed for ::before positioning */
    padding-left: 25px;      /* space for the arrow */
    color: #191970;
    text-decoration: none;
}

#shortcuts a::before {
    content: ">>>";          /* arrow content */
    position: absolute;
    left: 0;
    opacity: 0;              /* hidden by default */
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px); /* slide from left */
}

#shortcuts a:hover::before {
    opacity: 1;              /* show arrow */
    transform: translateX(0); /* slide to position */
}

#counter {
    text-align: center;
    width: 225px;
    height: 180px;
    margin: -30px auto 10px auto;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: .8rem;
    background: url("bgcounter.jpg") #fff no-repeat center;
    padding: 10px;
}

#counter p {
	padding-top: 50px;
	padding-left: 10px;
	color: #000000;
	font-size: 0.8rem;
	font-family: Tahoma, Arial, Sans-serif;
}

#buyphoto a,
#sponsor2 a {
    display: block;
    background-color: #7b0f1a;
    color: #dcdcdc;
    text-decoration: none;
    font-weight: 500;
    max-width: 600px;
    font-size: 16px;
    padding: 15px 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
}

#buyphoto a:hover,
#sponsor2 a:hover {
    background-color: #a71c2d;
    color: #fff;
    text-decoration: underline;
    transform: translateY(-2px);
}

.photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* align left */
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
.photo-grid {
    gap: 10px;
}
}

.photo-box {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
    flex: 1 1 calc(50% - 10px); /* 2 per row on small screens */
    max-width: 180px;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.8; /* slightly transparent */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.photo-box:hover img {
    opacity: 1;            /* fully visible on hover */
    transform: scale(1.10); /* gentle zoom */
}

#rndphoto {
	position: relative;
    margin: 10px auto 30px auto;   /* small space from previous section */
    padding: 0;         /* remove extra padding if any */
    max-width: 800px;
    text-align: center;
}

#rndphoto h2 {
	font-size: 1.2rem;
	color: #050530;
	font-family: 'Oswald', 'Arial', sans-serif;
	text-align: center;
	margin: 10px 0 10px 0; /* small top and bottom margin */
}

#firsttext {
    background: url('bgfirsttext.jpg') no-repeat #fff;
    background-position: right bottom; /* moves image to bottom-right */
    background-size: auto; /* keeps original size; change if needed */
    border: 1px solid #000000;  /* black border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* subtle shadow */
    border-radius: 12px; /* rounded corners */
    max-width: 800px; /* maximum width on desktop */
    width: 90%; /* for smaller screens/mobile */
    margin: 1em auto; /* center horizontally with top/bottom spacing */
    padding: 1.2em 1em; /* inner spacing for content */
    box-sizing: border-box; /* ensure padding included in width */
}


/* General Heading Styles */
h1, h2, h3 {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    margin: 0;
    padding: 10px;
}

/* H1 - Black */
h1 {
    color: #000000;
    font-size: clamp(1.6rem, 2.7vw, 2.7rem); /* max 3rem instead of 4rem */
 }

/* H2 - Very Dark Blue */
h2 {
    font-family: 'Montserrat', 'Poppins', Arial, Helvetica, sans-serif; /* modern sans-serif */
    color: #0D3B66; /* rich dark blue */
    font-weight: 700; /* bold for emphasis */
    font-style: normal; /* clean, no italic */
    font-size: clamp(1.3rem, 2vw, 2.2rem); /* responsive size */
    margin: 0 0 10px 0;
    letter-spacing: 0.5px; /* subtle spacing for modern look */
}

/* H3 - Navy Blue */
h3 {
    color: #000080;
    font-size: clamp(1.2rem, 2vw, 2rem); /* max 2rem */
}

p {
    font-family: 'Georgia', 'Times New Roman', Times, serif; /* elegant serif font */
    color: #000000; /* black text */
    font-size: clamp(1.2rem, 1.3vw, 1.3rem); /* scales between 1rem and 1.2rem */
    line-height: 1.3; /* improves readability */
    margin: 0; /* spacing between paragraphs */
    padding: 20px;
}

#commerce {
	width: 100%;
	text-align: center;
	background-color: #ededfa;
	margin: 10px auto 20px auto;
}

#commerce img {
	max-width: 468px;
	width: 90%;
	height: auto;
}

#reklamabox {
	position: relative;
	max-width: 600px;
	padding: 5px;
	margin: 40px auto 10px auto;
	text-align: center;
	border: 0;
}

@media (max-width: 768px) {
	#reklamabox {
	width: 100%;	
	}
}

.reklama {
	font-family: Tahoma, Verdana, Arial, Sans-serif;
	font-size: 12px;
	text-align: center;
	color: #000;
	text-decoration: none;
	font-weight: bold;
}

.reklama:hover {
	text-decoration: underline;
	color: #750000;
}

#livelink {
	clear: both;
	position: relative;
	max-width: 600px;
	padding: 5px;
	margin: 20px auto 10px auto;
	text-align: center;
	background-color: #fff;
	border: 0;
}

#livelink a {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.8rem;
	line-height: 2rem;
	margin: 20px auto 0 auto;
	padding: 5px;
	color: #000171;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: bold;
	text-align: center;
}

#livelink a:hover {
	text-decoration: underline;
}

.facebook-share-btn {
    display: inline-block;
    max-width: 180px;             /* fixed width */
    text-align: center;
    padding: 0.6em 0;         /* vertical padding */
    background-color: #1877F2; /* Facebook blue */
    color: #ffffff;           /* white text */
    text-decoration: none;
    border-radius: 25px;      /* rounded corners */
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s;
}

.facebook-share-btn:hover {
    background-color: #145dbf; /* darker blue on hover */
}

@media (max-width: 768px) {
    .facebook-share-btn {
        width: 90%; /* responsive for small screens */
    }
}

#bottom {
       clear: both;
       position: relative;
       width: 100%;
       padding: 0 0 40px 0;
       margin: 0;
       background-color: #210b61;
       border-top: 2px dotted #ff0000;
       height: 30px;
       line-height: 15px;
}

#bottom p {
       font-family: Muli, Tahoma, Verdana, Arial, Sans-serif;
       font-size: 0.8em;
       color: #ffffff;
       text-align: center;
       padding: 0;
       padding-top: 2px;
       margin: 10px auto 0 auto;
}

.bottomlink {
       font-family: Tahoma, Verdana, Arial, Sans-serif;
       font-size: 0.8rem;
       line-height: 1.2rem;
       color: #ffffff;
       text-align: center;
       padding: 0;
       padding-top: 2px;
       margin: 0;
       text-transform: lowercase;
       font-weight: normal;
       text-decoration: none;
}

.bottomlink:hover {
       border-bottom: 1px dashed #ffffff;
}

#bottomlinks {
    position: relative;
    background: #576F9C;
    width: 100%;
    padding: 20px 0 40px;
    text-align: center;

    border-top: 5px double #fff;
    border-bottom: 5px double #fff;
}


#bottomlinks li {
	list-style-type: none;
	text-align: left;
	color: #fff;
	margin-bottom: 5px;
}

#bottomlinks a {
	display: block;
	line-height: 1.2em;
	font-family: "Kanit", Geneva, Arial, Helvetica, sans-serif;
	font-size: 1em;
	padding: 2px;
	color: #dcdcdc;
	text-align: left;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
  text-decoration: none;
}

@media only screen and (max-width: 1200px) {
#bottomlinks a {
	display: block;
	line-height: 1.4em;
	font-family: "Kanit", Geneva, Arial, Helvetica, sans-serif;
	font-size: 1em;
	padding: 10px;
	color: #dcdcdc;
	text-align: left;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}
}

#bottomlinks a:after {
  content: '»';
  position: absolute;
  opacity: 0;  
  top: 0;
  right: 60px;
  transition: 0.5s;
}

#bottomlinks strong {
	font-weight: bold;
	color: #dcdcdc;
}

#bottomlinks a:hover{
  padding-right: 24px;
  padding-left:8px;
  text-decoration: underline;
}

#bottomlinks a:hover:after {
  opacity: 1;
  right: 10px;
}

#linksBoxOne,
#linksBoxTwo,
#linksBoxThree {
    display: inline-block;
    width: 300px;
    padding: 20px;
    margin: 10px;                 /* small space between boxes */
    background: #31466E;          /* dark blue background */
    color: #fff;                  /* white text */
    text-align: center;
    vertical-align: top;
    
    /* double border */
    border: 1px solid #425882;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 0 3px #425882 inset;
    
    border-radius: 10px;          /* rounded corners */
    
    /* smooth hover transition */
    transition: all 0.5s ease;
}

/* hover effect */
#linksBoxOne:hover,
#linksBoxTwo:hover,
#linksBoxThree:hover {
    transform: translateY(-2px) scale(1.02); /* lift & subtle zoom */
    box-shadow: 0 8px 16px rgba(0,0,0,0.4), 0 0 0 3px #fff inset;
    background: #27395C;           /* slightly lighter on hover */
    cursor: pointer;
}

/* newest /

/* Album grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 250px));
    gap: 18px;
    justify-content: center;
    margin: 30px auto;
    padding: 0 12px;
}

/* Photo box */
.album-item {
    aspect-ratio: 1 / 1;       /* keeps it square */
    border: 1px solid #ccc;    /* grey frame */
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

/* Image */
.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.8;                /* 80% transparent */
    transition: transform 0.35s ease, opacity 0.35s ease;  /* smooth transform + opacity */
}

/* Hover zoom and opacity */
.album-item:hover img {
    transform: scale(1.10);
    opacity: 1;                  /* fully visible on hover */
}

/* Large tablets / small laptops */
@media (max-width: 1200px) {
    .album-grid {
        grid-template-columns: repeat(3, minmax(200px, 250px));
    }
}

/* Tablets */
@media (max-width: 900px) {
    .album-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

/* Phones */
@media (max-width: 500px) {
    .album-grid {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }
}

/* album view */

#viewphoto {
    position: relative;
    width: 100%;
    background-color: #fff;
	 text-align: center;
	 vertical-align: top;
	 z-index: 1;
}

/* Desktop: one line, centered */
.menu2ul,
.menu3ul {
    list-style: none;
    padding: 2px;
    margin: 0;
    text-align: center;       /* center all items */
    font-family: Calibri, Tahoma, Arial, Sans-serif;
}

.menu2li,
.menu3li {
    display: inline-block;    /* allows wrapping naturally */
    margin: 3px 5px;
}

.menu2li a,
.menu3li a {
    text-decoration: none;
    font-size: 1.2rem;
    padding: 3px 5px;
    line-height: 1.2;
    white-space: nowrap;      /* desktop numbers stay on one line */
}

.menu2li a:hover,
.menu3li a:hover {
    text-decoration: underline;
    color: #000;
}

/* Mobile: allow wrapping and shrink numbers */
@media (max-width: 600px) {
    .menu2li a,
    .menu3li a {
        white-space: normal;    /* allows wrapping */
        font-size: 1rem;        /* slightly smaller on mobile */
        padding: 2px 5px;
    }
}

/* viewing photo albumview */

/* Container frame */
#photoframe {
    max-width: 800px;       /* Limit width for large screens */
    margin: 20px auto;      /* Center horizontally */
    padding: 20px;          /* Inner spacing */
    background-color: #ffffff; /* White frame */
    border-radius: 12px;    /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Soft shadow */
    box-sizing: border-box;
    text-align: center;     /* Center text */
    overflow: hidden;
}

/* Responsive image */
#photoframe img {
    max-width: 100%;        /* Don't exceed container width */
    height: auto;           /* Maintain aspect ratio */
    display: block;         /* Block element for margin auto */
    margin: 15px auto;      /* Center horizontally with top/bottom spacing */
    object-fit: contain;
    transition: transform 4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (max-width: 768px) {
#photoframe {
    max-width: 100%;       /* Limit width for large screens */
    margin: 5px auto;      /* Center horizontally */
    padding: 5px;          /* Inner spacing */
    background-color: #ffffff; /* White frame */
    border-radius: 2px;    /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Soft shadow */
    box-sizing: border-box;
    text-align: center;     /* Center text */
	}
}

/* Responsive image */
@media (max-width: 768px) {
#photoframe img {
    max-width: 100%;        /* Don't exceed container width */
    height: auto;           /* Maintain aspect ratio */
    display: block;         /* Block element for margin auto */
    margin: 2px auto;      /* Center horizontally with top/bottom spacing */
    object-fit: contain;
    padding: 0;
	}
}

/* Desktop hover only */
@media (hover: hover) and (pointer: fine) {
    #photoframe img:hover {
        transform: scale(1.5);
    }
}

/* Light grey background for paragraphs */
#photoframe p {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 6px;
    line-height: 1.5;
    margin: 8px 0;
}

/* Highlighted groups like fotogrupa */
#photoframe .fotogrupa {
    background-color: #f0f0f0;
    padding: 6px;
    border-left: 4px solid #ccc;
    font-family: 'Noto Sans', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 0.9rem;       /* Adjust text size */
    line-height: 1.2;
    color: #333;
}

/* Sponsor section styling */
#photoframe #sponsor {
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 0.95rem;
    color: #333;
}

/* Sponsor link styling */
#photoframe #sponsor a {
    color: #0073e6;
    text-decoration: none;
}
#photoframe #sponsor a:hover {
    text-decoration: underline;
}

/* Responsive typography */
#photoframe h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 10px;
}
#photoframe h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    margin-bottom: 8px;
}

/* Rights text smaller */
#photoframe .rights {
    font-size: 0.85rem;
    color: #000;
    text-align: right;
    margin: -25px 0 0 0;
    padding: 20px 2px 5px 2px;
    line-height: 1.2rem;
    padding-right: 10%;
    background-color: #fff;
    border: 1px dotted #dcdcdc;
    text-decoration: underline;
}

/* Gallery headings */
.galeria h2,
.galeria h3 {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: #333;
    margin: 15px 0;
    padding: 8px 10px 0 20px;
    border-left: 4px solid #ddd;
    font-weight: 500;
}

/* Main title slightly stronger */
.galeria h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

/* Subtitle softer */
.galeria h3 {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #666;
}

.galeria p {
	 font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* modern sans-serif */
    font-size: 0.9rem;      /* slightly smaller than default */
    color: #555;            /* medium grey */
    line-height: 1.4;       /* comfortable spacing */
    margin: -20px 0 22px 0;     /* space after paragraph */
    padding-bottom: 2px;    /* space for border */
    border-bottom: 1px dotted #003366; /* dark blue dotted underline */
}

/* Komentarze */

.comments-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 20px auto;
    padding: 0 10px;
}

.comment-card {
    position: relative;
    background-color: #fefefe;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.comment-author {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: #4A90E2;
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 50%;
    text-align: center;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.comment-content {
    margin-top: 35px; /* space for author circle */
}

.comment-mark {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
}

.comment-date {
    border-top: 1px dotted #aaa;
    font-size: 0.8rem;
    color: #777;
    margin-top: 15px;
    padding-top: 5px;
    text-align: right;
}

/* Responsive */
@media (max-width: 600px) {
    .comment-card {
        padding: 15px;
    }
    .comment-author {
        top: -10px;
        left: 15px;
        min-width: 40px;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* DZIENNIK */

.journal-card {
    background-color: #f5f5f5; /* light grey for content container */
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 0; /* remove padding, will use header/content padding separately */
    margin: 15px auto 30px auto;
    max-width: 600px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.journal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.journal-header {
    background-color: #4F57A1; /* dark blue background */
    color: #ffffff; /* white text */
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.journal-content {
    background-color: #FAFCFF; /* subtle grey background for content */
    padding: 15px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.journal-content p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

/* Optional: smaller padding on mobile */
@media (max-width: 600px) {
    .journal-card {
        margin: 10px auto;
    }
    .journal-header {
        font-size: 1.1rem;
        padding: 8px 12px;
    }
    .journal-content {
        padding: 10px;
    }
    .journal-content p {
        font-size: 1.2rem;
    }
}

/* Container styling (optional) */
#textlist {
    max-width: 800px;       /* Centered content */
    margin: 0 auto;
    padding: 15px;
}

.right {
	float: right;
	margin: 5px 0 5px 5px;
	border: 0;
	height: auto;
}

.left {
	float: left;
	margin: 5px 5px 5px 0;
	border: 0;
	height: auto;
}

/* textview */

/* Text content container */
.text-content {
    background-color: #ffffff;       /* white background */
    color: #000000;                  /* default text color */
    border: 1px solid #ccc;          /* subtle border */
    border-radius: 12px;             /* rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* soft shadow */
    padding: 10px;
    margin: 10px auto;
    max-width: 800px;                /* desktop max width */
    width: 90%;                       /* responsive width for mobile */
    box-sizing: border-box;
    line-height: 1.6;
    text-align: justify;
}

/* Headings inside text */
.text-content h1 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #222;
}

.text-content h2 {
    margin-top: 5px;
    font-size: 1.2rem;
    color: #555;
}

/* Paragraph text */
.text-content p {
    font-size: 1.2rem;
    color: #333;
}

/* Link styling */
.text-content a.choosetext {
    display: inline-block;
    margin-top: 10px;
    color: #0066cc;
    text-decoration: underline;
}

.text-content img {
    max-width: 100%;
    height: auto;
}

/* Mobile override */
@media (max-width: 768px) {
    .text-content img {
        float: none;
        margin: 0 auto 15px;
        display: block;
    }
}

/* Default (desktop) */
.text-content img.lefttwo {
    max-width: 100%;
    height: auto;
}

/* Mobile override */
@media (max-width: 768px) {
    .text-content img.lefttwo {
        float: none;
        margin: 0 auto 15px;
        display: block;
    }
}


/* Warning box */
.warning {
    background-color: #ff6600;  /* bright orange */
    color: #ffffff;             /* white text */
    border: 2px solid #cc5200;  /* slightly darker orange border */
    border-radius: 10px;
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    width: 90%;                 /* responsive */
    text-align: center;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    box-sizing: border-box;
    font-size: 0.9rem;          /* smaller font */
}

/* Author styling */
.tautor {
    font-size: 0.9rem;       /* smaller font */
    color: #777777;          /* grey color */
    text-decoration: underline;
    margin-top: 5px;
    margin-bottom: 15px;
    text-align: right;
    font-family: Calibri, Arial, Verdana, Sans-serif;
}

/* Container spacing */
#extras {
    max-width: 700px;      /* limits content width */
    margin: 0 auto;        /* centers on page */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;             /* space between each extra-item */
}

/* Individual video card look */
.extra-item {
    width: 100%;       /* fill the parent container width */
    max-width: 700px;  /* caps at 800px */
    margin: 0 auto;    /* center if parent is wider */
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 768px) {
	.extra-item {
    width: 90%; 
}

/* Hover effect */
.extra-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Headings */
.extra-item h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #222;
}

/* Paragraphs */
.extra-item p {
    line-height: 1.6;
    font-size: 1.2rem;
    color: #444;
 }
}

/* Rights text */
.extra-item .rights {
    font-size: 0.85rem;
    color: #000;
    text-align: right;
    margin: -20px 0 0 0;
    padding: 20px 2px 5px 2px;
    line-height: 1.2rem;
    padding-right: 10%;
    background-color: #fff;
    border: 1px dotted #dcdcdc;
    text-decoration: underline;
}

/* Center all iframes inside extra-item */
.extra-item iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 560px;
    border-radius: 8px;
    box-sizing: border-box;  /* include padding/borders in width */
}

/* Links inside extra-item */
.extra-item .dl {
    display: inline-block;
    margin-top: 5px;
    padding: 6px 14px;
    background-color: #0077cc;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.extra-item .dl:hover {
    background-color: #005fa3;
}

/* Apply grid to all screens */
.wallpaper-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Individual wallpaper cards */
.wallpaper-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 96%; /* default full width of grid cell */
}

/* Small screens adjustment */
@media (max-width: 768px) {
    .wallpaper-gallery {
        grid-template-columns: 1fr; /* single column for mobile */
    }
    .wallpaper-item {
        width: 90%;  /* optional, keeps some margin */
        margin: 0 auto;
    }
}

.wallpaper-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.wallpaper-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.wallpaper-item .rights {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.wallpaper-item .downloads a {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
}

.wallpaper-item .downloads a:hover {
    background-color: #0056b3;
}

/* Main enquiry container */
.enquiry-box {
    max-width: 600px;
    margin: 40px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Message base */
.message {
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Error message */
.message.error {
    background: #fff4f4;
    border-left: 5px solid #e63946;
    color: #8a1f1f;
}

.message.error ul {
    margin: 10px 0 0 20px;
}

/* Success message */
.message.success {
    background: #f0fbf5;
    border-left: 5px solid #2a9d8f;
    color: #1b5e55;
}

/* Back links */
.goback {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 600;
    color: #264653;
    transition: color 0.2s ease;
}

.goback:hover {
    color: #1d3557;
    text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .enquiry-box {
        margin: 20px 15px;
        padding: 20px;
    }
}

/* Form layout */
.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Labels always on top */
.enquiry-form label {
    display: block;
    text-align: left;     /* force left alignment */
    margin-bottom: 10px;  /* spacing between labels */
    font-size: 0.9rem;
    font-weight: 700;              /* bold labels */
    color: #333;
    padding-left: 50px;            /* left spacing */
}

/* Required star */
.enquiry-form label span {
    color: #e63946;
    font-weight: 700;
}

/* Inputs & textarea */
.enquiry-form input {
    max-width: 300px;
    width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.enquiry-form select {
    max-width: 300px;
    width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.enquiry-form textarea {
    max-width: 500px;
    width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

/* Remove centering */
.enquiry-form input,
.enquiry-form textarea {
    align-self: flex-start;        /* left aligned */
}

/* Focus state */
.enquiry-form input:focus,
.enquiry-form textarea:focus {
    outline: none;
    border-color: #FF6B6B; /* stronger light red */
    box-shadow: 0 0 5px 2px rgba(255,107,107,0.3); /* light red glow */
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Captcha block */
.captcha {
    padding-left: 50px;
}

.captcha img {
    margin: 10px 0;
}

/* Info note */
.form-note {
    max-width: 500px;
    margin-left: 50px;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

/* Button */
.form-actions {
    text-align: center;   /* center button */
    padding-left: 0;      /* remove left offset */
    margin-top: 10px;
}

.confirm2 {
    background: #264653;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.confirm2:hover {
    background: #1d3557;
    transform: translateY(-1px);
}

/* Mobile adjustments */
@media (max-width: 400px) {
    .enquiry-form label,
    .captcha,
    .form-note,
    .form-actions {
        padding-left: 16px;        /* smaller left spacing */
    }

    .enquiry-form input,
    .enquiry-form textarea {
        max-width: 80%;
    }
}

/* =========================
   SEARCH RESULTS – GENERAL
========================= */

#textlist2 h2 {
    margin-bottom: 10px;
}

#textlist2 h3 {
    margin: 20px 0 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}

/* =========================
   PHOTO SEARCH RESULTS
========================= */

.searchphoto {
    max-width: 700px;
    margin: 0 auto 25px;
    padding: 15px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.searchphoto:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Image */
.photoscenter img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0 auto 10px;
}

/* Photo title link */
.photos {
    display: block;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #264653;
    text-decoration: none;
}

.photos:hover {
    text-decoration: underline;
}

/* Table cleanup (for older markup) */
table.searchphoto {
    border-collapse: collapse;
    width: 100%;
}

table.searchphoto td {
    border: none;
    padding: 0;
}

/* =========================
   Textlist and TEXT SEARCH RESULTS
========================= */

/* Each text link as a block */
.choosetext {
    display: block;              /* Each link takes full width */
    background-color: #f7f7f7;   /* Light grey background */
    color: #333;                 /* Dark text */
    padding: 15px 20px;          /* Space inside the block */
    margin-bottom: 12px;         /* Space between each item */
    border-radius: 10px;         /* Rounded corners */
    text-decoration: none;       /* Remove underline */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Soft shadow */
    transition: all 0.3s ease;   /* Smooth hover effect */
    font-family: 'Arial', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.2rem); /* Responsive font */
    text-align: center;
    border-left: 4px solid #727272;
}

/* Hover effect */
.choosetext:hover {
    background-color: #e0e0e0;   /* Slightly darker */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-decoration: underline;
}

/* Optional: Responsive tweaks */
@media (max-width: 600px) {
    .choosetext {
        padding: 12px 15px;
        font-size: 1rem;
    }
}


/* =========================
   JOURNAL SEARCH RESULTS
========================= */

table.journal {
    max-width: 750px;
    margin: 0 auto 30px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.journaltd1 {
    background: #264653;
    color: #ffffff;
    padding: 14px 20px;
}

.journaldate {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.journaltd2 {
    padding: 18px 20px;
    background: #fefefe;
}

.journaltd2 p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* =========================
   WARNING / EMPTY STATES
========================= */

.warning {
    max-width: 600px;
    margin: 30px auto;
    padding: 15px 20px;
    background: #fff4f4;
    border-left: 5px solid #e63946;
    border-radius: 12px;
    color: #8a1f1f;
    font-weight: 600;
}

/* =========================
   MOBILE ADJUSTMENTS
========================= */

@media (max-width: 700px) {

    .searchphoto,
    table.journal,
    .choosetext {
        margin-left: 15px;
        margin-right: 15px;
    }

    .journaltd1,
    .journaltd2 {
        padding: 14px;
    }
}

/* Parent container */
#adsinalbum {
  display: flex;
  justify-content: center; /* center items horizontally */
  gap: 20px;               /* space between buttons */
  flex-wrap: wrap;         /* wrap to next line on small screens */
}

  /* Make all images inside #adsinalbum responsive */
  #adsinalbum img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto; /* center the image */
    border-radius: 10px; /* optional rounded corners for images */
  }

#adsinalbum .linkinorange {
  display: inline-block;   /* or keep block inside flex */
  width: 200px;
  height: 40px;
  line-height: 40px; /* vertically center text */
  background-color: darkorange;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: bold;
  font-family: Calibri, Tahoma, Arial, Sans-serif;
}

#adsinalbum .linkinorange:hover {
  transform: translateY(-3px); /* slight upward movement */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); /* slightly stronger shadow */
}

#shiro {
    text-align: center;           /* center text and image */
    padding: 20px;
    background-color: #fdfdfd;    /* light background */
    border: 1px solid #eee;       /* subtle border */
    border-radius: 8px;
    max-width: 660px;             /* container max width */
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Headline styling */
#shiro h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Image styling */
#shiro img {
    width: 100%;           /* makes image scale with container */
    height: auto;          /* maintain aspect ratio */
    max-width: 100%;       /* prevent overflow */
    border-radius: 6px;
    transition: transform 0.3s ease;
}

/* Responsive text for smaller screens */
@media (max-width: 480px) {
    #shiro h3 {
        font-size: 1.2rem;
    }
    #shiro {
        padding: 15px;
        margin: 15px auto;
    }
}  
