/*
Theme Name: Favourites
Author: Blair Ramsay
Author URI: https://blairramsay.co.uk
Description: A custom theme for yearly lists
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blank

This theme, like WordPress, is licensed under the GPL
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*=======================================
              Import Fonts
========================================*/

@import url("https://fonts.googleapis.com/css?family=Montserrat:300,400,400i,700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,700;1,100;1,200;1,300;1,400;1,700&display=swap");

/*=======================================
      Reset Styles for Main Elements
========================================*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

*:focus {
  outline: none;
}

/*=======================================
              Box Sizing
========================================*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

/*=======================================
          Default Body Styles
========================================*/

body {
  min-height: 100vh;
  scroll-behavior: smooth;
  line-height: 1.2;
  font-family: "Josefin Sans", sans-serif;
  /* font-family: "Montserrat", sans-serif; */
}

/*=======================================
   Set Display Role for Older Browsers
========================================*/

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/*=======================================
                Quotes
========================================*/

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

em {
  font-style: italic;
  font-weight: 400;
}

/*=======================================
            Container Layout
========================================*/

.container {
  width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

@media (max-width: 1460px) {
  .container {
    width: 100%;
  }
}

/*=======================================
              Helper Classes
========================================*/

.clearfix {
  clear: both;
}

.centered {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.alignright {
  float: right;
  margin-left: 20px;
}

.alignleft {
  float: left;
  margin-right: 20px;
}

/*=======================================
          Link Default Styles
========================================*/

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:not([class]) {
  -webkit-text-decoration-skip: ink;
  text-decoration-skip-ink: auto;
}

/*=======================================
            List Default Styles
========================================*/

ul[class],
ol[class] {
  list-style: none;
}

/*=======================================
            Table Default Styles
========================================*/

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*=======================================
              Form Elements
========================================*/

input,
button,
textarea,
select {
  font: inherit;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
  font-size: 16px;
  color: #333;
  background: #fff;
  border: 2px solid #333;
  display: inline-block;
  padding: 6px 10px;
  margin: 5px 0;
  outline: none;
}

label {
  cursor: pointer;
}

/*=======================================
          Image Default Styles
========================================*/

img {
  width: 100%;
  height: auto;
  display: block;
}

/*=======================================
                Header
========================================*/

section.header {
  height: 50vh;
  width: 100%;
  background-position: center;
  position: relative;
  background-size: auto;
  background-repeat: repeat;
}

section.header {
  background-color: #fffaf1;
}

/* section.header .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 5;
} */

section.header .container {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: flex-start;
  justify-content: center;
}

section.header .container .title {
  font-size: 150px;
  font-weight: 700;
  color: black;
  z-index: 10;
  text-align: left;
}

section.header .container .text-container {
  font-size: 30px;
}

@media (max-width: 800px) {
  section.header .container .title {
    font-size: 75px;
  }
}

@media (max-width: 600px) {
  section.header .container .title {
    font-size: 50px;
  }

  section.header .container .text-container {
    font-size: 24px;
  }

}

/*=======================================
              Breadcrumb
========================================*/

.breadcrumb {
  background-color: #f9f9f9;
  padding: 20px 0;
  font-size: 20px;
}

.breadcrumb a {
  color: black;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/*=======================================
              Homepage Grid
========================================*/

.homepage-grid {
  margin: 100px 0;
}

.homepage-grid .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.homepage-grid .container .box {
  width: calc(50% - 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 300px;
  margin-bottom: 20px;
  background-color: #fffaf1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: polygon(10% 0, 90% 0, 100% 20%, 100% 80%, 90% 100%, 10% 100%, 0% 80%, 0% 20%);
}

.homepage-grid .container .box .title {
  color: white;
  font-size: 40px;
  z-index: 10;
}

.homepage-grid .container .box .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.homepage-grid .container .box a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 11;
}

@media (max-width: 600px) {
  .homepage-grid .container .box {
    width: 100%;
    clip-path: polygon(20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
  }

  .homepage-grid {
    margin: 50px 0;
  }



}

/*=======================================
              Grid
========================================*/

.grid {
  margin: 100px 0;
}

.grid .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.grid .container:after {
  content: "";
  flex: 3 0 25%;
}

.grid .container .item {
  width: calc(100% / 4 - 20px);
  margin-bottom: 20px;
  position: relative;
  margin: 0 10px 20px 10px;
}

.grid .container .item a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

@media (max-width: 900px) {
  .grid .container .item {
    width: calc(100% / 3 - 20px);
  }
}

@media (max-width: 600px) {
  .grid .container .item {
    width: calc(50% - 20px);
  }
}

@media (max-width: 400px) {
  .grid .container .item {
    width: 100%;
  }
}

/*=======================================
            Single Page
========================================*/

.single section.header .container .title {
  font-size: 70px;
}

.single .details {
  margin: 50px 0;
}

.single .details .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.single .details .container .left {
  width: 30%;
}

.single .details .container .right {
  width: 70%;
  padding-left: 50px;
}

.single .details .container .right .title {
  font-size: 40px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid lightgray;
}

.single .details .container .right .text-container {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 300;
}

.single .details .container .right .text-container p {
  margin-bottom: 15px;
}

.single .details .container .right .text-container p strong {
  font-weight: bold;
}

.single .details .container .right .text-container .director span {
  font-weight: 500;
}

.single .details .container .right .rating {
  margin-top: 30px;
  font-size: 40px;
  width: 120px;
  height: 120px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
}

.single .details .container .right .rating span {
  margin-bottom: -6px;
}

@media (max-width: 1000px) {
  .single .details .container .left {
    width: 40%;
    margin: 0 auto 50px auto;
  }

  .single .details .container .right {
    width: 100%;
    padding-left: 0;
  }
}

@media (max-width: 800px) {
  .single section.header .container .title {
    font-size: 50px;
  }
}

@media (max-width: 600px) {
  .single .details .container .left {
    width: 60%;
  }

  .single section.header .container .title {
    font-size: 40px;
  }
}

@media (max-width: 450px) {
  .single .details .container .left {
    width: 100%;
  }
}



.switch-view {
  padding: 50px 0 0 0;
  text-align: center;
  font-size: 30px;
}

.switch-view p {
  display: inline-block;
  width: 40%;
  cursor: pointer;
  color: grey;
}

.switch-view p.active {
  color: black;
}

.switch-view p.all {
  text-align: right;
  padding-right: 30px;
}

.switch-view p.top-ten {
  text-align: left;
  padding-left: 30px;
}

.switch-view span {
  display: inline-block;
  background-color: black;
  width: 2px;
  height: 50px;
  position: relative;
  top: 14px;
}

@media only screen and (max-width: 400px) {
  
  .switch-view p {
      font-size: 24px;
  }

}