body {
    height: 88vh;
    margin: 0;
}

.name {
    font-family: 'SchoolBell', Arial, Helvetica, sans-serif;
    font-size: 140px;
    margin: 0;
    margin-left: 100px;
    animation: slideIn 1s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
    line-height: 1;
    word-wrap: break-word;
}

.transition {
    background-image: url('background.png');
    height: 80vh;
}

.description {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 400;
    margin-left: 100px;
    margin-bottom: 40px;
    margin-top: -10px;
    border-top: 1px solid black;
    animation: slideIn 1s ease-out 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
    word-wrap: break-word;
}

section.main {
    display: grid;
    grid-template-columns: 580px 1fr;
    height: 88vh;
    margin-top: 40px;
}

canvas {
    height: 88vh;
}

.model {
    margin-top: 40px;
    height: 88vh;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.down-arrow {
    display: none;
    margin-left: 68px;
    width: 80px;
    z-index: 1;
    animation: bounce 2s infinite;
    cursor: pointer;
}

p {
    margin: 0;
    padding: 0;
    vertical-align: top;
}

button {
    display: flex;
    cursor: pointer;
    display: inline-block;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 34px;
    padding: 10px 10px 10px 10px;
    border: 1px black solid;
    border-radius: 20px;
    background-color: white;
    box-shadow: 10px 10px 1px rgba(0, 0, 0, 1);
    transition: all 0.3s ease;
    outline: none;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
}

button:hover {
    box-shadow: 0px 0px 1px;
    transform: translateY(5px);
}

button:active {
    box-shadow: inset 1px 1px 1px;
    transform: translateY(2px);
}

.first-div {
    display: flex; /* Enables flexbox */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 88vh;
}

.first-div div {
    margin-left: 100px;
}

.inline * {
    display: inline-block;
}

button p {
    color: black;
}

.loader {
    z-index: 0;
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@media (max-width: 1621px) {
    canvas {
        width: 800px;
    }
    section {
        grid-template-columns: 580px 800px;
    }
}

@media (max-width: 1400px) {
    canvas {
        width: 400px;
    }
    section {
        grid-template-columns: 580px 400px;
    }
}

.circle {
    background-color: gray;
    border-radius: 100px;
    opacity: 1;
    width: 100px;
    height: 100px;
    position: relative;
    display: none;
}

.circlet {
    background-color: rgb(174, 174, 174);
    border-radius: 100px;
    opacity: 1;
    width: 100px;
    height: 100px;
}

@media (max-width: 994px) {
    .down-arrow {
        display: block;
        margin: 20px auto;
    }

    .name {
        font-size: 80px;
        margin: 0 20px;
        text-align: center;
        padding: 0;
    }

    .description {
        font-size: 24px;
        margin: 10px 20px;
        text-align: center;
        padding: 10px 0;
    }

    .first-div {
        padding: 20px;
        height: auto;
        min-height: 100vh;
        align-items: center;
    }

    .first-div div {
        margin: 0;
        padding: 0 20px;
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
    }

    body {
        margin-top: 0;
    }

    section {
        margin-left: 0;
        height: auto;
    }

    .model {
        margin: 40px auto;
        height: 60vh;
        width: 100%;
    }

    button {
        width: 100%;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }

    button img {
        margin-right: 10px !important;
    }

    button p {
        margin: 0 !important;
        padding: 0 !important;
    }

    canvas {
        width: 100% !important;
        height: 60vh !important;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 72px;
    }

    .description {
        font-size: 20px;
    }

    button {
        font-size: 28px;
    }
}

/* New Animations */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}
