.cal-container {
    position: relative;
}

    .cal-container:before {
        content: "";
        display: block;
        padding-top: 100%;
    }

.calendar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.cal tr .day:nth-child(even) {
	background-color: #DEDFE0;
}

/* tablets and large screens*/
@media only screen and (min-width: 700px) {
    li.medication {
        margin-left: 5%;
    }
}

.cal {
    font-size: 1rem;
    width: 100%;
    height: 100%;
    text-align: center;
    background: white;
}

    .cal td, .cal th {
        font-size: 1rem;
        font-weight: 400;
        width: 12.5%;
    }

@media only screen and (min-width: 1050px) {
    .cal {
        font-size: 1.5rem;
    }

        .cal td, .cal th {
            font-size: 1.5rem;
        }
}

@media only screen and (min-width: 550px) and (max-width:700px) {
    .cal {
        font-size: 1.5rem;
    }

        .cal td, .cal th {
            font-size: 1.5rem;
        }
}

.cal-header th {
    padding: 5% 0;
    height: 10%;
}

.cal-nav {
    display: block;
    position: relative;
    z-index: 2;
    text-align: right;
    color: rgb(65, 159, 175);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.prev {
    text-align: left;
    padding-left: 25%;
}

.next {
    padding-right: 25%;
}

th.cal-title {
    width: 75%;
    color: black;
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.cal-day-names {
    color: darkgray;
    font-size: 70% !important;
}

.day {
	color: black;
	cursor: pointer;
	position: relative;
	background-color: #EBEBEC;
	border: 2px solid #fff;
}

.day .day-date {
    position: absolute;
    top: 0;
    left: 5%;
}

    .day:hover .day-date {
        font-weight: bold;
        text-decoration: underline;
    }

    /* Today is highlighted */
    .day.today {
        color: white;
        background-color: #0096b0 !important;
    }

    .day.selected {
        background: lightgray;
    }

    .day .day-event.fa {
        /*color: rgb(65, 159, 175);*/
        font-size: 70% !important;
        display: block;
        padding-top: 10%;
        text-decoration: none;
    }

	.day .day-event.fas {
		/*color: rgb(65, 159, 175);*/
		font-size: 70% !important;
		display: block;
		padding-top: 10%;
		text-decoration: none;
	}

    .day .day-noevent.fa {
        font-size: 50% !important;
        display: block;
        padding-top: 10%;
        text-decoration: none;
    }

    .day.today .day-event.fa {
        color: rgb(255, 255, 255);
    }

/* Remove double borders from perimeter */
.cal tbody tr td:nth-of-type(1) {
    border-left: none;
}

.cal tbody tr td:nth-of-type(7) {
    border-right: none;
}

.cal tbody tr:nth-of-type(6) td {
    border-bottom: none;
}

.selected-day {
    text-align: center;
    padding: 10px;
    font-weight: 400;
    font-size: 1.5rem;
}

div.time > span.badge {
    margin-right: 5px;
}

.ialignleft {
	position: absolute;
	bottom: 5%;
	left: 5%;
}

.ialignright {
	position: absolute;
	bottom: 5%;
	right: 5%;
}
