* {
    box-sizing: border-box;
}


body {

    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: #f8fafc;

    color: #1f2937;

}


/* Header */

header {

    text-align: center;

    padding: 40px 20px;

}


header h1 {

    font-size: 38px;

    margin-bottom: 10px;

}


header p {

    color: #6b7280;

    font-size: 18px;

}



/* Main Tool */

main {

    display: flex;

    justify-content: center;

    padding: 20px;

}



.tool-container {

    background: white;

    width: 750px;

    padding: 40px;

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    text-align: center;

}



.tool-container h2 {

    font-size: 32px;

}



.description {

    color: #6b7280;

    line-height: 1.6;

    margin-bottom: 30px;

}



/* Controls */

.controls {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;

}


input {

    width: 80px;

    padding: 10px;

    border-radius: 8px;

    border: 1px solid #d1d5db;

    font-size: 16px;

}



button {

    background: #2563eb;

    color: white;

    border: none;

    padding: 12px 25px;

    border-radius: 10px;

    cursor: pointer;

    font-size: 16px;

}


button:hover {

    background: #1d4ed8;

}



.buttons {

    margin-top: 20px;

    display: flex;

    justify-content: center;

    gap: 15px;

}



.secondary {

    background: #dc2626;

}


.secondary:hover {

    background: #b91c1c;

}



/* Output */

textarea {

    margin-top: 30px;

    width: 100%;

    height: 300px;

    padding: 15px;

    border-radius: 12px;

    border: 1px solid #d1d5db;

    resize: none;

    font-size: 16px;

    line-height: 1.5;

}



/* Footer */

footer {

    text-align: center;

    padding: 40px;

    color: #6b7280;

}

/* =====================================
   Navigation
====================================== */

nav{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 40px;

    background:white;

    border-bottom:1px solid #e5e7eb;

    position:sticky;

    top:0;

    z-index:1000;

}


.logo a{

    color:#1f2937;

    text-decoration:none;

    font-size:22px;

    font-weight:bold;

}


.nav-links{

    display:flex;

    gap:25px;

}


.nav-links a{

    color:#4b5563;

    text-decoration:none;

    font-weight:600;

    transition:.2s;

}


.nav-links a:hover{

    color:#2563eb;

}


/* =====================================
   Back to Top
====================================== */

#backToTop{

    position:fixed;

    bottom:30px;

    right:30px;

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:white;

    font-size:24px;

    font-weight:bold;

    cursor:pointer;

    display:none;

    align-items:center;

    justify-content:center;

    box-shadow:0 6px 18px rgba(0,0,0,.18);

    transition:.2s;

    z-index:999;

}


#backToTop:hover{

    background:#1d4ed8;

    transform:translateY(-3px);

}


#backToTop:active{

    transform:scale(.95);

}


/* =====================================
   Mobile
====================================== */

@media(max-width:700px){

   
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    padding: 18px 20px;
    gap: 16px;
    background: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links > a,
.nav-links .tools-dropdown-button {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #4b5563;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links .tools-dropdown-button {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
}



    #backToTop{

        width:46px;

        height:46px;

        right:20px;

        bottom:20px;

        font-size:21px;

    }

}

/* =====================================
   Informational Sections
====================================== */

.info-section {

    max-width: 750px;

    margin: 30px auto;

    padding: 35px 40px;

    background: white;

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.06);

}


.info-section h2 {

    font-size: 28px;

    margin-top: 0;

    margin-bottom: 18px;

}


.info-section p {

    color: #4b5563;

    line-height: 1.7;

    margin-bottom: 18px;

}


.info-section ol,
.info-section ul {

    color: #4b5563;

    line-height: 1.7;

    padding-left: 25px;

}


.info-section li {

    margin-bottom: 12px;

}


.info-section strong {

    color: #1f2937;

}


/* =====================================
   Informational Sections - Mobile
====================================== */

@media(max-width:700px){

    .info-section {

        margin: 20px;

        padding: 28px 24px;

    }


    .info-section h2 {

        font-size: 24px;

    }

}

/* =====================================
   Tools Dropdown Navigation
====================================== */

.tools-dropdown {

    position: relative;

    display: inline-block;

}


.tools-dropdown-button {

    background: none;

    border: none;

    color: #4b5563;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    padding: 0;

    margin: 0;

}


.tools-dropdown-button:hover {

    background: none;

    color: #4b5563;

}


/* Dropdown menu */

.tools-dropdown-menu {

    display: none;

    position: absolute;

    right: 0;

    top: 100%;

    width: 240px;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.12);

    padding: 8px;

    z-index: 2000;

}


/* Keep dropdown open while hovering */

.tools-dropdown:hover .tools-dropdown-menu {

    display: block;

}


/* Dropdown links */

.tools-dropdown-menu a {

    display: block;

    padding: 11px 14px;

    color: #374151;

    text-decoration: none;

    border-radius: 8px;

    font-size: 15px;

}


.tools-dropdown-menu a:hover {

    background: #f3f4f6;

    color: #2563eb;

}


/* Current tool */

.tools-dropdown-menu a.current-tool {

    background: #eff6ff;

    color: #2563eb;

    font-weight: bold;

}


.tools-dropdown-menu a.current-tool:hover {

    background: #dbeafe;

    color: #1d4ed8;

}

/* =====================================
   Lorem Ipsum Generator - Mobile Improvements
====================================== */

@media (max-width:700px){

    body{
        overflow-x:hidden;
    }


    header{
        padding:30px 20px 20px;
    }


    header h1{
        font-size:30px;
        line-height:1.2;
        margin-bottom:12px;
    }


    header p{
        font-size:16px;
        line-height:1.5;
    }


    main{
        padding:10px 15px 20px;
    }


    .tool-container{
        width:100%;
        padding:25px 18px;
        border-radius:18px;
    }


    .tool-container h2{
        font-size:25px;
        line-height:1.3;
    }


    .description{
        font-size:15px;
        line-height:1.6;
        margin-bottom:25px;
    }


    /* Controls */

    .controls{
        flex-direction:column;
        gap:12px;
        width:100%;
    }


    .controls input{
        width:100%;
        max-width:150px;
        padding:12px;
    }


    .controls button{
        width:100%;
        max-width:250px;
    }


    /* Generate / Clear buttons */

    .buttons{
        flex-direction:column;
        align-items:center;
        gap:10px;
        width:100%;
    }


    .buttons button{
        width:100%;
        max-width:250px;
    }


    /* Generated text */

    textarea{
        margin-top:25px;
        height:320px;
        padding:14px;
        font-size:15px;
        line-height:1.6;
    }


    /* Information sections */

    .info-section{
        margin:20px 15px;
        padding:25px 20px;
        border-radius:18px;
    }


    .info-section h2{
        font-size:23px;
        line-height:1.3;
    }


    .info-section p,
    .info-section li{
        font-size:15px;
        line-height:1.7;
    }


    /* Back to top */

    #backToTop{
        width:46px;
        height:46px;
        min-height:46px;
        right:20px;
        bottom:20px;
        padding:0;
        font-size:21px;
    }

}

/* =====================================
   Share This Tool
====================================== */

.share-section {

    width: 100%;

    max-width: 700px;

    margin: 60px auto 40px auto;

    padding: 35px 25px;

    text-align: center;

    background: #f3f4f6;

    border-radius: 16px;

}


.share-section h2 {

    margin: 0 0 10px 0;

    text-align: center;

}


.share-section p {

    color: #6b7280;

    margin: 0 auto 20px auto;

    text-align: center;

}


#shareButton {

    display: block;

    margin: 0 auto;

    background: #2563eb;

    color: white;

    border: none;

    padding: 12px 24px;

    border-radius: 10px;

    font-size: 16px;

    cursor: pointer;

    transition: 0.2s;

}


#shareButton:hover {

    background: #1d4ed8;

}