html, body {
    overflow-x: hidden;
    overflow-y: scroll;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    background-color: #f9efd1;
    border-color: #aebfc0;
    margin: 0;
    border-width: 8px;
}

.vishwas {
    font-family: fantasy;
    font-weight: bolder;
    color: #FFC107;
    -webkit-text-stroke: 0.7px black;
}

#top_but {
    text-align: center;
    display: inline-block;
    flex-wrap: wrap;
    margin: 20px;
}

header {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9efd1;
    padding: 15px 20px;
}

header nav button,
header div button {
    margin: 10px;
    padding: 10px 15px;
    border: none;
    background-color: #FFC107;
    color: black;
    cursor: pointer;
    border-radius: 5px;
    width: 200px;
    font-size: large;
}

header div button:hover {
    background-color: #FFEB3B;
}

.box, .box1, .box2 {
    justify-content: center;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    margin: 20px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#skills, #socials, #projects {
    margin-top: 5px;
    text-align: center;
    justify-content: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#para {
    margin-left: 20px;
    padding: 120px;
    font-size: x-large;
}

.logo {
    height: 90px;
    width: 90px;
    padding: 10px;
    /* animation: rotate3D 5s infinite; */
}

@keyframes rotate3D {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

#top {
    width: 200px;
    display: flex;
    flex-grow: 1;
    justify-self: center;
}

#headd {
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-align: center;
    border-bottom: solid;
    margin: 0;
    font-size: 24px;
}

#img_bio {
    display: flex;
}

#main {
    background-color: #f9efd1;
    padding: 30px;
}

#image-container {
    margin: 20px 0;
    justify-content: center;
    border-radius: 2000px;
}

#image-container2 {
    background-color: #FFC107;
    border-radius: 200px;
}

#image {
    margin: 15px;
    border-radius: 200px;
    height: 350px;
    width: 350px;
    box-shadow: 20px;
}

footer {
    height: 230px;
    background-color: #f9efd1;
}

.list {
    padding: 20px;
    margin: 20px;
    border-radius: 20px;
    width: 210px;
    align-content: center;
    transition: transform 0.5s;
    cursor: pointer;
}

.list:hover {
    transform: scale(1.1);
}

#form {
    display: grid;
    justify-content: center;
}

.wcm, .lbl {
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.lbl {
    font-size: x-large;
}

#inputs {
    display: grid;
}

.inp, #msg {
    width: 700px;
    border-radius: 15px;
    font-size: x-large;
    margin-top: 10px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.inp {
    height: 50px;
}

#msg {
    height: 150px;
    text-align: start;
    padding-top: 5px;
    border-radius: 20px;
}

#row {
    text-align: center;
}

.assign {
    width: 50px;
    height: 50px;
    margin-top: 15px;
    margin-right: 15px;
    animation: rotateEffect 15s linear infinite;
}

.gg-assign {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 6px;
    height: 6px;
    background: currentColor;
    transform: scale(var(--ggs, 1));
    border-radius: 100px;
    animation: rotateEffect 5s linear infinite;
}

.gg-assign::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: -3px;
    top: -3px;
    box-shadow:
        -5px -5px 0 -3px,
        5px 5px 0 -3px,
        5px -5px 0 -3px,
        -5px 5px 0 -3px;
}

.carousel {
    position: relative;
    width: 70%;
    margin: 40px auto;
    text-align: center;
    background: #fff3cd;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.carousel-item {
    display: none;
    animation: fade 0.5s ease-in-out;
}

.carousel-item.active {
    display: block;
}

.carousel h3 {
    color: #ff9800;
    font-weight: bold;
    font-size: x-large;
    margin-bottom: 10px;
}

.carousel h3 span {
    font-size: medium;
    color: #555;
    font-weight: normal;
}

.carousel p {
    font-size: large;
    line-height: 1.5;
    margin-top: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffc107;
    border: none;
    font-size: 2rem;
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 10px;
    font-family: inherit;
}

#prev {
    left: -80px;
}

#next {
    right: -80px;
}

.carousel-btn:hover {
    background-color: #ffeb3b;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}


@keyframes rotateEffect {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === MEDIA QUERIES === */

@media (max-width: 768px) {
    #image {
        width: 250px;
        height: 250px;
    }

    .logo {
        height: 75px;
        width: 75px;
    }

    #img_bio {
        flex-direction: column;
        align-items: center;
    }

    .box {
        padding-top: 0px;
    }

    #para {
        padding: 20px;
    }

    .inp, #msg {
        width: 90%;
    }

    header {
        flex-direction: column;
    }

    header nav button {
        width: 100%;
    }
}
