/*****************************************************
*   Cascading Style Sheets (CSS) Style Definitions   *
*   Created by Osman Balci for the Movies app.       *
*****************************************************/

html, body {
    background-color: linen;
    margin: 0 0 0 0;    /* top right bottom left */
    width: 100%;        /* Set page width horizontally 100% */
    height: 100%;       /* Set page height vertically 100% */
}

body, p {
    font-family: "Times New Roman", Times, serif;
    font-size: 12pt;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    color: black;
}

h1, title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12pt;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    color: maroon;
}

/*
========================================
|   Table Replacement for Panel Grid   |
========================================
*/
table {
    border-width: thin;
    border-color: lightgray;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12pt;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    color: black;
}

.bottomSpace {
    margin-bottom: 5px;
}

/*
=======================================
|   Site Template Component Styling   |
=======================================
*/

/*
Style the div component whose unique id is "page"
<div id="page"> in siteTemplate
*/
#page {
    font-family: "Times New Roman", Times, serif;
    font-size: 12pt;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    color: black;
}
/* 
Style the div component whose unique id is "header"
<div id="header"> in siteTemplate
*/
#header {
    background-color: azure;
    width: 100%;
    height: 84px;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    margin-bottom: 16px;
}
/* 
Style the div component whose unique id is "editableContent"
<div id="editableContent"> in siteTemplate
*/
#editableContent {
    /* height = 100% window height - (header height 84px + footer height 100px) */
    height: calc(100% - 184px); 
    width: 100%;
    left: 0;
    right: 0;
    margin-top: 100px;
    margin-bottom: 16px;
}
/* 
Style the div component whose unique id is "footer"
<div id="footer"> in siteTemplate
*/
#footer {
    height: 100px;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
}

/*
==========================
|   Styling Hyperlinks   |
==========================
The <a> tag defines a hyperlink.
Hyperlinks (or links) are styled differently depending on what state they are in:
    a:link      - normal state (unvisited link)
    a:visited   - visited state (link clicked on by user earlier)
    a:hover     - mouse over state (link when the user hovers over it)
    a:active    - active state (link currently clicked on by user)
*/

/* Set the font family for the standard HTML tag "a" for hyperlinks */
a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
}

a:link {
    text-decoration: none; /* Do not underline the link in normal state */
}

a:visited {
    text-decoration: none; /* Do not underline the link in visited state */
}

a:hover {
    text-decoration: underline; /* Underline the link in hover state */
}

a:active {
    text-decoration: underline; /* Underline the link in active state */
}

/*
==============================
|   Main Style Definitions   |
==============================
*/

/* Used in headerTemplate */
.headerTitle {
    font-family: "Times New Roman", Times, serif;
    font-size: 18pt;
    font-style: italic;
    font-weight: normal;
    text-decoration: none;
    color: mediumblue;
}

/*
Proportionately scale image to show on mobile devices and smaller browser windows.
Scale the image downward, but do not enlarge it beyond its actual width size.
*/
.scalableImage {
    max-width: 100%;
    height: auto;
    border: none;
}

/* Used to color panel backgrounds */
.ui-panel-content {
    background-color: oldlace !important;
}

/*
======================================
|   App Specific Style Definitions   |
======================================
*/

/* Used to Style Actor Names */
.actorName {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    color: maroon;
}

/* Used to Style Character Names */
.characterName {
    font-family: "Times New Roman", Times, serif;
    font-size: 10pt;
    font-style: italic;
    font-weight: normal;
    text-decoration: none;
}

/*
--------------------------------------------------
Styles for the dialogs in movieSearch/MovieDetails
and moviesNowPlaying/MovieDetails
--------------------------------------------------
*/
.columnMoviePoster {
    width: 100px;
}
.columnMiddlePart {
    width: 75%;
}
.columnInfoButton {
    width: 10%;
}
.ratingNumber {
    vertical-align: middle;
    height: 100%;
}
.dialogPoster {
    width: 50%;
}
.dialogText {
    width: 50%;
}
.selectedMovieTitle {
    font-size: 20px;
}
.ratingColumn1 {
    width: 45%;
    height: 100%;
    vertical-align: middle;
}
.ratingColumn2 {
    width: 45%;
}
.ratingColumn3 {
    width: 10%;
}
.alignLeft {
    float: left;
}
.alignRight {
    float: right;
}

/* 
------------------------------------------
Styles for Responsive YouTube Video Player
------------------------------------------
We use the 9/16 (=56.25) ratio to play YouTube Videos.
The padding-top applies the ratio of 56.25% to make sure
that the width and height preserve the 9/16 ratio.
Resizing the window of the player resizes the video player.
*/

.responsive-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/*
=========================================
|   Skinning PrimeFaces UI Components   |
=========================================
*/

/* Skinning PrimeFaces Galleria Image Slider */
.ui-galleria-caption {
    position: absolute;
    left: 0 !important;
    background-color: rgba(240, 255, 255, 0.8) !important;
    padding: 0 !important;
}

/* PrimeFaces dataTable Row Paddings */
.ui-datatable-data td {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}
