/*
Theme Name: CoderDojo Twenty-Two
Text Domain: coderdojo
Version: 1.0
Requires at least: 4.7
Requires PHP: 5.2.4
Description: Our default theme for 2020 is designed to take full advantage of the flexibility of the block editor. Organizations and businesses have the ability to create dynamic landing pages with endless layouts using the group and column blocks. The centered content column and fine-tuned typography also makes it perfect for traditional blogs. Complete editor styles give you a good idea of what your content will look like, even before you publish. You can give your site a personal touch by changing the background colors and the accent color in the Customizer. The colors of all elements on your site are automatically calculated based on the colors you pick, ensuring a high, accessible color contrast for your visitors.
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
Author: Anthony Nolan
Author URI: https://wordpress.org/
Theme URI: https://wordpress.org/themes/twentytwenty/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

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.
*/

html {
  font-size:clamp(1em, 3vmin, 1.25em)
}

body {
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

header > .has-purple-20-white-background-color {
  background:linear-gradient(90deg,#FFFFFF 50%,#71458C 50%) !important;
}

header > .has-global-padding {
  padding-top: 0;
  padding-bottom: 0;
}

header > .has-global-padding > .wp-block-group {
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

header .wp-block-navigation {
  margin-top: -1px;
  flex-grow: 1;
  background-color: #71458C;
  background-image: url(assets/images/coderdojo-nav-light-bg.svg);
  background-repeat: no-repeat;
}

#hero {
  background-image: url(assets/images/stars-and-lightning.svg),url(assets/images/stars-and-lightning-reversed.svg);
  background-position: left center,right center;
  background-repeat: no-repeat,no-repeat;
  padding-block: 1.875rem;
}

#hero .wp-block-columns,
#hero .wp-block-post-featured-image {
  margin-bottom: 0;

}

.wp-block-media-text.alignwide.is-stacked-on-mobile > .wp-block-media-text__media >  img {
  border-radius: 10px;
}

.wp-block-video >  video {
  border-radius: 10px;
}

@media (max-width: 600px) {
  .wp-block-media-text.alignwide.is-stacked-on-mobile > .wp-block-media-text__media {
    
    padding-left: min( 5vw, 3.75rem);
    padding-right: min( 5vw, 3.75rem);
  }
}

@media (min-width: 600px) {
  .wp-block-media-text.alignwide.has-media-on-the-right.is-stacked-on-mobile > .wp-block-media-text__content {
    padding-left: 0;
    padding-right: calc(8rem * 0.625);
  }

  .wp-block-media-text.alignwide.is-stacked-on-mobile > .wp-block-media-text__content {
    padding-left: calc(8rem * 0.625);
    padding-right: 0;
  }

  .wp-block-cards > .wp-block-column > :not(figure),
  .wp-block-cards > .wp-block-post > :not(figure) {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.wp-block-cards {
  gap: 2em;
}

.wp-block-cards > .wp-block-column,
.wp-block-cards > .wp-block-post,
.wp-block-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 0 1.25rem 0 rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}

.columns-3.wp-block-post-template >.wp-block-post.wp-block-card:hover {
  margin-top: -4px;
  margin-bottom: 4px;
}

.wp-block-card:hover > .wp-block-post-title {
  text-decoration: underline;
}

.wp-block-details {
margin-bottom: 10px;
}

.wp-block-summary {
  cursor: pointer;
  padding: 20px;
}

.wp-block-details__details {
  border-top: 1px solid;
  padding: 20px;
}

.wp-block-media-text.wp-block-details__details {
  margin-top: 0;
}

.wp-block-image {
  border-radius: 10px;
}

.wp-block-summary > * {
  display: inline;
}

.wp-block-cards > .wp-block-post > figure {
  padding: 0;
}

.wp-block-cards > .wp-block-column > figure > img,
.wp-block-cards > .wp-block-post > figure img {
  border-radius: 10px 10px 0 0;
}

@media (max-width: 600px) {
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    grid-column: 1;
    grid-row: 1;
  }
  
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 2;
  }
}

.wp-block-button__link {
  border-color: var(--wp--preset--color--coderdojo-purple);
}

.wp-block-button__link.has-white-background-color {
  border-color: var(--wp--preset--color--white);
}

.wp-block-group.software {
  background-image: url(assets/icons/scratch.svg);
  background-color: #fff4e8; /* Used if the image is unavailable */
  background-position: left bottom; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
}

.wp-block-group.hardware {
  background-image: url(assets/icons/physical_computing.svg);
  background-color: #e1d0ea; /* Used if the image is unavailable */
  background-position: right bottom; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
}

.wp-block-group.studio {
  background-image: url(assets/icons/python.svg);
  background-color: #e9eaf5; /* Used if the image is unavailable */
  background-position: left bottom; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
}

.wp-block-group.arcade {
  background-image: url(assets/icons/html_css.svg);
  background-color: #feeeed; /* Used if the image is unavailable */
  background-position: right bottom; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
}

.wp-block-group.other {
  background-image: url(assets/icons/unity.svg);
  background-color: #f3ecf7; /* Used if the image is unavailable */
  background-position: left bottom; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
}

