:root {
    /* Variable definitions here */
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    font-family: 'Arial', sans-serif;
    font-size: 87.5%; /* Sets default font size to 14px */
    /* Vertically center body */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.nav {
    position: absolute;
    top: 0;
}

body {
    /* Horizontally center elements in body */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 50vw;
}

h1 {
    font-size: 150%;
}

a:hover {
    font-style:italic;
}

/* Styling for buttons on writing.html */
.buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* Styling for carousel images */
#carousel img {
    max-height: 50vh;
}

#carousel img:hover{
    cursor: pointer;
    /* Start the shake animation and make the animation last for 0.5 seconds */
    animation: shake 0.3s;
    animation-iteration-count: 2;
}

@keyframes shake {
    0% { transform: rotate(-2deg); }
    33% { transform: rotate(0deg); }
    66% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}