/* This selects ALL elements on the page */
* {
    margin: 0; /* Removes default space outside elements */
    padding: 0; /* Removes default space inside elements */
    box-sizing: border-box; /* Makes width/height include padding and border */
    font-family: Arial, Helvetica, sans-serif; /* Sets default font */
}

/* Custom cursor for everything */
* {
    cursor: url("pawcursor.png") 16 16, auto; /* Changes mouse cursor image */
}

/* These elements also use the custom cursor */
a,
button,
select,
option,
.download-btn,
.prev,
.next {
    cursor: url("pawcursor.png") 16 16, auto;
}

/* Body = the whole page */
body {
    background: #689781; /* Background color of the page */
    color: white; /* Default text color */
    line-height: 1.6; /* Space between lines of text */
}

/* Custom font for body text */
body {
    font-family: 'MyCustomFont', Arial, sans-serif; /* Uses custom font if available */
}

/* Navigation bar (top menu) */
nav {
    background: #4c7864; /* Background color of navbar */
    padding: 15px 40px; /* Space inside navbar (top/bottom, left/right) */
    display: flex; /* Makes items go in a row */
    justify-content: space-between; /* Puts items far apart */
    align-items: center; /* Centers items vertically */
    position: sticky; /* Sticks to top when scrolling */
    top: 0; /* Sticks to very top */
    z-index: 1000; /* Makes sure it stays above other elements */
}

/* Title inside navigation */
nav h1 {
    color: #3d6a52; /* Text color */
    font-size: 1.8rem; /* Text size */
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* Navigation list (menu items container) */
nav ul {
    list-style: none; /* Removes bullet points */
    display: flex; /* Items go in a row */
    gap: 25px; /* Space between menu items */
}

/* Navigation links */
nav a {
    color: rgb(49, 67, 55); /* Link color */
    text-decoration: none; /* Removes underline */
    transition: 0.3s; /* Smooth hover effect */
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* When mouse is over a link */
nav a:hover {
    color: #b2e8c5; /* Changes color on hover */
}

/* Hero section (big top section with image) */
.hero {
    text-align: center; /* Centers text */
    padding: 80px 20px; /* Space inside section */
    background: url("Pelin_tausta.png") no-repeat center center; /* Background image */
    background-size: cover; /* Makes image fill area */
    border-image-source: "animation1.gif"; /* (Not commonly used, may not do anything here) */
}

/* Big heading in hero */
.hero h2 {
    font-size: 3rem; /* Large text */
    margin-bottom: 20px; /* Space below heading */
}

/* Paragraph in hero */
.hero p {
    font-size: 1.2rem; /* Slightly bigger text */
    max-width: 700px; /* Limits width so text is readable */
    margin: auto; /* Centers the paragraph */
}

/* Carousel container (image slider box) */
.carousel-container {
    position: relative; /* Needed for positioning buttons inside */
    max-width: 1000px; /* Maximum width */
    margin: 60px auto; /* Center horizontally + space top/bottom */
    overflow: hidden; /* Hides images outside container */
    border-radius: 12px; /* Rounded corners */
}

/* Each slide (image) */
.carousel-slide {
    display: none; /* Hidden by default */
}

/* Images inside slides */
.carousel-slide img {
    width: 100%; /* Image fills container */
    display: block; /* Removes extra space below image */
}

/* Carousel buttons (left/right arrows) */
.prev, .next {
    position: absolute; /* Positioned inside container */
    top: 50%; /* Middle vertically */
    transform: translateY(-50%); /* Perfect vertical centering */
    background: rgba(0,0,0,0.6); /* Semi-transparent background */
    border: none; /* Removes border */
    color: white; /* Text color */
    padding: 12px; /* Button size */
    font-size: 18px; /* Text size */
}

/* Left button position */
.prev { left: 10px; }

/* Right button position */
.next { right: 10px; }

/* Hover effect for buttons */
.prev:hover, .next:hover {
    background: #3a8162; /* Changes color on hover */
}

/* General section (like About) */
.section {
    padding: 60px 20px; /* Space inside */
    text-align: center; /* Center text */
    max-width: 900px; /* Limit width */
    margin: auto; /* Center section */
}

/* Contact section background */
.contact-section {
    background: #5f8b77; /* Background color */
    padding: 60px 20px;
}

/* Grid layout for contact cards */
.contact-grid {
    display: grid; /* Uses grid layout */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Creates flexible columns that adjust automatically */
    gap: 30px; /* Space between cards */
    max-width: 1200px;
    margin: auto;
}

/* Each contact card */
.contact-card {
    background: #3d6a52;
    padding: 20px;
    border-radius: 10px; /* Rounded corners */
    text-align: center;
    transition: 0.3s; /* Smooth animation */
}

/* Hover effect for cards */
.contact-card:hover {
    transform: translateY(-5px); /* Moves card up slightly */
    background: #3a5445; /* Changes color */
}

/* Images inside cards */
.contact-card img {
    width: 200px;
    height: 200px;
    object-fit: cover; /* Keeps image nicely cropped */
    border-radius: 0%;
    margin-bottom: 15px;
}

/* Links inside cards */
.contact-card a {
    color: #7dccac;
    text-decoration: none;
}

/* Footer (bottom of page) */
footer {
    text-align: center;
    padding: 20px;
    background: #5f8b77;
    font-size: 0.9rem; /* Smaller text */
}

.logot img {

    width: 200px;
    height: 200x;
}

/* Download button */
.download-btn {
    display: inline-block; /* Makes it behave like a button */
    margin-top: 30px;
    padding: 15px 35px;
    background: #a6e2c3;
    color: #000000;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none; /* Removes underline */
    border-radius: 8px;
    transition: 0.3s;
}

/* Hover effect for button */
.download-btn:hover {
    background: #88c29c;
    transform: translateY(-3px); /* Moves up slightly */
    box-shadow: 0 6px 15px rgba(112, 149, 131, 0.4); /* Adds shadow */
}

/* Trailer section (video area) */
.trailer-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 900px;
    margin: auto;
}

/* Trailer title */
.trailer-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Video container (keeps video responsive) */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Keeps 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Video iframe (YouTube etc.) */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fills container perfectly */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Tablet */
@media (min-width: 600px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptop */
@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Wide */
@media (min-width: 1200px) {
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}