body {
    font-family: 'Mitr', sans-serif;
    background: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.tutorial-container {
    max-width: 80%;
    margin: 40px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: box-shadow 0.3s ease-in-out;
    text-align: center;
}

.tutorial-container h1 {
    margin-bottom: 20px;
    font-weight: 500;
    color: #004085;
    font-family: 'Mitr', sans-serif;
}

.tutorial-layout {
    display: flex;
    width: 100%;
}

.t-layout-l {
    display: flex;
    flex-direction: column;
    min-width: 25%;
}

.t-layout-l a {
    width: 100%;
    padding: 10px;
    background: white;
    box-shadow: #44444444 1px 1px 4px;
    border-radius: 4px;
    margin: 0 0 4px;
    text-decoration: none;
    color: black;
    text-align: left;
    border-bottom: #aaa solid 3px;
    outline: #44aa4400 solid 3px;
    transition: all 0.3s;
    font-family: 'Mitr', sans-serif;
}

.t-layout-l a:hover {
    border-bottom: #44aa44 solid 3px;
}

.t-layout-l a:focus {
    outline: #44aa44 solid 3px;
}

.t-layout-r {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50vh;
    flex-direction: column;
}

.t-layout-r-content {
    display: flex;
    flex-direction: column;
    width: 70%;
    color: #333;
    text-align: left;
}

.linkContainer {
    aspect-ratio: 16/9;
    background: #ccc;
    border-radius: 10px !important;
    overflow: hidden;
}

.tutorial-entry {
    display: flex;
    justify-content: space-between;
    /* Align children to opposite sides */
    align-items: center;
    /* Center align the items vertically */
    border-bottom: 1px solid #ccc;
    padding: 20px;
    transition: transform 0.3s ease;
}

.tutorial-entry:last-child {
    border-bottom: none;
}

.tutorial-entry:hover {
    transform: translateY(-5px);
}

.tutorial-info {
    flex-grow: 1;
    /* Allow the info block to take up available space */
}

.tutorial-info h2 {
    font-size: 20px;
    color: #004085;
    margin-bottom: 5px;
    font-family: 'Mitr', sans-serif;
    /* Adjust spacing between title and date */
}

.textPlayerHead h2 {
    font-size: 20px;
    font-weight: 200;
    color: #222;
    font-family: 'Mitr', sans-serif;
}

.tutorial-info p {
    font-size: 16px;
    color: #666;
    font-style: italic;
    font-family: 'Mitr', sans-serif;
}

.download-button {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, box-shadow 0.2s;
    font-family: 'Mitr', sans-serif;
}

.download-button:hover {
    background-color: #218838;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .tutorial-container {
        max-width: 95%;
    }

    .tutorial-entry {
        flex-direction: column;
        align-items: flex-start;
        /* Align items to the start on smaller screens */
    }

    .download-button {
        margin-top: 10px;
        /* Add some space between the details and the button on small screens */
    }

    .tutorial-layout {
        display: flex;
        width: 100%;
        flex-direction: column-reverse;
    }

    .t-layout-l {
        display: flex;
        flex-direction: column;
        min-width: 25%;
        width: 100%;
    }

    .t-layout-r {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        aspect-ratio: 16/9;
        height: fit-content;
        flex-direction: column;
        padding: 4vh 0 12vh;
    }

    .t-layout-r-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        color: #333;
        text-align: left;
    }

    .t-layout-l a {
        width: 90%;
        padding: 5%;
        background: white;
        box-shadow: #44444444 1px 1px 4px;
        border-radius: 4px;
        margin: 0 0 8px;
        text-decoration: none;
        color: black;
        text-align: left;
        border-bottom: #aaa solid 3px;
    }
}