html, body {
    height: 100%;
}
body {
    font-family: 'Exo', sans-serif;
    margin: 0;
    color: white;
    background-image: url("img/dogehotel.png");
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
}

* {
    -webkit-tap-highlight-color: transparent;
}

*::-webkit-scrollbar {
    background: rgba(51, 47, 65, 1);
}
*::-webkit-scrollbar-thumb {
    background: rgba(90, 90, 120, 1);
}

.booking-modal .buttons {
    margin-top: 0 !important;
}
.total-price {
    display: block;
    margin-top: auto;
    font-weight: bold;
    margin-top: 5px;
}
.booking-form {
    display: flex;
    gap: 20px;
    flex: 1;
}
.booking-form form {
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
}
.booking-form label {
    font-weight: bold;
}
.booking-form input[type="submit"] {
    margin: 0;
    margin-top: 10px;
}
input[disabled] {
    background: grey;
    cursor: not-allowed !important;
}
.booking-modal > div {
    width: 800px !important;
}

td.has-event {
    background: #308c69;
}
.event-info {
    flex: 1;
}

.events-view {
    display: flex;
    gap: 20px;
}

.block-img {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center -50px;
}
.modal-img {
    display: block;
    width: 550px;
    height: 600px;
    object-fit: cover;
}

.room-modal {
    display: flex;
}
.room-modal > div {
    padding: 20px 40px 50px;
    width: 500px;
    display: flex;
    flex-direction: column;
}
.pricing {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: auto;
}
.room-modal > div > .buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
}
.room-modal > div > .buttons > button {
    transition: 0.25s;
    flex: 1;
    padding: 10px 30px;
    background: rgba(40, 35, 50, 1);
    color: white;
    border: none;
    font-family: inherit;
    font-size: 1.1em;
    cursor: pointer;
}
.room-modal > div > .buttons > button:hover {
    background: rgba(30, 25, 40, 1);
}

.room-reviews {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 275px;
    padding-right: 10px;
    overflow: auto;
}
.room-review {
    padding: 20px;
    background: rgb(45, 40, 55);
}
.room-description {
    font-size: 1em;
    padding: 0 10px;
}
.review-username {
    margin-bottom: 5px;
    font-weight: bold;
}
.review-content {
    
}

.tabs {
    display: flex;
    gap: 10px;


}
.tabs > .tab {
    padding: 10px 15px;
    background: rgba(45, 40, 55, 1);
    cursor: pointer;
}
.tabs > .tab:has(input:checked) {
    background: rgba(30, 25, 40, 1);
}
.tabs > .tab > input {
    display: none;
}
.tab-content {
    padding: 10px 0;
}

header {
    min-height: 50vh;


}
header > .info {
    padding: 100px;
    text-shadow: black 0 0 10px;
}
header > .info h2 {
    font-style: italic;
}
header > nav {
    background: linear-gradient(0deg, rgba(80,84,97,0) 0%, rgba(0,0,0,1) 100%);

    padding: 10px;
    font-size: 20px;
    display: flex;
}
header > nav > .logo {
    padding: 5px 20px;
    font-size: 30px;
    font-weight: bolder;
    width: 150px;
}

header > nav > .links {
    flex: 1;
    justify-content: center;
    display: flex;
    gap: 30px;
    transition: 0.2s;
    margin-right: 200px;
}
header > nav > .links > a {
    text-decoration: none;
    color: white;
    border-radius: 20px;
    padding: 10px;
    margin: 0 10px;
    transition: 0.2s;

    line-height: 70px;
    min-width: 120px;
    text-align: center;
}
header > nav > .links > a:hover {
    background: rgba(61, 57, 75, 0.75);
    padding-left: 20px;
    padding-right: 20px;
    margin: 0;
}

main {
    min-height: 50vh;
    padding: 15vh 20vw;
    background: linear-gradient(0deg, rgba(61, 57, 75,1) 0%, rgba(61, 57, 75,1) 85%, rgba(61, 57, 75, 0.9) 90%, rgba(61, 57, 75,0) 100%);
}

footer {
    padding-top: 50px;
}

.main-header {
    margin-top: 100px;
    font-size: 2.25rem;
    text-align: center;
}
.main-header img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: bottom;
}
.main-content > .images {
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: center;
}
.main-content > .images img {
    width: 33%;
}


.page {
    background: rgba(61, 57, 75, 1);
    min-height: 70vh;
    padding: 5vh 20vw;
}

h1.current-page {
    text-align: center;
    font-size: 4rem;
}

p {
    font-size: 1.3rem;
    padding: 10px 0;
}

footer {
    min-height: 20vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 0;
}
footer > p {
    padding: 0 50px;
    text-align: center;
}

form {
    display: block;
    background: rgba(55, 50, 65, 1);
    padding: 20px;
}
form label {
    margin: 5px 0;
    display: block;
}
form input, textarea {
    display: block;
    box-sizing: border-box;
    border: 0;
    color: snow;
    font-size: 1.1rem;
    font-family: 'Exo', sans-serif;
    background: rgba(45, 40, 55, 1);
    width: 100%;
    margin: 5px 0 15px;
    padding: 10px;
}
form input[type="submit"] {
    margin-top: 10px;
    cursor: pointer;
}
form textarea {
    resize: vertical;
    height: 150px;
}

.flex-table {
    display: flex;
    flex-direction: column;
    gap: 5px;
    

}
.flex-table > div {
    display: flex;
    gap: 5px;
}
.flex-table > div > div {
    padding: 10px;
    background: rgba(55, 50, 65, 1);
}
.flex-table > div > div:nth-child(1) {
    min-width: 120px;
}
.flex-table > div > div:nth-child(2) {
    flex: 1;
    overflow: auto;
}

.room-options > h2 {
    margin-top: 50px;
    border-bottom: solid grey 1px;
}

.room-collection {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.room-collection > div {
    width: 320px;
}
.room-collection > div > .room-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.room-collection > div > div {
    padding: 20px;
    background: rgba(55, 50, 65, 1);
    display: flex;


}
.room-collection > div > div > div > h3 {
    margin: 0 0 10px;
}
.room-collection > div > div > button {
    font-family: inherit;
    font-size: 18px;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    color: white;
    background: rgba(45, 40, 55, 1);
    margin-left: auto;
    transition: 0.25s;
}
.room-collection > div > div > button:hover {
    background: rgba(40, 35, 50, 1);
}

#dialog {
    border: none;
    box-shadow: black 0 0 10px;
    padding: 0;
}
#dialog> div {
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    background: rgba(55, 50, 65, 1);
    color: white;
}
#dialog::backdrop {
    background: rgba(0, 0, 0, 0.5)
}

.availability-calendar-box {
    display: flex;
}
.availability-calendar-box > span {
    text-align: center;
    flex: 1;
    margin-top: 120px;
}

/* Calendar stuff */
.calendar {
    display: inline-block;
}

.calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: solid #606568 1px;
	padding: 10px;
}

.calendar-actual {
	padding: 0 10px 10px 10px;
}
.month-and-controls {
    background: rgb(45, 40, 55);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 5px 10px 10px;
    border: solid #606568 1px;
    border-bottom: none;
}
.month {
	font-size: 1.07em;
}
.controls {
    user-select: none;
	display: flex;
	flex-direction: row;
	float: right;
}
.control {
	align-items: center;
	background: inherit;
	color: #eaebec;
	border: solid grey 1px;
	text-align: center;
	border-radius: 2px;
	width: 40px;
	height: 40px;
	margin: 0 2px;
	transition: 0.25s;
}
.calendar.compact .control {
    height: 30px;
}
.control:hover { border-color: #387ea3 }
.control:active { background-color: #387ea3 }
.control:focus { outline: none }

/* Fix for icon alignment in control buttons */
.control .material-icons {
	vertical-align: -3px;
}

/* Table */
.calendar-table {
	padding: 10px;
}
.calendar-table, .calendar-table tr td {
	border-collapse: collapse;
	border: solid #606568 1px;
}
.calendar-table tr th {
	color: #7d8586;
	font-weight: normal;
}
.calendar-table tr th, .calendar-table tr td {
	width: 50px;
	height: 50px;
	text-align: center;
}
.calendar.compact .calendar-table tr th, .calendar.compact .calendar-table tr td {
	width: 40px;
	height: 30px;
}
.calendar-table tr td {
	position: relative;
}
.calendar-table tr td.outofmonth {
	color: #7d8586;
}
.calendar-table tr td.today {
	color: #32363b;
}
.calendar-table tr td.hasEvents::after {
	content: "";
	width: 0;
	height: 0;
	border-bottom: 20px solid mediumseagreen;
	border-left: 20px solid transparent;
	position: absolute;
	bottom: 0;
	right: 0;
}
.calendar-table tr td.holidays::after {
	content: "";
	width: 0;
	height: 0;
	border-bottom: 20px solid deepskyblue;
	border-left: 20px solid transparent;
	position: absolute;
	bottom: 0;
	right: 0;
}

/* Hover and click animations (calendar) */
.calendar-table tr td {
	transition: background-color 0.25s;
}
.calendar-table tr td:hover {
	background-color: #366681;
}
.calendar-table tr td.selected {
	background-color: #387ea3;
}
.calendar-table tr td.today {
	background-color: #7d8083;
}
.calendar-table tr td.today.selected {
	background-color: #a3a6a8;
}

.calendar-table td.room-free {
	background-color: #294244;
}
.calendar-table td.room-taken {
	background-color: #723a3a !important;
}

/* Responsive css */
.hamburger-menu {
    display: none;
}

@media screen and (max-width: 1280px) {
    header .links {
        margin-right: 20px !important;
        justify-content: right !important;
    }
}


#menu-toggle {
    display: none;
}
.mobile-close-button {
    display: none;
}

@media screen and (max-width: 1120px) {
    .events-view {
        flex-direction: column;
    }
    
    .mobile-close-button {
        display: block;
    }
    dialog {
        margin: 0;
        max-width: 100vw;
        max-height: 100vh;
    }
    .room-modal {
        flex-direction: column-reverse;
    }
    .room-modal > div {
        padding: 5px 10px;
        width: 93% !important;
    }
    
    .booking-form {
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .room-modal > .modal-img {
        width: 100%;
        height: 40vh;
    }
    .room-modal h1 {
        text-align: center;
    }
    .room-modal .buttons {
        margin-bottom: 50px;
    }
    
    .tabs {
        overflow: auto;
    }
    .tab > div {
        white-space: nowrap;
    }
    
    .availability-calendar-box {
        flex-direction: column;
        align-items: center;
    }
    .availability-calendar-box > span {
        margin-top: 10px;
    }
    
    .pricing {
        margin-top: 20px !important;
    }
    
    
    .room-collection {
        flex-direction: column;
        gap: 20px;
    }
    .room-collection > div {
        width: 100%;
    }
    .room-collection > div > img {
        height: 40vh !important;
    }
    
    main, .page {
        padding: 20px 20px;
    }
    nav {
        padding: 0px !important;
    }
    nav .logo {
        padding: 10px 20px !important;
    }
    header {
        min-height: 30vh;
    }
    header .info {
        padding: 0 20px 40px;
    }
    .hamburger-menu {
        display: block;
        margin: 30px 40px 0 auto;
        z-index: 2;
    }
    .hamburger-menu > label > svg {
        cursor: pointer;
        transform-origin: center;
        transition: 0.25s;
    }
    #menu-toggle:checked ~ .hamburger-menu > label > svg {
/*         transform: rotate(90deg); */
    }
    #menu-toggle:checked ~ .links {
        opacity: 1;
        pointer-events: all;
    }
    .links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        padding: 100px 20px;
        background: #000000cc;
        backdrop-filter: blur(20px);
        gap: 10px !important;
        
        opacity: 0;
        pointer-events: none;
        overscroll-behavior: contain;
    }
    
    .images {
        flex-direction: column;
    }
    .images > img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover;
    }
    
    main {
        background: linear-gradient(0deg, rgba(61, 57, 75,1) 0%, rgba(61, 57, 75,1) 95%, rgba(61, 57, 75, 0.9) 97.5%, rgba(61, 57, 75,0) 100%);
    }
}

@media screen and (max-width: 1650px) {
    .page {
        padding: 5vh 10vw !important;
    }
}
@media screen and (max-width: 1250px) {
    .page {
        padding: 5vh 5vw !important;
    }
}
