.carousel {
    width: 550px; /* Customize width */
    height: 750px; /* Customize height */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3%;
    margin-bottom: 1%
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-final {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel img {
  flex-shrink: 0;
  width: 550px; /* Same as carousel width */
  height: 750px; /* Same as carousel height */
  object-fit: cover;
}

.nametext {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bolder;
  font-size: 10.25em;
  letter-spacing: -30px;
  color: #748cab;
  font-family: Ailerons, fantasy;
  z-index: 2;
  white-space:nowrap;
}

.nametextheading {
  position: absolute;
  top: 60%;
  left: calc(50% + 460px);
  transform: translateX(-50%);
  font-weight: bolder;
  font-size: 35px;
  color: #333333;
  font-family: Anton;
  z-index: 2;
  white-space:nowrap;
  text-align: left;
}

.mobilescrolldown{
    display: none;
}

.mobilescrollup{
    display: none;
}

.homelogomobile{
    display: none;
}

@media screen and (max-width: 768px){
    html, body{
            overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    }

        .navbarhome {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 28vh;
    transform: translateY(-2vh);
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

        .homelogomobile{
            display: flex;
            width: 20%;
            margin-top:14vh;
        }

    .carousel {
        width: 73vh;
        height: 100vh;
        position: relative;
        right: 25%;
        margin-top: 0;
        box-shadow: none;
    }

    .carousel img {
    flex-shrink: 0;
    width: 73vh;
    height: 100vh;
    object-fit: cover;
    }

    .nametext {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bolder;
    font-size: 3em;
    letter-spacing: -7px;
    color: #748cab;
    font-family: Ailerons, fantasy;
    z-index: 2;
    white-space:nowrap;
    background-color: #f1f1f1; 
    padding: 12px 12px;
    border-radius: 12px;
    }

    .nametextheading {
    display: none;
    /*position: absolute;
    top: 56%;
    left: 74.8%;
    transform: translate(-50%, -50%);
    font-weight: bolder;
    font-size: 1.8em;
    color: #333333;
    font-family: impact, fantasy;
    z-index: 2;
    white-space:nowrap;
    text-align: left;
    background-color: #f1f1f1; 
    padding: 4px 10px;
    border-radius: 4px;
    */
    }

    .mobilescrolldown{
        z-index: 2;
        position: absolute;
        display:block;
        width: 35%;
        height: 5%;
        top: 85vh;
        left: 50%;
        transform: translateX(-50%);
        animation: floatAnimation 2s infinite ease-in-out;
    }

    .mobilescrollup{
        z-index: 2;
        position: absolute;
        display:block;
        width: 35%;
        height: 5%;
        top: 112vh;
        left: 50%;
        transform: translateX(-50%);
        animation: floatAnimation 2s infinite ease-in-out;
    }
    
    @keyframes floatAnimation {
        0% { transform: translateX(-50%) translateY(0px); }
        50% { transform: translateX(-50%) translateY(-10px); }
        100% { transform: translateX(-50%) translateY(0px); }
    }
}


