/*navbar edit*/
.navbar {
    cursor: pointer;
    border: 2px solid white;
    border-radius: 20px 20px 0 0px;
    height: 90px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: black;
    margin-top: 10px;
    padding-right: 20px;
    padding-left: 20px;
    z-index: 1;
}

.navbar i {
    font-size: 30px;
    background-color: aliceblue;
    border: 1px solid;
    height: 50px;
    width: 50px;
    padding-top: 15px;
    border-radius: 70px;
    box-shadow: 0 1px 10px rgb(255, 255, 255);
}

.navbar i:hover {
    background-color: gray;
    transform: translatey(0px) translateY(-5px);
    width: 60px;
    width: 60px;
    font-size: 25px;
    box-shadow: 0 15px 10px rgb(255, 255, 255);
}

/*navbar end*/


body.dark {
    background-color: black;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(130deg, #005eff, rgba(18, 87, 208, 0.53));
    padding: 10px 20px;
    color: white;
    position: fixed;
    z-index: 1;
    top: 0;
    width: 100%;
    height: 80px;
}

nav i {
    cursor: pointer;
}

.menu {
    display: flex;
    text-align: center;
    gap: 15px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.menu a:hover {
    border-bottom: 3px solid #fcfbfbee;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar {
        height: 80px;
    }

    .navbar i {
        font-size: 20px;
        height: 40px;
        width: 40px;
        padding-top: 10px;
    }

    .navbar i:hover {
        background-color: gray;
        transform: translatey(-15px);
        width: 50px;
        width: 50px;
        font-size: 25px;
        box-shadow: 0 15px 10px rgb(255, 255, 255);
    }

    nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 490px;
    }

    .menu {
        display: none;
        flex-direction: column;
        background-color: #18337b;
        position: absolute;
        top: 45px;
        padding: 10px;
        right: 85px;
        width: 200px;
        height: 200px;
        border-radius: 8px;
        overflow: hidden;
        margin-top: 50px;
        z-index: 1;
    }

    .menu.active {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    .menu a:hover {
        border-bottom: 1px solid #fcfbfbee;
        border-top: 1px solid #fcfbfbee;
    }

    /*search box*/
    .box2 input {
        border: 1px solid;
        border-radius: 10px;
        width: 50%;
        height: 35px;
        text-align: center;
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        font-weight: bold;
        margin: 0 0 0 10px;
    }

    /*end*/
}

.box h2 {
    font-size: 3rem;
    background: url("image/trichy\ bus\ stand.jpg");
    background-size: cover;
    background-clip: text;
    color: transparent;
    animation: animate 5s linear infinite;
}

.box {
    border: 2px solid;
    box-shadow: 2px 4px 20px rgba(239, 124, 250, 0.393);
    background: linear-gradient(150deg, black, rgb(73, 72, 72));
}

@keyframes animate {
    from {
        background-position-x: 0px;
    }

    to {
        background-position-x: 500px;
    }
}


.box {
    display: block;
    align-items: center;
    text-align: center;
    margin-top: 10px;
    padding: 20px;
}

/*container1*/
.container {
    gap: 30px;
    display: flex;
    justify-content: center;
    justify-items: center;
    border: none;
    border-radius: 30px;
    margin: 50px 0 0 0;
    padding: 50px;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.868), rgb(93, 93, 93));
    background-size: cover;
    box-shadow: 10px -10px 10px rgba(30, 29, 29, 0.6);
}

/*end*/

/*box1*/
.box1 {
    border: 1px solid white;
    border-radius: 10px;
    height: auto;
    width: auto;
    text-align: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.845);
    box-shadow: 0 0 15px;
}


@media (max-width:680px) {
    .container .box1 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        text-align: center;
    }

    .container .box1 img {
        width: 75%;
        margin: 0 0 3px 13px;
    }
}

/*img*/

.box1 img {
    cursor: pointer;
    width: 80%;
    height: 70px;
    margin: 5px;
    border-radius: 10%;
}

/*p*/

/*button*/
.box1 button {
    background-color: lightgreen;
}

/*button hover*/
.box1 button:hover {
    box-shadow: 0px -1px 20px rgba(5, 72, 25, 0.6);
}

/*box2 button b-color*/
.box2 button {
    background-color: skyblue;
}

/*box2 button hover*/
.box2 button:hover {
    color: blue;
}

/*box2 a*/
.box2 a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    text-decoration: none;
    color: aliceblue;
}

.box2 a:hover {
    color: aquamarine;
}

/*search box*/
input {
    border: 1px solid;
    border-radius: 10px;
    width: 35%;
    height: 35px;
    text-align: center;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    margin: 0 0 0 10px;
}

/*end*/

/*button*/
button {
    border: 1px solid;
    border-radius: 100px;
}

/*end*/

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 1700px;
    gap: 60px;
}

.box1 {
    width: 200px;
    height: 200px;
    padding: 20px;
}

.box2 a {
    font-size: 15px;
    padding-left: 300px;
}

.box3 img {
    width: 250px;
    height: 250px;
}


/* mobile */
@media (max-width: 680px) {
    .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: auto;
        border-radius: 10px;
    }

    .box1 {
        padding: 15px;
        width: auto;
        width: 150px;
    }

    .box2 a {
        padding-left: 30px;
        font-size: 14px;
    }

    .box2 a1 {
        font-size: 14px;
        color: aliceblue;
        padding-left: 10px;
    }

    /* box5 */
    .box5 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    /* end*/
    /* box3 */

    .box5 .box3 {
        width: 96%;
        height: 450px;
        padding: 20px;
        position: sticky;
        top: 100px;
        overflow: hidden;
        background: linear-gradient(180deg, rgb(37, 37, 106), rgb(134, 126, 126));
    }

    .box5 .box3 img {
        width: 300px;
        height: 200px;
        border: 1px solid black;
        border-radius: 10px;
        margin: 10px;
    }

    .box5 .box3 h1 {
        font-size: 25px;
        font-weight: bolder;
        text-decoration: underline;
        color: white;
        font-family: 'Times New Roman', Times, serif;
    }

    .box5 .box3 p {
        padding-top: 1px;
        font-weight: bold;
        font-family: 'Times New Roman', Times, serif;
        font-size: 15px;
        margin: 0 0 0 0;
        color: white;
    }

    /* end */
    /* box5 container */
    /* end */
}

/*end*/
/*box2*/
.box2 {
    display: black;
    text-align: center;
    justify-content: space-between;
    background-color: black;
    height: 50px;
    padding: 10px 0 0 0;
}

/*box3*/
.box3 {
    margin: 30px 10px 0px 10px;
    padding: 20px;
    text-align: center;
    border: none;
    overflow: hidden;
    height: 450px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
    color: white;
    box-shadow: 0px 0px 15px rgba(30, 29, 29, 0.6);
    background: linear-gradient(180deg, rgb(37, 37, 106), rgb(134, 126, 126));
}

.box3 img {
    margin: 20px 0 30px -800px;
    border: 1px solid black;
    border-radius: 10px;
    width: 650px;
    height: 350px;
    box-shadow: 0px -1px 20px rgb(148, 148, 148);
}

.box3 p {
    font-size: 19px;
    margin: -250px 0 0 700px;
    color: white;
}

.box3 h1 {
    text-decoration: underline;
    font-family: 'Times New Roman', Times, serif;
    font-size: 24px;
}

.box4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 50px 0 0 0;
    gap: 10px;
}

.box4 .contant {
    background: linear-gradient(120deg, green, black);
    padding: 20px;
    color: white;
    border: none;
    font-family: 'Times New Roman', Times, serif;
}

.box4 .contant h1 {
    text-decoration: underline;
}

/*end*/
body {
    display: block;
    text-align: center;
    background-color: rgb(214, 246, 235);
    z-index: -1;
}

/*box4*/
.box4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    gap: 10px;
}

/*end*/
/*html smooth*/
html {
    scroll-behavior: smooth;
}

/*end*/
/*box6*/
.box6 {
    border: 1px solid black;
    border-radius: 20px;
    background-color: transparent;
    height: 200px;
    width: auto;
    text-align: center;
    align-items: center;
    margin: 20px 0 0 0;
    background-color: white;
}

/*end*/
/*box7*/
.box7 {
    text-align: center;
}

.box7 i {
    font-size: 16px;
}

/*scroll*/
.tag-list {
    width: 100%;
    font-family: "montserrat";
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.inner {
    width: fit-content;
    display: flex;
    gap: 1rem;
    animation: loop 35s linear infinite;
}

.tag {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    gap: 0 0.2rem;
    width: 200px;
    color: #e2e8f0;
    padding: 0.7rem 1rem;
    border-radius: 0.4rem;
    box-shadow:
        0 0.1rem 0.2rem #00000033,
        0 0.1rem 0.5rem #0000004d,
        0 0.2rem 1.5rem #00000066;
}

.tag span {
    font-size: 1.2rem;
    color: white;
    font-size: 30px;
}

.fade {
    position: absolute;
    background: linear-gradient(90deg, #1e293b,
            transparent 30%, transparent 70%, #1e293b);
    inset: 0;
    pointer-events: none;
}

.tag a {
    text-decoration: none;
    color: white;
}



@media only screen and (max-width: 780px) {

    .tag {
        width: 200px;
        font-size: 1rem;
    }

    .tag span {
        font-size: 1rem;
    }
}

@keyframes loop {
    0% {
        transform: translateX(600px);
    }

    100% {
        transform: translateX(-1900px);
    }
}

/*sun&moon button*/
body {
    margin: 0;
    align-items: center;
    height: 100vh;
}

.toggle-btn {
    position: relative;
    width: 65px;
    height: 37px;
    background: #ffd771;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 20px #e8ded262;
    transition: background 2s ease;
}

.sun {
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at center,
            #ffdd55, #ff9900);
    border-radius: 50%;
    transform: translateX(-50%) translateY(0);
    transition: transform 2s ease, background 2s ease;
    box-shadow: 0 0 15px hsla(60, 7%, 94%, 0.667);
    z-index: 2;
}

.moon {
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 28px;
    height: 28px;
    background: #111;
    border-radius: 50%;
    box-shadow: 12px 0 0 #fcf8a4 inset;
    transform: translateX(-50%) translateY(50px);
    opacity: 0;
    transition: opacity 2s ease, transform 2s ease;
    z-index: 2;
}

body.night {
    background: linear-gradient(to top, #000000bb);
}

body.night .toggle-btn {
    background: #22264a;
    box-shadow: 0 0 20px #444a88aa;
}

body.night .sun {
    transform: translateX(-50%) translateY(50px);
    opacity: 0;
}

body.night .moon {
    transform: translateX(-50%) translateY(3px);
    opacity: 1;
}