/*
Theme Name: CPA World Map Theme
Theme URI:  https://example.com/cpa-world-map-theme
Author:      Converted by ChatGPT
Author URI:  https://openai.com/
Description: A WordPress theme converted from a single-page HTML for the Club Penguin Armies World Map. Keeps original layout and features.
Version:     1.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cpa-world-map
Tags: one-column, responsive, custom-menu
*/

/* --- Begin original CSS from the user HTML --- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  font-family: "Raleway", sans-serif;
  background: #fff;
  color: #003366;
}

/* Sticky Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgb(5 13 81 / 83%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .logo {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0px;
  color: #fff;
  transition: color 0.3s ease;
}

/* Title hover color change */
.navbar .logo:hover {
  color: #05b3ef;
  cursor: pointer;
}

.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: "Oswald", sans-serif;
}

.navbar ul li {
  position: relative;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  transition: color 0.3s;
  position: relative;
  padding: 5px 0;
}

/* Line on hover */
.navbar a::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #05b3ef;
  transition: width 0.3s ease;
}

.navbar a:hover::before {
  width: 100%;
}

.navbar a:hover {
  color: #05b3ef;
}

/* Dropdown */
.navbar ul li:hover > ul {
  display: block;
  opacity: 1;
  visibility: visible;
}

.navbar ul li ul {
  position: absolute;
  top: 35px;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 999;
}

.navbar ul li ul li {
  padding: 8px 20px;
  width: 140px;
  text-align: left;
}

.navbar ul li ul li a {
  color: #003366;
  display: block;
  font-weight: 600;
}

.navbar ul li ul li a:hover {
  color: #007bff;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 850px) {
  .navbar ul {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(5, 13, 81, 0.95);
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    transform: translateY(-200%);
    transition: transform 0.4s ease;
  }

  .navbar ul.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .navbar ul li ul {
    position: static;
    background: rgba(255,255,255,0.1);
    box-shadow: none;
  }

  .navbar ul li ul li {
    padding: 8px 0;
    text-align: center;
  }

}
.team-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 40px;
margin-top: 50px;
width: 100%;
max-width: 900px;
}

.team-grid .member {
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-grid .member img {
width: 100px;
height: 100px;
border-radius: 50%;
border: 3px solid #fff;
transition: all 0.3s ease;
}

.team-grid .member h3 {
margin-top: 10px;
font-size: 18px;
color: #fff;
opacity: 0.8;
transition: opacity 0.3s ease, color 0.3s ease;
}

/* Hover Effects */
.team-grid .member:hover {
transform: translateY(-10px);
}

.team-grid .member:hover img {
box-shadow: 0 0 20px #05b3ef;
transform: scale(1.1);
border-color: #05b3ef;
}

.team-grid .member:hover h3 {
opacity: 1;
color: #05b3ef;
}
.team-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 40px;
margin-top: 40px;
}

.member {
background: rgba(255, 255, 255, 0.1);
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 12px;
padding: 30px 20px;
text-align: center;
width: 200px;
transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}

.member:hover {
transform: translateY(-10px);
background: rgba(255, 255, 255, 0.2);
box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.member img {
width: 90px;
height: 90px;
border-radius: 50%;
margin-bottom: 15px;
transition: transform 0.3s ease;
}

.member:hover img {
transform: scale(1.1);
}

.member h3 {
font-size: 20px;
margin-bottom: 5px;
font-family: "Oswald", sans-serif;
font-weight: 700;
color: #fff;
}

.member span {
font-size: 14px;
color: #ccc;
font-weight: 500;
}

/* CPAL Section Layout */
.cpal-container {
display: flex;
align-items: center;
justify-content: center;
gap: 60px;
flex-wrap: wrap;
padding: 40px 20px;
max-width: 1200px;
margin: auto;
}

.cpal-image img {
width: 250px;
height: auto;
border-radius: 12px;
transition: transform 0.4s ease, box-shadow 0.4s ease;
cursor: pointer;
}

.cpal-image img:hover {
transform: scale(1.1) rotate(3deg);
box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
background-color: #ffffff;   /* Add white background */
border-radius: 12px;         /* Keep rounded corners */
padding: 10px;               /* Optional: add padding to separate image from edges */
transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.cpal-text {
max-width: 600px;
text-align: left;
}

.cpal-text h1 {
font-size: 60px;
font-weight: 900;
margin-bottom: 20px;
color: #fff;
}

.cpal-text p {
font-size: 20px;
line-height: 1.6;
color: #e4e4e4;
}

/* Responsive */
@media (max-width: 850px) {
.cpal-container {
flex-direction: column;
text-align: center;
}

.cpal-text {
text-align: center;
}

.cpal-image img {
width: 200px;
}
}


/* Team Section Mobile Responsiveness */
@media (max-width: 700px) {
.team-grid {
grid-template-columns: 1fr; /* Stack members vertically */
gap: 30px;
max-width: 90%;
margin: 40px auto;
}

.team-grid .member {
width: 100%;
max-width: 250px;
margin: 0 auto;
}

.member img {
width: 80px;
height: 80px;
}

.member h3 {
font-size: 18px;
}

.member span {
font-size: 13px;
}
}

/* === SMAL Section (Text Left + Image Right, CPAL Style Fixed) === */
#smal {
  background: #820404;
  color: white;
  padding: 80px 5%;
}

.smal-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* proper left-right layout */
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* TEXT */
.smal-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.smal-text h1 {
  font-size: 60px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #05b3ef;
}

.smal-text p {
  font-size: 20px;
  line-height: 1.6;
  color: #f1f1f1;
}

/* IMAGE */
.smal-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.smal-image img {
  width: 250px;
  height: auto;
  border-radius: 12px;
  background-color: transparent;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  cursor: pointer;
}

/* Hover Effect — smooth, glow, no layout shift */
.smal-image img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  background-color: #fff;
}

/* === Responsive === */
@media (max-width: 900px) {
  .smal-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .smal-text {
    text-align: center;
  }

  .smal-image img {
    width: 200px;
  }
}


/* Sections */
section {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
padding: 80px 20px 60px;
transition: background 0.3s;
position: relative;
overflow: hidden;
}

/* HOME Section */
#home {
color: white;
background-image: url('https://worldmap.cparmiesofficial.com/wp-content/uploads/2025/11/cpawmbghead.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
}

#home::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
backdrop-filter: blur(5px);
background: rgba(0,0,0,0.3);
z-index: 0;
}

#home * {
position: relative;
z-index: 1;
}

@font-face {
font-family: "Sliced";
src: url("sliced.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}

#home h1 {
font-size: 72px;
font-weight: 700;
font-family: "Sliced", sans-serif;
letter-spacing: 2px;
color: #fff;

text-shadow: none;
transition: all 0.3s ease;
}

#home h1:hover {
color: #00e5ff;
}

#home p {
font-size: 22px;
margin-top: 10px;
}

#home .btn {
background-color: transparent;
border: 2px solid white;
color: white;
padding: 12px 28px;
margin: 10px;
font-size: 25px;
font-family: "Oswald", sans-serif;
font-weight: 700;
cursor: pointer;
transition: 0.3s;
border-radius: 0;
}

#home .btn:hover {
background-color: white;
color: black;
}

#about { background: #ffffff; color: #003366; }
#team { background: #08175e; color: white; }
#leagues { background: #ffffff; color: #003366; }
#cpal { background: #1b05a8; color: white; }
#smal { background: #820404; color: white; }

section h1 {
font-size: 60px;
font-weight: 900;
margin-bottom: 20px;
}

section p {
font-size: 20px;
max-width: 700px;
line-height: 1.6;
}

footer {
background: rgb(5 42 129);
color: white;
text-align: center;
padding: 15px;
font-size: 14px;
}

/* --- End original CSS --- */