/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 300px) {
    .col-1 {width: 50%;}
    .col-2 {width: 30%;}
    .col-3 {width: 100%;}
    .col-4 {width: 100%;}
    .col-5 {width: 100%;}
    .col-6 {width: 100%;}
    .col-7 {width: 100%;}
    .col-8 {width: 100%;}
    .col-9 {width: 100%;}
    .col-10 {width: 100%;}
    .col-11 {width: 100%;}
    .col-12 {width: 100%;}

    .col-sm-1 {
        width: 50%;
    }

    .col-sm-2,
    .col-sm-12{
        width: 100%;
    }

    .content{
        margin-left: 5px;
        margin-right: 15px;
        height: calc(100% - 50px);
        width: 98%;
        /* Ensure pagecontent is below the navbar */
        position: relative;
        overflow-y: auto;
        padding-left: 5px;
        padding-right: 10px;
        margin-bottom: 10px;
        margin-top: 10px;
        color: #F2F2F2;
    }

    


    .about-card {
        height: calc(100% - 40px);
    }

    .home-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 5px;
        margin: 5px;
        /* border: 1px solid #ccc; */
        border-radius: 5px;
        /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
        background-color: transparent;
        transition: all 0.3s;
    }

    .home-card img {
        height: 120px;
        width: auto;
    }

    .heading {
        text-align: center;
        margin-top: -20px;
    }

    .portrait {
        margin-left: 100px;
        height: 50%;
        width: auto;
    }

    .bio {
        margin-top: 100px;
    }

    .biography {
        margin-left: 100px;
        padding-left: 100px;
        padding-right: 100px;
        border-left: 0.5px solid #ccc;
    }

    .biography p {
        font-size: 1.2em;
    }

    .capitecbank {
        margin-top: 100px;
        margin-bottom: 50px;
        height: 150px;
    }

    .socials {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        margin: 20px;
        /* border: 1px solid #ccc; */
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0);
        background-color: transparent;
        transition: all 0.3s;
    }


    .socials img {
        height: auto;
        width: 250px;
    }

    .certification {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 0px;
        margin: 5px;
        /* border: 1px solid #ccc; */
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0);
        background-color: transparent;
        transition: all 0.3s;
    }


    .certification img {
        height: auto;
        width: 150px;
    }

    .publicspeaking {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        margin: 10px;
        /* border: 1px solid #ccc; */
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.0);
        background-color: transparent;
        transition: all 0.3s;
    }

    .publicspeaking img {
        height: auto;
        width: 100%;
    }

    .publicspeaking {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        margin: 10px;
        /* border: 1px solid #ccc; */
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        background-color: transparent;
        transition: all 0.3s;
    }

    .publicspeaking img {
        height: auto;
        width: 100%;
    }

    .techstack {
        height: 100px;
        width: auto;
        margin-bottom: 15px;
    }

    .award {
        padding-top: 100px;
        height: 75%;
        width: auto;
    }

    .blog {
        width: 300px;
        height: auto;
    }

    .eventheader {
        height: 250px;
        margin-top: 80px;
        margin-bottom: 50px;
    }

    .eventlink {
        margin-top: 80px;
        height: 100px;
    }

    .eventheaderlink {
        margin-bottom: -80px;
        margin-top: 20px;
    }

    .carousel {
        height: 100%;
        width: 100%;
    }

    .carousel-inner {
        margin-left: 10%;
        width: 250px;
        text-align: center;
    }

    .carousel-item img {
        margin-left: auto;
        margin-right: auto;
        height: 100px;
        width: auto;
    }

    .certificate {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 0px;
        margin: 0px;
        /* border: 1px solid #ccc; */
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.0);
        background-color: transparent;
        transition: all 0.3s;
    }

    .certificate img {
        height: 600px;
        width: auto;
    }
}