body{
    margin: 0;
    padding: 0;
    /* Ensure the image covers the entire viewport */
    background-size: cover;
    /* Fix the background in place */
    background-attachment: fixed;
    /* Optional: Center the image */
    background-position: center;
    /* Optional: Prevent image from repeating */
    background-repeat: no-repeat;
    /* Fallback background color */
    background-color: black;
    /* Add some content to see scrolling effect */
    min-height: 200vh; /* Makes the page scrollable */
}
.rel {
    position: relative;
    top: 50px;
    left: 200px;
}    

a {
    text-decoration: none;
    font-size: 20px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}
h1 {
    background-color: lightgreen;
    color:darkblue;
    text-align: center;
    font: bold;
    font-size: 50px;
    margin: 25px 0 50px 0;
    padding-top: 4%;
}

.heading{
    margin: 75p 0 50px 0;
    padding-top: 4%;
}

h2 {
    font: bold;
    font-size: 40px;
    background-color: lightblue;
    border-left-color: blue;
    border-left-style: solid;
    border-left-width: 5px;
    padding-left: 5px;
    margin: 0 0 0 0;
}

h2, .foot-title {
    font: bold;
    font-size: 40px;
    background-color: lightblue;
    border-left-color: blue;
    border-left-style: solid;
    border-left-width: 5px;
    padding-left: 5px;
    margin: 0 0 0 0;
}

p {
    font-family: "Calibri", Sans-serif, serif;
    font-size: 25px;
}

ol {
    font-size: 30px;
    font: bolder
}

ul {
    list-style: inside url("timolaugh2.jpeg");
}

/* Whole animated gradient. Keyframes shift from one another. Speed is defined inside .navbar*/
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.navbar {
    background: linear-gradient(90deg, #007bff, #8a2be2, #ff5722);
    background-size: 200% 200%; /* make is bigger so there is space to move around */
    animation: gradientMove 2.5s infinite linear; /* this consumes power */
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* navbar shadow */
    z-index: 1000;
    transition: transform 0.1s ease-in-out; /* eases at the end and the start, so the animation doesnt look jerky */
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.navbar ul li {
    margin: 0 15px;
}
.navbar ul li a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease; /* animate yellow underline */
}
 /* Hover Animation for the links within Navbar */
.navbar ul li a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: #ffcc00;
    transition: width 0.3s ease, left 0.3s ease;
}
.navbar ul li a:hover {
    color: #ffcc00;
    transform: scale(1.1);
}
.navbar ul li a:hover::before {
    width: 100%;
    left: 0;
}
.toggle-btn {
    position: relative;
    margin-top: 10px;
    right: -30px;
    color: azure;
    font-size: 1.5em;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.4s ease, color 0.3s ease;
}

.toggle-btn:hover {
    opacity: 0.9; /* Slight fade effect */
    transform: scale(1.02); /* Subtle zoom */
}

.image-link {
    display: inline-block; /* Ensures padding/border work */
    border: 2px solid transparent; /* Optional: Improves hover effect */
    transition: all 0.3s ease; /* Smooth hover effects */
}
  
.image-link:hover {
    opacity: 0.9; /* Slight fade effect */
    transform: scale(1.02); /* Subtle zoom */
}

.container {
    position: relative;
    height: 300px;
    border: 1px solid #ccc;
}

.box1 {
position: absolute;
top: 50px;
left: 100px;
width: 100px;
height: 100px;
background: red;
}

.box2 {
position: relative;
bottom: 0cm;
right: -7.5cm;
width: 80px;
height: 80px;
background: blue;
}

.box3 {
transform: translate(200px, -30px);
background: green;
width: 120px;
height: 60px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tutorial-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.tutorial-box:hover {
    transform: translateY(-5px);
}

.iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tutorial-label {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #333;
}