/* uploading fonts */

@font-face {
 font-family: 'Cursive';
 src: url('cursive.ttf') format('truetype');
}

@font-face {
 font-family: 'Nyata';
 src: url('nyata.otf') format('truetype');
}

@font-face {
 font-family: 'Sublem';
 src: url('sublem.ttf') format('truetype');
}

/* content */

html {
  box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
    background-color: peachpuff;
    width: 100%;
    overflow-x: hidden;
}

body, html {
    margin: 0;
    padding: 0;
}

.footer {
    font-size: 15px;
    color: maroon;
    font-family: "Nyata";
    margin-top: clamp(20px, 5vw, 40px);
    margin-bottom: clamp(20px, 5vw, 40px);
    width: 100%;
    text-align: center;
    background-color: peachpuff;
}

/* first index page */

.welcome-text {
    width: 100vw;
    text-align: center;
    font-family: verdana;
    margin-top: clamp(4rem, 5vw, 5rem);
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-family: "Nyata";
    color: maroon;
    padding: 0px 100px;
    
}

.welcome-text h1 {
    color: brown;
    font-size: clamp(5rem, 10vw, 6rem);
    font-family: "Cursive";
}

.name {
    font-family: verdana;
    font-size: clamp(1.2rem, 10vw, 2rem);
    color: maroon;
    width: 100%;
    text-align: center;
    margin-top: clamp(2rem, 4vw, 5rem);
    font-family: "Sublem";
}

.name img {
    max-width: 80px;
}

.start-button {
    border-radius: 10px;
    background-color: red;
    color: peachpuff;
    padding: 15px 50px;
    font-family: "Sublem";
    font-weight: bold;
    font-size: clamp(1rem, 5vw, 1.3rem);
    margin-top: clamp(1rem, 6vw, 1.5rem);
    border: 0px;
    cursor: pointer;
    transition: padding 0.3s ease;
}

.start-button:hover {
    padding: 18px 55px;
}

/* home page */

.description {
    font-size: clamp(10px, 3vw, 1.3rem);
    padding: 30px clamp(3rem, 4vw, 5rem);
    font-family: "Nyata";
    color: maroon;
    width: 100vw;
    text-align: center;
}

.choose-from-our {
    font-size: clamp(1rem, 5vw, 1.5rem);
    padding: 0px clamp(3rem, 4vw, 5rem);
    font-weight: bold;
    color: red;
    width: 100vw;
    text-align: center;
    font-family: "Sublem";
}

.option-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: repeat(2, 1fr);    
    gap: 50px; 
    padding: 100px 100px; 
    justify-items: center; 
    align-items: center;   
}

/* remove underline from links within option buttons */
.option-buttons a {
    text-decoration: none;
}


.main-caption {
    font-family: "Sublem"; 
    font-size: clamp(1.5rem, 3vw, 2rem); 
    color: maroon; 
    text-align: center;
    margin-top: 10px; 
    padding: 0 5px; 
}


.mudras-button img,
.postures-button img,
.namaskaram-button img,
.exercises-button img,
.thattadavus-button img,
.about-button img {
    max-width: 100%; 
    height: auto;    
    display: block; 
    border-radius: 10px;
    border: 0px;
}

.mudras-button,
.postures-button,
.namaskaram-button,
.exercises-button,
.thattadavus-button,
.about-button {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    max-width: 300px; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

/* hover effect for individual buttons */
.mudras-button:hover img,
.postures-button:hover img,
.namaskaram-button:hover img,
.exercises-button:hover img,
.thattadavus-button:hover img,
.about-button:hover img {
    /* slightly increase size */
    transform: scale(1.05); /* Scales the image slightly */
    transition: transform 0.3s ease; /* Smooth transition for the hover effect */
}


/* mudras page */
.mudras-title {
    font-family: "Nyata";
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    color: maroon;
    width: 100vw;
    text-align: center;
    padding: 0px clamp(30px, 5vw, 100px);
}

.mudras-title h1 {
    font-family: "Sublem";
    color: red;
}

.mudra-gallery {
    display: grid;
    /*4 columns */
    grid-template-columns: repeat(4, 1fr);
    gap: 50px; /* Space between grid items */
    padding: 100px 100px;
    justify-items: center; /* centers items horizontally inside grid cells */
    align-items: start;   /* align items to the start of grid cell --> top alignment */
}

.mudra-gallery2 {
    display: grid;
    width: 100%;
    /*4 columns */
    grid-template-columns: repeat(4, 1fr);
    gap: 50px; /* Space between grid items */
    padding: 100px 100px;
    margin-right: 0px;
    justify-items: center; /* centers items horizontally inside grid cells */
    align-items: start;   /* align items to the start of grid cell --> top alignment */
}

@media (min-width: 1400px) {
    .mudra-gallery2{
        margin-right: 40px;
}
}

.mudra-type-container2 img {
    width: 100%; 
    height: 300px; 
    object-fit: cover;
    display: block;
    border-bottom: 5px solid peachpuff;
}



/* polaroid style container */
.mudra-type-container {
    max-width: 300px; 
    width: 100%; 
    background-color: white; /* white polaroid border */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* shadow underneath polaroid */
    overflow: hidden; /* content stays inside rounded corners */
    display: flex; 
    flex-direction: column; /* stack vertically */
}


/* img in mudra-type-container */
.mudra-type-container img {
    width: 300px; 
    height: 300px;   
    object-fit: cover;
    object-position: right;
    display: block;  /* removes extra space below img */
    border-bottom: 5px solid white; /* white "border" effect below the image */
}

.mudra-type-container2 img {
    width: 300px; 
    height: 300px;
    object-fit: cover;   
    display: block;  /* removes extra space below img */
    border-bottom: 5px solid peachpuff; /* white "border" effect below the image */
}

/* polaroid caption effect */
.button-caption-area { 
    background-color: red;
    padding: 10px 5px; 
    text-align: center;
    border-bottom-left-radius: 10px; 
    border-bottom-right-radius: 10px; 
    min-height: 50px; 
    display: flex;
    align-items: center; /* Vertically center the caption */
    justify-content: center; /* Horizontally center the caption */
}

.button-caption-area2 { 
    background-color: peachpuff;
    padding: 10px 5px; 
    text-align: center;
    border-bottom-left-radius: 10px; 
    border-bottom-right-radius: 10px; 
    min-height: 50px; 
    display: flex;
    align-items: center; /* Vertically center the caption */
    justify-content: center; /* Horizontally center the caption */
}

/* Caption text inside the red area */
.button-caption {
    font-family: "Sublem";
    font-size: clamp(1.2rem, 2.5vw, 1.8rem); /* Responsive font size */
    color: peachpuff; /* Text color on the red background */
    margin: 0; /* Remove default paragraph margins */
}

.button-caption2 {
    font-family: "Sublem";
    font-size: clamp(1.2rem, 2.5vw, 1.8rem); /* Responsive font size */
    color: maroon; /* Text color on the red background */
    margin: 0; /* Remove default paragraph margins */
    width: 300px;
}

.description-mudra {
    font-family: "Nyata";
    font-size: clamp(0.6rem, 2vw, 1.2rem);
}

.description-mudra2 {
    font-family: "Nyata";
    font-size: clamp(1rem, 2vw, 1.4rem);
    width: 300px;
    align-items: Center;

}


.take-the-quiz {
    align-items: center;
    width: 100vw;
    font-family: "Nyata";
    text-align: center;
    display: block;
    margin-top: clamp(30px, 5vw, 3rem);
    color: red;
    font-size: clamp(20px, 2vw, 1.2rem);
    padding: 0px clamp(40px, 5vw, 100px);
}

.back {
    margin: clamp(10px, 3vw, 50px);
}

.back button {
    font-size: clamp(15px, 2vw, 20px);
    font-family: "Sublem";
    color: maroon;
    background-color: peachpuff;
    border: 0px;
    padding: 10px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
}

.back button:hover {
    background-color: maroon;
    padding: 10px 10px;
    color: peachpuff;
    border: 0px;
    transform: translateY(-2px);
}

/* quiz section */

.quiz-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: clamp(50px, 7vw, 50px);
    
}

.back-to-mudras {
    width: 100vw;
    display: flex;
    justify-content: center;
}


#mudra-image {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 3px solid peachpuff;
    display: block; 
    margin-left: auto; /* centers horizontally */
    margin-right: auto; /* centers horizontally */
}

#question-text {
    font-family: "Nyata";
    color: maroon;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 30px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for options */
    gap: 15px;
    margin-bottom: 30px;
}

.option-button {
    background-color: peachpuff;
    color: maroon;
    font-family: "Sublem";
    font-size: clamp(1rem, 2vw, 1.2rem);
    padding: 15px 20px;
    border: 2px solid maroon;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
    width: 100%; /* buttons fill their grid cell */
}

.option-button:hover {
    background-color: maroon;
    color: peachpuff;
    transform: translateY(-2px);
}

.option-button.correct {
    background-color: #4CAF50; /* Green for correct */
    color: white;
    border-color: #4CAF50;
}

.option-button.incorrect {
    background-color: #F44336; /* Red for incorrect */
    color: white;
    border-color: #F44336;
}

#next-button, #retake-quiz-button {
    background-color: red;
    color: peachpuff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Sublem";
    font-size: 1.2rem;
    margin-top: 25px;
    transition: background-color 0.3s ease;
    /* centering */
    display: block; 
    margin-left: auto;
    margin-right: auto;
    width: fit-content; /* makes the button only as wide as its content + padding */
}

#next-button:hover {
    background-color: darkred;
}

#quiz-result {
    font-family: "Nyata";
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: maroon;
    margin-top: 30px;
    font-weight: bold;
}

.about-container {
    max-width: 100vw;
    border: 0px;
    margin-top: clamp(50px, 10vw, 100px);
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
}

.about-item {
    max-width: clamp(500px, 100vw, 2000px);
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center; 
    font-size: clamp(5px, 3vw, 20px);
    color: maroon;
    font-family: "Nyata";
    padding: 0px clamp(20px, 20vw, 400px);
    margin-bottom: clamp(30px, 5vw, 100px);
}

.sub {
    color: red;
    font-size: clamp(10px, 3vw, 20px);
    font-family: "Nyata";
    margin-bottom: clamp(10px, 2vw, 20px);
}

.about-item h1 {
    font-size: clamp(20px, 7vw, 40px);
    color: red;
    font-family: "Sublem";
}

.about-item h3 {
    color: red;
}

.about-item img {
    max-width: clamp(250px, 20vw, 400px);
    display: block; 
    margin: 0 auto; 
    margin-bottom: clamp(10px, 3vw, 30px);
    border-radius: 200px;
    border: 10px double red;
}


.thattadavu-container {
    max-width: 100vw; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.thattadavu-box {
    margin-top: clamp(10px, 5vw, 50px);
    width: 100%; 
    max-width: clamp(500px, 96vw, 2000px); 
    padding: 30px clamp(30px, 6vw, 300px);
    padding-bottom: clamp(50px, 8vw, 100px);
    border-radius: 10px;
    background-color: maroon;
    
}



.thattadavu-item {
    font-family: "Sublem";
    font-size: clamp(25px, 3vw, 40px);
    color: peachpuff;
    margin-bottom: -20px;
    
}

.video-grid {
    display: grid;
    gap: 20px; 
    padding: 0; 
    list-style: none; 
}

.video-grid {
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(4, auto); 
}


.thattadavu-item video {
    width: 100%; 
    height: auto; 
    display: block; 
}

.posture-item video {
    width: clamp(200px, 70vw, 600px);
    height: auto;
    display: block;
}

.postures-wrong {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    width: 100%; 
}



.posture-item {
    font-family: "Nyata";
    color: peachpuff;
    font-size: clamp(10px, 3vw, 20px);
    text-align: center; 
    align-items: center;
    display: flex;
    flex-direction: column;
}

.posture-item img {
    max-width: clamp(250px, 20vw, 400px);
    display: block;
    margin: 0 auto; 
    margin-bottom: clamp(10px, 4vw, 40px);
}

.posture-item h1 {
    font-family: "Sublem";
    font-size: clamp(40px, 10vw, 80px);
    text-align: left; 
    color: red;
}

.section-divider {
    border: none; 
    border-top: 2px solid peachpuff;
    margin: clamp(40px, 8vw, 100px) auto;
    width: clamp(200px, 80vw, 1200px); 
}

.posture-item p {
    text-align: center;
    width: 100%; 
}

.posture-item ul {
    max-width: 500px;
    margin: 0 auto;
    padding-left: 20px;
    text-align: left;
}

.each-wrong {
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 0px clamp(0px, 2vw, 10px);
    margin-bottom: clamp(20px, 5vw, 30px);
}

.wrong-caption {
    width: 100%;
}

.thattadavu-box h2 {
    margin-top: clamp(20px, 9vw, 80px);
}


@media (max-width: 767px) { 
    .video-grid {
        grid-template-columns: 1fr; 
        grid-template-rows: repeat(8, auto); 
    }

    .thattadavu-box {
        padding: 20px clamp(15px, 4vw, 50px);
        padding-bottom: 50px;
    }


}

@media (max-width: 950px) {
    .postures-wrong {
        grid-template-columns: 1fr;
    }
}




/* Media things for quiz layout */
@media (max-width: 600px) {
    .quiz-container {
        padding: 20px;
        margin: 40px;
    }
    .options-grid {
        grid-template-columns: 1fr; /* Single column for options on small screens */
    }
    #mudra-image {
        max-width: 180px;
    }
}




/* breakpoints to change grid as size shrinks */
@media (max-width: 1300px) { /* Added a new breakpoint for 3 columns on larger screens */
    .mudra-gallery {
        grid-template-columns: repeat(3, 1fr); /* Change to 3 columns */
        gap: 40px;
        padding: 50px 70px;

    }

}

@media (max-width: 1400px) {
        .mudra-gallery2 {
        grid-template-columns: repeat(3, 1fr); /* Change to 3 columns */
        gap: 40px;
        padding: 50px 70px;

    }
}
@media (max-width: 1100px) {
        .mudra-gallery2 {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
        padding: 40px 30px;
    }
}



@media (max-width: 900px) { /*breakpoint for 2 column */
    .mudra-gallery {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
        padding: 40px 30px;
    }

    .mudra-gallery2 {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
        padding: 40px 30px;
    }

    .mudras-title {
        font-size: clamp(1rem, 5vw, 1.5rem); /* Adjust mudras title font size */
    }

    .mudra-type-container2 img {
        width: 300px;
        height: 200px;
        object-fit: cover;
    }


}

@media (max-width: 700px){
    .mudra-gallery2 {
        grid-template-columns: repeat(1, 1fr); 
        gap: 20px;
        padding: 40px 30px;
    }
}


/*media resizing */
@media (max-width: 1080px) {
    .option-buttons {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for screens between 769px and 1080px */
        grid-template-rows: repeat(3, 1fr);
        gap: 40px; /* slightly reduce gap for smaller screens */
        padding: 50px 50px; /* Reduce padding for smaller screens */
    }
}

@media (max-width: 768px) { /* This media query applies when screen width is 768px or less */
    .option-buttons {
        
        /*grid-template-columns: 1fr; /* Change to 1 column for screens 768px and below */
        /*grid-template-rows: auto;   /* Rows will automatically adjust based on content */
        
        gap: 30px; /* Further reduce gap */
        padding: 50px 20px; /* Adjust padding for very small screens */
    }

    .mudras-button,
    .postures-button,
    .namaskaram-button,
    .exercises-button,
    .thattadavus-button,
    .about-button {
        max-width: 500px; /* buttons grow larger when in a single column, up to this max */
    }
    .mudras-button img,
    .postures-button img,
    .namaskaram-button img,
    .exercises-button img,
    .thattadavus-button img,
    .about-button img {
        max-width: 100%; 
    }

    .description {
        padding: 30px 20px;
        font-size: clamp(0.8rem, 4vw, 1.2rem);
    }
    .name {
        font-size: clamp(1rem, 8vw, 1.8rem);
    }
    .choose-from-our {
        padding: 0px 20px;
        font-size: clamp(0.8rem, 4vw, 1.2rem);

    }
}
